diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-11-08 00:39:58 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-11-08 00:39:58 +0000 |
| commit | 424601a9b328b3ce3301fa8718429ea9d21ec5d5 (patch) | |
| tree | 8466e8c78706c78714df35d740e54e074d14247a /llvm/lib/Target | |
| parent | 2f9d17c44fbdd0aa0973c9145cafa765d45b2e98 (diff) | |
| download | bcm5719-llvm-424601a9b328b3ce3301fa8718429ea9d21ec5d5.tar.gz bcm5719-llvm-424601a9b328b3ce3301fa8718429ea9d21ec5d5.zip | |
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.
llvm-svn: 118390
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.td | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td index 4c61ffb55ca..7c7257900fd 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.td +++ b/llvm/lib/Target/ARM/ARMInstrInfo.td @@ -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"; } |

