mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
Remove all references to TargetInstrInfoImpl.
This class has been merged into its super-class TargetInstrInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa2d98632c
commit
a9fa4fd973
@ -976,9 +976,6 @@ private:
|
||||
int CallFrameSetupOpcode, CallFrameDestroyOpcode;
|
||||
};
|
||||
|
||||
// Temporary typedef until all TargetInstrInfoImpl references are gone.
|
||||
typedef TargetInstrInfo TargetInstrInfoImpl;
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
@ -106,7 +106,7 @@ CreateTargetHazardRecognizer(const TargetMachine *TM,
|
||||
const InstrItineraryData *II = TM->getInstrItineraryData();
|
||||
return new ScoreboardHazardRecognizer(II, DAG, "pre-RA-sched");
|
||||
}
|
||||
return TargetInstrInfoImpl::CreateTargetHazardRecognizer(TM, DAG);
|
||||
return TargetInstrInfo::CreateTargetHazardRecognizer(TM, DAG);
|
||||
}
|
||||
|
||||
ScheduleHazardRecognizer *ARMBaseInstrInfo::
|
||||
@ -115,7 +115,7 @@ CreateTargetPostRAHazardRecognizer(const InstrItineraryData *II,
|
||||
if (Subtarget.isThumb2() || Subtarget.hasVFP2())
|
||||
return (ScheduleHazardRecognizer *)
|
||||
new ARMHazardRecognizer(II, *this, getRegisterInfo(), Subtarget, DAG);
|
||||
return TargetInstrInfoImpl::CreateTargetPostRAHazardRecognizer(II, DAG);
|
||||
return TargetInstrInfo::CreateTargetPostRAHazardRecognizer(II, DAG);
|
||||
}
|
||||
|
||||
MachineInstr *
|
||||
@ -1269,7 +1269,7 @@ reMaterialize(MachineBasicBlock &MBB,
|
||||
|
||||
MachineInstr *
|
||||
ARMBaseInstrInfo::duplicate(MachineInstr *Orig, MachineFunction &MF) const {
|
||||
MachineInstr *MI = TargetInstrInfoImpl::duplicate(Orig, MF);
|
||||
MachineInstr *MI = TargetInstrInfo::duplicate(Orig, MF);
|
||||
switch(Orig->getOpcode()) {
|
||||
case ARM::tLDRpci_pic:
|
||||
case ARM::t2LDRpci_pic: {
|
||||
@ -1604,7 +1604,7 @@ ARMBaseInstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
|
||||
// MOVCC AL can't be inverted. Shouldn't happen.
|
||||
if (CC == ARMCC::AL || PredReg != ARM::CPSR)
|
||||
return NULL;
|
||||
MI = TargetInstrInfoImpl::commuteInstruction(MI, NewMI);
|
||||
MI = TargetInstrInfo::commuteInstruction(MI, NewMI);
|
||||
if (!MI)
|
||||
return NULL;
|
||||
// After swapping the MOVCC operands, also invert the condition.
|
||||
@ -1613,7 +1613,7 @@ ARMBaseInstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
|
||||
return MI;
|
||||
}
|
||||
}
|
||||
return TargetInstrInfoImpl::commuteInstruction(MI, NewMI);
|
||||
return TargetInstrInfo::commuteInstruction(MI, NewMI);
|
||||
}
|
||||
|
||||
/// Identify instructions that can be folded into a MOVCC instruction, and
|
||||
|
@ -51,7 +51,7 @@ Thumb2InstrInfo::ReplaceTailWithBranchTo(MachineBasicBlock::iterator Tail,
|
||||
MachineBasicBlock *MBB = Tail->getParent();
|
||||
ARMFunctionInfo *AFI = MBB->getParent()->getInfo<ARMFunctionInfo>();
|
||||
if (!AFI->hasITBlocks()) {
|
||||
TargetInstrInfoImpl::ReplaceTailWithBranchTo(Tail, NewDest);
|
||||
TargetInstrInfo::ReplaceTailWithBranchTo(Tail, NewDest);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ Thumb2InstrInfo::ReplaceTailWithBranchTo(MachineBasicBlock::iterator Tail,
|
||||
--MBBI;
|
||||
|
||||
// Actually replace the tail.
|
||||
TargetInstrInfoImpl::ReplaceTailWithBranchTo(Tail, NewDest);
|
||||
TargetInstrInfo::ReplaceTailWithBranchTo(Tail, NewDest);
|
||||
|
||||
// Fix up IT.
|
||||
if (CC != ARMCC::AL) {
|
||||
|
@ -60,7 +60,7 @@ ScheduleHazardRecognizer *PPCInstrInfo::CreateTargetHazardRecognizer(
|
||||
return new PPCScoreboardHazardRecognizer(II, DAG);
|
||||
}
|
||||
|
||||
return TargetInstrInfoImpl::CreateTargetHazardRecognizer(TM, DAG);
|
||||
return TargetInstrInfo::CreateTargetHazardRecognizer(TM, DAG);
|
||||
}
|
||||
|
||||
/// CreateTargetPostRAHazardRecognizer - Return the postRA hazard recognizer
|
||||
@ -141,7 +141,7 @@ PPCInstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
|
||||
|
||||
// Normal instructions can be commuted the obvious way.
|
||||
if (MI->getOpcode() != PPC::RLWIMI)
|
||||
return TargetInstrInfoImpl::commuteInstruction(MI, NewMI);
|
||||
return TargetInstrInfo::commuteInstruction(MI, NewMI);
|
||||
|
||||
// Cannot commute if it has a non-zero rotate count.
|
||||
if (MI->getOperand(3).getImm() != 0)
|
||||
|
@ -2159,7 +2159,7 @@ X86InstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
|
||||
}
|
||||
MI->setDesc(get(Opc));
|
||||
MI->getOperand(3).setImm(Size-Amt);
|
||||
return TargetInstrInfoImpl::commuteInstruction(MI, NewMI);
|
||||
return TargetInstrInfo::commuteInstruction(MI, NewMI);
|
||||
}
|
||||
case X86::CMOVB16rr: case X86::CMOVB32rr: case X86::CMOVB64rr:
|
||||
case X86::CMOVAE16rr: case X86::CMOVAE32rr: case X86::CMOVAE64rr:
|
||||
@ -2238,7 +2238,7 @@ X86InstrInfo::commuteInstruction(MachineInstr *MI, bool NewMI) const {
|
||||
// Fallthrough intended.
|
||||
}
|
||||
default:
|
||||
return TargetInstrInfoImpl::commuteInstruction(MI, NewMI);
|
||||
return TargetInstrInfo::commuteInstruction(MI, NewMI);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4064,7 +4064,7 @@ bool X86InstrInfo::canFoldMemoryOperand(const MachineInstr *MI,
|
||||
|
||||
if (OpcodeTablePtr && OpcodeTablePtr->count(Opc))
|
||||
return true;
|
||||
return TargetInstrInfoImpl::canFoldMemoryOperand(MI, Ops);
|
||||
return TargetInstrInfo::canFoldMemoryOperand(MI, Ops);
|
||||
}
|
||||
|
||||
bool X86InstrInfo::unfoldMemoryOperand(MachineFunction &MF, MachineInstr *MI,
|
||||
|
@ -271,7 +271,7 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
||||
|
||||
std::string ClassName = TargetName + "GenInstrInfo";
|
||||
OS << "namespace llvm {\n";
|
||||
OS << "struct " << ClassName << " : public TargetInstrInfoImpl {\n"
|
||||
OS << "struct " << ClassName << " : public TargetInstrInfo {\n"
|
||||
<< " explicit " << ClassName << "(int SO = -1, int DO = -1);\n"
|
||||
<< "};\n";
|
||||
OS << "} // End llvm namespace \n";
|
||||
@ -286,7 +286,7 @@ void InstrInfoEmitter::run(raw_ostream &OS) {
|
||||
OS << "extern const unsigned " << TargetName << "InstrNameIndices[];\n";
|
||||
OS << "extern const char " << TargetName << "InstrNameData[];\n";
|
||||
OS << ClassName << "::" << ClassName << "(int SO, int DO)\n"
|
||||
<< " : TargetInstrInfoImpl(SO, DO) {\n"
|
||||
<< " : TargetInstrInfo(SO, DO) {\n"
|
||||
<< " InitMCInstrInfo(" << TargetName << "Insts, "
|
||||
<< TargetName << "InstrNameIndices, " << TargetName << "InstrNameData, "
|
||||
<< NumberedInstructions.size() << ");\n}\n";
|
||||
|
Loading…
Reference in New Issue
Block a user