Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lib/Target/ARM/ARMInstrThumb2.td
Show First 20 Lines • Show All 3,375 Lines • ▼ Show 20 Lines | def t2B : T2I<(outs), (ins thumb_br_target:$target), IIC_Br, | ||||
let Inst{11} = target{21}; | let Inst{11} = target{21}; | ||||
let Inst{25-16} = target{20-11}; | let Inst{25-16} = target{20-11}; | ||||
let Inst{10-0} = target{10-0}; | let Inst{10-0} = target{10-0}; | ||||
let DecoderMethod = "DecodeT2BInstruction"; | let DecoderMethod = "DecodeT2BInstruction"; | ||||
let AsmMatchConverter = "cvtThumbBranches"; | let AsmMatchConverter = "cvtThumbBranches"; | ||||
} | } | ||||
let Size = 4, isNotDuplicable = 1, isIndirectBranch = 1 in { | let Size = 4, isNotDuplicable = 1, isIndirectBranch = 1 in { | ||||
def t2BR_JT : t2PseudoInst<(outs), | |||||
// available in both v8-M.Baseline and Thumb2 targets | |||||
def t2BR_JT : t2basePseudoInst<(outs), | |||||
rengolin: I'm worried about this hijack. Does that mean it won't be used by Thumb2 (v6T2+) any more? | |||||
Not Done ReplyInline ActionsThumb2 is a superset of V8MBaselineOps, so this won't be an issue. prakhar: Thumb2 is a superset of V8MBaselineOps, so this won't be an issue. | |||||
(ins GPR:$target, GPR:$index, i32imm:$jt), | (ins GPR:$target, GPR:$index, i32imm:$jt), | ||||
0, IIC_Br, | 0, IIC_Br, | ||||
[(ARMbr2jt GPR:$target, GPR:$index, tjumptable:$jt)]>, | [(ARMbr2jt GPR:$target, GPR:$index, tjumptable:$jt)]>, | ||||
Sched<[WriteBr]>; | Sched<[WriteBr]>; | ||||
// FIXME: Add a case that can be predicated. | // FIXME: Add a case that can be predicated. | ||||
def t2TBB_JT : t2PseudoInst<(outs), | def t2TBB_JT : t2PseudoInst<(outs), | ||||
(ins GPR:$base, GPR:$index, i32imm:$jt, i32imm:$pclbl), 0, IIC_Br, []>, | (ins GPR:$base, GPR:$index, i32imm:$jt, i32imm:$pclbl), 0, IIC_Br, []>, | ||||
▲ Show 20 Lines • Show All 1,279 Lines • Show Last 20 Lines |
I'm worried about this hijack. Does that mean it won't be used by Thumb2 (v6T2+) any more?