diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-11 04:27:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-11 04:27:20 +0000 |
commit | 47ac0f0c7c39289f5970688154e385be22b7f293 (patch) | |
tree | b5171c709044c112ff2b4c1ebd44d1cd1f5f89f4 /lib/CodeGen/ScheduleDAGInstrs.h | |
parent | ca70533d3daeda66f6a0f19faf6691c20b34d086 (diff) | |
download | external_llvm-47ac0f0c7c39289f5970688154e385be22b7f293.zip external_llvm-47ac0f0c7c39289f5970688154e385be22b7f293.tar.gz external_llvm-47ac0f0c7c39289f5970688154e385be22b7f293.tar.bz2 |
When scheduling a block in parts, keep track of the overall
instruction index across each part. Instruction indices are used
to make live range queries, and live ranges can extend beyond
scheduling region boundaries.
Refactor the ScheduleDAGSDNodes class some more so that it
doesn't have to worry about this additional information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.h')
-rw-r--r-- | lib/CodeGen/ScheduleDAGInstrs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.h b/lib/CodeGen/ScheduleDAGInstrs.h index 713534b..00d6268 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.h +++ b/lib/CodeGen/ScheduleDAGInstrs.h @@ -120,6 +120,12 @@ namespace llvm { SmallSet<unsigned, 8> LoopLiveInRegs; public: + MachineBasicBlock *BB; // Current basic block + MachineBasicBlock::iterator Begin; // The beginning of the range to + // be scheduled. The range extends + // to InsertPos. + unsigned InsertPosIndex; // The index in BB of InsertPos. + explicit ScheduleDAGInstrs(MachineFunction &mf, const MachineLoopInfo &mli, const MachineDominatorTree &mdt); @@ -139,6 +145,13 @@ namespace llvm { return &SUnits.back(); } + /// Run - perform scheduling. + /// + void Run(MachineBasicBlock *bb, + MachineBasicBlock::iterator begin, + MachineBasicBlock::iterator end, + unsigned endindex); + /// BuildSchedGraph - Build SUnits from the MachineBasicBlock that we are /// input. virtual void BuildSchedGraph(); |