Make RegList an ASM operand so that TableGen will generate code for it. This is
authorBill Wendling <isanbard@gmail.com>
Mon, 8 Nov 2010 00:39:58 +0000 (00:39 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 8 Nov 2010 00:39:58 +0000 (00:39 +0000)
an initial implementation and may change once reglists are fully fleshed out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118390 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.td

index 4c61ffb55ca1993951c81d2f303e1bb659a06abf..7c7257900fd916e1c43419ede17229219225e484 100644 (file)
@@ -282,6 +282,11 @@ def reglist : Operand<i32> {
   let PrintMethod = "printRegisterList";
 }
 
+def RegListAsmOperand : AsmOperandClass {
+  let Name = "RegList";
+  let SuperClasses = [];
+}
+
 // An operand for the CONSTPOOL_ENTRY pseudo-instruction.
 def cpinst_operand : Operand<i32> {
   let PrintMethod = "printCPInstOperand";
@@ -454,7 +459,7 @@ def ldstm_mode : OptionalDefOperand<OtherVT, (ops i32), (ops (i32 1))> {
   let PrintMethod = "printLdStmModeOperand";
 }
 
-def ARMMemMode5AsmOperand : AsmOperandClass {
+def MemMode5AsmOperand : AsmOperandClass {
   let Name = "MemMode5";
   let SuperClasses = [];
 }
@@ -465,7 +470,7 @@ def addrmode5 : Operand<i32>,
                 ComplexPattern<i32, 2, "SelectAddrMode5", []> {
   let PrintMethod = "printAddrMode5Operand";
   let MIOperandInfo = (ops GPR:$base, i32imm);
-  let ParserMatchClass = ARMMemMode5AsmOperand;
+  let ParserMatchClass = MemMode5AsmOperand;
   string EncoderMethod = "getAddrMode5OpValue";
 }