Lines Matching full:action

42   void emitAction(const Record *Action, indent Indent, raw_ostream &O);
93 // We want an entry in AssignedRegsMap for every action, even if that
111 const Record *Action = CCActions->getElementAsRecord(I);
113 llvm::any_of(Action->getSuperClasses(),
120 emitAction(Action, indent(2), O);
127 void CallingConvEmitter::emitAction(const Record *Action, indent Indent,
129 if (Action->isSubClassOf("CCPredicateAction")) {
132 if (Action->isSubClassOf("CCIfType")) {
133 const ListInit *VTs = Action->getValueAsListInit("VTs");
141 } else if (Action->isSubClassOf("CCIf")) {
142 O << Action->getValueAsString("Predicate");
144 errs() << *Action;
145 PrintFatalError(Action->getLoc(), "Unknown CCPredicateAction!");
149 emitAction(Action->getValueAsDef("SubAction"), Indent + 2, O);
152 if (Action->isSubClassOf("CCDelegateTo")) {
153 const Record *CC = Action->getValueAsDef("CC");
158 } else if (Action->isSubClassOf("CCAssignToReg") ||
159 Action->isSubClassOf("CCAssignToRegAndStack")) {
160 const ListInit *RegList = Action->getValueAsListInit("RegList");
188 if (Action->isSubClassOf("CCAssignToRegAndStack")) {
189 int Size = Action->getValueAsInt("Size");
190 int Align = Action->getValueAsInt("Align");
212 } else if (Action->isSubClassOf("CCAssignToRegWithShadow")) {
213 const ListInit *RegList = Action->getValueAsListInit("RegList");
215 Action->getValueAsListInit("ShadowRegList");
217 PrintFatalError(Action->getLoc(),
253 } else if (Action->isSubClassOf("CCAssignToStack")) {
254 int Size = Action->getValueAsInt("Size");
255 int Align = Action->getValueAsInt("Align");
278 } else if (Action->isSubClassOf("CCAssignToStackWithShadow")) {
279 int Size = Action->getValueAsInt("Size");
280 int Align = Action->getValueAsInt("Align");
282 Action->getValueAsListInit("ShadowRegList");
300 } else if (Action->isSubClassOf("CCPromoteToType")) {
301 const Record *DestTy = Action->getValueAsDef("DestTy");
314 } else if (Action->isSubClassOf("CCPromoteToUpperBitsInType")) {
315 const Record *DestTy = Action->getValueAsDef("DestTy");
319 PrintFatalError(Action->getLoc(),
330 } else if (Action->isSubClassOf("CCBitConvertToType")) {
331 const Record *DestTy = Action->getValueAsDef("DestTy");
334 } else if (Action->isSubClassOf("CCTruncToType")) {
335 const Record *DestTy = Action->getValueAsDef("DestTy");
338 } else if (Action->isSubClassOf("CCPassIndirect")) {
339 const Record *DestTy = Action->getValueAsDef("DestTy");
342 } else if (Action->isSubClassOf("CCPassByVal")) {
343 int Size = Action->getValueAsInt("Size");
344 int Align = Action->getValueAsInt("Align");
348 } else if (Action->isSubClassOf("CCCustom")) {
349 O << Indent << "if (" << Action->getValueAsString("FuncName")
354 errs() << *Action;
355 PrintFatalError(Action->getLoc(), "Unknown CCAction!");