[llvm-commits] [llvm] r135199 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
Benjamin Kramer
benny.kra at googlemail.com
Thu Jul 14 14:47:24 PDT 2011
Author: d0k
Date: Thu Jul 14 16:47:24 2011
New Revision: 135199
URL: http://llvm.org/viewvc/llvm-project?rev=135199&view=rev
Log:
Add OperandTypes for Thumb branch targets.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb.td?rev=135199&r1=135198&r2=135199&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb.td Thu Jul 14 16:47:24 2011
@@ -71,10 +71,12 @@
// Scaled 4 immediate.
def t_imm_s4 : Operand<i32> {
let PrintMethod = "printThumbS4ImmOperand";
+ let OperandType = "OPERAND_IMMEDIATE";
}
// Define Thumb specific addressing modes.
+let OperandType = "OPERAND_PCREL" in {
def t_brtarget : Operand<OtherVT> {
let EncoderMethod = "getThumbBRTargetOpValue";
}
@@ -94,6 +96,7 @@
def t_blxtarget : Operand<i32> {
let EncoderMethod = "getThumbBLXTargetOpValue";
}
+}
def MemModeRegThumbAsmOperand : AsmOperandClass {
let Name = "MemModeRegThumb";
More information about the llvm-commits
mailing list