summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-03-07 05:21:44 +0000
committerAndrew Trick <atrick@apple.com>2012-03-07 05:21:44 +0000
commit84b454d1a270a5d685e01686ed15e68c44b0b56a (patch)
treef9053c8e0fd57d4500418db38cd4fc15e2d7694f /lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
parent73ba69b6843f7f23345b1e8745cb328952cae0d8 (diff)
downloadllvm-84b454d1a270a5d685e01686ed15e68c44b0b56a.tar.gz
llvm-84b454d1a270a5d685e01686ed15e68c44b0b56a.tar.bz2
llvm-84b454d1a270a5d685e01686ed15e68c44b0b56a.tar.xz
misched preparation: modularize schedule emission.
ScheduleDAG has nothing to do with how the instructions are scheduled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h')
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
index 5c05c72225..69f1b7b657 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
@@ -115,6 +115,11 @@ namespace llvm {
/// consistent with the Sequence of scheduled instructions.
void VerifyScheduledSequence(bool isBottomUp);
+ /// EmitSchedule - Insert MachineInstrs into the MachineBasicBlock
+ /// according to the order specified in Sequence.
+ ///
+ MachineBasicBlock *EmitSchedule(MachineBasicBlock::iterator &InsertPos);
+
virtual void dumpNode(const SUnit *SU) const;
void dumpSchedule() const;
@@ -168,6 +173,9 @@ namespace llvm {
/// BuildSchedUnits, AddSchedEdges - Helper functions for BuildSchedGraph.
void BuildSchedUnits();
void AddSchedEdges();
+
+ void EmitPhysRegCopy(SUnit *SU, DenseMap<SUnit*, unsigned> &VRBaseMap,
+ MachineBasicBlock::iterator InsertPos);
};
}