Lines Matching full:action

41   void EmitAction(Record *Action, unsigned Indent, raw_ostream &O);
91 // We want an entry in AssignedRegsMap for every action, even if that
109 Record *Action = CCActions->getElementAsRecord(i);
111 llvm::any_of(Action->getSuperClasses(),
118 EmitAction(Action, 2, O);
125 void CallingConvEmitter::EmitAction(Record *Action, unsigned Indent,
129 if (Action->isSubClassOf("CCPredicateAction")) {
132 if (Action->isSubClassOf("CCIfType")) {
133 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 Record *CC = Action->getValueAsDef("CC");
158 } else if (Action->isSubClassOf("CCAssignToReg") ||
159 Action->isSubClassOf("CCAssignToRegAndStack")) {
160 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 ListInit *RegList = Action->getValueAsListInit("RegList");
214 ListInit *ShadowRegList = Action->getValueAsListInit("ShadowRegList");
216 PrintFatalError(Action->getLoc(),
252 } else if (Action->isSubClassOf("CCAssignToStack")) {
253 int Size = Action->getValueAsInt("Size");
254 int Align = Action->getValueAsInt("Align");
278 } else if (Action->isSubClassOf("CCAssignToStackWithShadow")) {
279 int Size = Action->getValueAsInt("Size");
280 int Align = Action->getValueAsInt("Align");
281 ListInit *ShadowRegList = Action->getValueAsListInit("ShadowRegList");
299 } else if (Action->isSubClassOf("CCPromoteToType")) {
300 Record *DestTy = Action->getValueAsDef("DestTy");
313 } else if (Action->isSubClassOf("CCPromoteToUpperBitsInType")) {
314 Record *DestTy = Action->getValueAsDef("DestTy");
318 PrintFatalError(Action->getLoc(),
329 } else if (Action->isSubClassOf("CCBitConvertToType")) {
330 Record *DestTy = Action->getValueAsDef("DestTy");
334 } else if (Action->isSubClassOf("CCTruncToType")) {
335 Record *DestTy = Action->getValueAsDef("DestTy");
339 } else if (Action->isSubClassOf("CCPassIndirect")) {
340 Record *DestTy = Action->getValueAsDef("DestTy");
344 } else if (Action->isSubClassOf("CCPassByVal")) {
345 int Size = Action->getValueAsInt("Size");
346 int Align = Action->getValueAsInt("Align");
350 } else if (Action->isSubClassOf("CCCustom")) {
351 O << IndentStr << "if (" << Action->getValueAsString("FuncName")
356 errs() << *Action;
357 PrintFatalError(Action->getLoc(), "Unknown CCAction!");