From: Bill Wendling Date: Mon, 8 Nov 2010 00:39:58 +0000 (+0000) Subject: Make RegList an ASM operand so that TableGen will generate code for it. This is X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5991487c10faa5f1c0cc815381d745150582a309;p=oota-llvm.git Make RegList an ASM operand so that TableGen will generate code for it. This is 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 --- diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 4c61ffb55ca..7c7257900fd 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -282,6 +282,11 @@ def reglist : Operand { let PrintMethod = "printRegisterList"; } +def RegListAsmOperand : AsmOperandClass { + let Name = "RegList"; + let SuperClasses = []; +} + // An operand for the CONSTPOOL_ENTRY pseudo-instruction. def cpinst_operand : Operand { let PrintMethod = "printCPInstOperand"; @@ -454,7 +459,7 @@ def ldstm_mode : OptionalDefOperand { let PrintMethod = "printLdStmModeOperand"; } -def ARMMemMode5AsmOperand : AsmOperandClass { +def MemMode5AsmOperand : AsmOperandClass { let Name = "MemMode5"; let SuperClasses = []; } @@ -465,7 +470,7 @@ def addrmode5 : Operand, ComplexPattern { let PrintMethod = "printAddrMode5Operand"; let MIOperandInfo = (ops GPR:$base, i32imm); - let ParserMatchClass = ARMMemMode5AsmOperand; + let ParserMatchClass = MemMode5AsmOperand; string EncoderMethod = "getAddrMode5OpValue"; }