forked from OSchip/llvm-project
parent
a296b7bf12
commit
e9cdb24f67
|
@ -112,11 +112,6 @@ class ARMFastISel final : public FastISel {
|
||||||
const TargetRegisterClass *RC,
|
const TargetRegisterClass *RC,
|
||||||
unsigned Op0, bool Op0IsKill,
|
unsigned Op0, bool Op0IsKill,
|
||||||
uint64_t Imm);
|
uint64_t Imm);
|
||||||
unsigned fastEmitInst_rri(unsigned MachineInstOpcode,
|
|
||||||
const TargetRegisterClass *RC,
|
|
||||||
unsigned Op0, bool Op0IsKill,
|
|
||||||
unsigned Op1, bool Op1IsKill,
|
|
||||||
uint64_t Imm);
|
|
||||||
unsigned fastEmitInst_i(unsigned MachineInstOpcode,
|
unsigned fastEmitInst_i(unsigned MachineInstOpcode,
|
||||||
const TargetRegisterClass *RC,
|
const TargetRegisterClass *RC,
|
||||||
uint64_t Imm);
|
uint64_t Imm);
|
||||||
|
@ -351,36 +346,6 @@ unsigned ARMFastISel::fastEmitInst_ri(unsigned MachineInstOpcode,
|
||||||
return ResultReg;
|
return ResultReg;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned ARMFastISel::fastEmitInst_rri(unsigned MachineInstOpcode,
|
|
||||||
const TargetRegisterClass *RC,
|
|
||||||
unsigned Op0, bool Op0IsKill,
|
|
||||||
unsigned Op1, bool Op1IsKill,
|
|
||||||
uint64_t Imm) {
|
|
||||||
unsigned ResultReg = createResultReg(RC);
|
|
||||||
const MCInstrDesc &II = TII.get(MachineInstOpcode);
|
|
||||||
|
|
||||||
// Make sure the input operands are sufficiently constrained to be legal
|
|
||||||
// for this instruction.
|
|
||||||
Op0 = constrainOperandRegClass(II, Op0, 1);
|
|
||||||
Op1 = constrainOperandRegClass(II, Op1, 2);
|
|
||||||
if (II.getNumDefs() >= 1) {
|
|
||||||
AddOptionalDefs(
|
|
||||||
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II, ResultReg)
|
|
||||||
.addReg(Op0, Op0IsKill * RegState::Kill)
|
|
||||||
.addReg(Op1, Op1IsKill * RegState::Kill)
|
|
||||||
.addImm(Imm));
|
|
||||||
} else {
|
|
||||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc, II)
|
|
||||||
.addReg(Op0, Op0IsKill * RegState::Kill)
|
|
||||||
.addReg(Op1, Op1IsKill * RegState::Kill)
|
|
||||||
.addImm(Imm));
|
|
||||||
AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
|
|
||||||
TII.get(TargetOpcode::COPY), ResultReg)
|
|
||||||
.addReg(II.ImplicitDefs[0]));
|
|
||||||
}
|
|
||||||
return ResultReg;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned ARMFastISel::fastEmitInst_i(unsigned MachineInstOpcode,
|
unsigned ARMFastISel::fastEmitInst_i(unsigned MachineInstOpcode,
|
||||||
const TargetRegisterClass *RC,
|
const TargetRegisterClass *RC,
|
||||||
uint64_t Imm) {
|
uint64_t Imm) {
|
||||||
|
|
Loading…
Reference in New Issue