forked from OSchip/llvm-project
FastISel: Remove unused/un-overridden entry points. NFCI.
llvm-svn: 283366
This commit is contained in:
parent
6a8e0bcf3d
commit
d799d28540
|
@ -356,19 +356,6 @@ protected:
|
|||
virtual unsigned fastEmit_ri(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0,
|
||||
bool Op0IsKill, uint64_t Imm);
|
||||
|
||||
/// \brief This method is called by target-independent code to request that an
|
||||
/// instruction with the given type, opcode, and register and floating-point
|
||||
/// immediate operands be emitted.
|
||||
virtual unsigned fastEmit_rf(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0,
|
||||
bool Op0IsKill, const ConstantFP *FPImm);
|
||||
|
||||
/// \brief This method is called by target-independent code to request that an
|
||||
/// instruction with the given type, opcode, and register and immediate
|
||||
/// operands be emitted.
|
||||
virtual unsigned fastEmit_rri(MVT VT, MVT RetVT, unsigned Opcode,
|
||||
unsigned Op0, bool Op0IsKill, unsigned Op1,
|
||||
bool Op1IsKill, uint64_t Imm);
|
||||
|
||||
/// \brief This method is a wrapper of fastEmit_ri.
|
||||
///
|
||||
/// It first tries to emit an instruction with an immediate operand using
|
||||
|
|
|
@ -455,17 +455,6 @@ bool FastISel::selectBinaryOp(const User *I, unsigned ISDOpcode) {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Check if the second operand is a constant float.
|
||||
if (const auto *CF = dyn_cast<ConstantFP>(I->getOperand(1))) {
|
||||
unsigned ResultReg = fastEmit_rf(VT.getSimpleVT(), VT.getSimpleVT(),
|
||||
ISDOpcode, Op0, Op0IsKill, CF);
|
||||
if (ResultReg) {
|
||||
// We successfully emitted code for the given LLVM Instruction.
|
||||
updateValueMap(I, ResultReg);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned Op1 = getRegForValue(I->getOperand(1));
|
||||
if (!Op1) // Unhandled operand. Halt "fast" selection and bail.
|
||||
return false;
|
||||
|
@ -1725,18 +1714,6 @@ unsigned FastISel::fastEmit_ri(MVT, MVT, unsigned, unsigned /*Op0*/,
|
|||
return 0;
|
||||
}
|
||||
|
||||
unsigned FastISel::fastEmit_rf(MVT, MVT, unsigned, unsigned /*Op0*/,
|
||||
bool /*Op0IsKill*/,
|
||||
const ConstantFP * /*FPImm*/) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned FastISel::fastEmit_rri(MVT, MVT, unsigned, unsigned /*Op0*/,
|
||||
bool /*Op0IsKill*/, unsigned /*Op1*/,
|
||||
bool /*Op1IsKill*/, uint64_t /*Imm*/) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// This method is a wrapper of fastEmit_ri. It first tries to emit an
|
||||
/// instruction with an immediate operand using fastEmit_ri.
|
||||
/// If that fails, it materializes the immediate into a register and try
|
||||
|
|
|
@ -564,8 +564,7 @@ void FastISelMap::collectPatterns(CodeGenDAGPatterns &CGP) {
|
|||
Operands.PrintManglingSuffix(SuffixOS, ImmediatePredicates, true);
|
||||
SuffixOS.flush();
|
||||
if (!StringSwitch<bool>(ManglingSuffix)
|
||||
.Cases("", "r", "rr", "ri", "rf", true)
|
||||
.Cases("rri", "i", "f", true)
|
||||
.Cases("", "r", "rr", "ri", "i", "f", true)
|
||||
.Default(false))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue