mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -378,7 +378,8 @@ static bool isSchedBoundary(MachineBasicBlock::iterator MI,
|
||||
|
||||
/// Main driver for both MachineScheduler and PostMachineScheduler.
|
||||
void MachineSchedulerBase::scheduleRegions(ScheduleDAGInstrs &Scheduler) {
|
||||
const TargetInstrInfo *TII = MF->getTarget().getInstrInfo();
|
||||
const TargetInstrInfo *TII =
|
||||
MF->getTarget().getSubtargetImpl()->getInstrInfo();
|
||||
bool IsPostRA = Scheduler.isPostRA();
|
||||
|
||||
// Visit all machine basic blocks.
|
||||
@ -2358,11 +2359,13 @@ void GenericScheduler::initialize(ScheduleDAGMI *dag) {
|
||||
const TargetMachine &TM = DAG->MF.getTarget();
|
||||
if (!Top.HazardRec) {
|
||||
Top.HazardRec =
|
||||
TM.getInstrInfo()->CreateTargetMIHazardRecognizer(Itin, DAG);
|
||||
TM.getSubtargetImpl()->getInstrInfo()->CreateTargetMIHazardRecognizer(
|
||||
Itin, DAG);
|
||||
}
|
||||
if (!Bot.HazardRec) {
|
||||
Bot.HazardRec =
|
||||
TM.getInstrInfo()->CreateTargetMIHazardRecognizer(Itin, DAG);
|
||||
TM.getSubtargetImpl()->getInstrInfo()->CreateTargetMIHazardRecognizer(
|
||||
Itin, DAG);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2371,7 +2374,7 @@ void GenericScheduler::initPolicy(MachineBasicBlock::iterator Begin,
|
||||
MachineBasicBlock::iterator End,
|
||||
unsigned NumRegionInstrs) {
|
||||
const TargetMachine &TM = Context->MF->getTarget();
|
||||
const TargetLowering *TLI = TM.getTargetLowering();
|
||||
const TargetLowering *TLI = TM.getSubtargetImpl()->getTargetLowering();
|
||||
|
||||
// Avoid setting up the register pressure tracker for small regions to save
|
||||
// compile time. As a rough heuristic, only track pressure when the number of
|
||||
@ -2888,7 +2891,8 @@ void PostGenericScheduler::initialize(ScheduleDAGMI *Dag) {
|
||||
const TargetMachine &TM = DAG->MF.getTarget();
|
||||
if (!Top.HazardRec) {
|
||||
Top.HazardRec =
|
||||
TM.getInstrInfo()->CreateTargetMIHazardRecognizer(Itin, DAG);
|
||||
TM.getSubtargetImpl()->getInstrInfo()->CreateTargetMIHazardRecognizer(
|
||||
Itin, DAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user