Add OperandTypes for Thumb branch targets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135199 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2011-07-14 21:47:24 +00:00
parent 3be41b748e
commit 151bd17a8f

View File

@ -71,10 +71,12 @@ def t_adrlabel : Operand<i32> {
// 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_bltarget : Operand<i32> {
def t_blxtarget : Operand<i32> {
let EncoderMethod = "getThumbBLXTargetOpValue";
}
}
def MemModeRegThumbAsmOperand : AsmOperandClass {
let Name = "MemModeRegThumb";