mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
misched: Add finalizeScheduler to complete the target interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -296,6 +296,10 @@ namespace llvm {
|
|||||||
/// overriding enterRegion() or exitRegion().
|
/// overriding enterRegion() or exitRegion().
|
||||||
virtual void schedule() = 0;
|
virtual void schedule() = 0;
|
||||||
|
|
||||||
|
/// finalizeSchedule - Allow targets to perform final scheduling actions at
|
||||||
|
/// the level of the whole MachineFunction. By default does nothing.
|
||||||
|
virtual void finalizeSchedule() {}
|
||||||
|
|
||||||
virtual void dumpNode(const SUnit *SU) const;
|
virtual void dumpNode(const SUnit *SU) const;
|
||||||
|
|
||||||
/// Return a label for a DAG node that points to an instruction.
|
/// Return a label for a DAG node that points to an instruction.
|
||||||
|
@@ -227,6 +227,7 @@ bool MachineScheduler::runOnMachineFunction(MachineFunction &mf) {
|
|||||||
assert(RemainingCount == 0 && "Instruction count mismatch!");
|
assert(RemainingCount == 0 && "Instruction count mismatch!");
|
||||||
Scheduler->finishBlock();
|
Scheduler->finishBlock();
|
||||||
}
|
}
|
||||||
|
Scheduler->finalizeSchedule();
|
||||||
DEBUG(LIS->print(dbgs()));
|
DEBUG(LIS->print(dbgs()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user