aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuloScheduling/ModuloScheduling.h
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-05-26 06:27:18 +0000
committerTanya Lattner <tonic@nondot.org>2004-05-26 06:27:18 +0000
commit4cffb588f5fafe4b288d4361e115bedefe979495 (patch)
tree5100f3a8da1df005089120300b9818bf1f559fe5 /lib/CodeGen/ModuloScheduling/ModuloScheduling.h
parent1812268126996049b0bedbcde079484d7136b8af (diff)
Updating my cvs versions. THis is still in progress and much will be changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuloScheduling/ModuloScheduling.h')
-rw-r--r--lib/CodeGen/ModuloScheduling/ModuloScheduling.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/CodeGen/ModuloScheduling/ModuloScheduling.h b/lib/CodeGen/ModuloScheduling/ModuloScheduling.h
index b573b10486..62abc7c528 100644
--- a/lib/CodeGen/ModuloScheduling/ModuloScheduling.h
+++ b/lib/CodeGen/ModuloScheduling/ModuloScheduling.h
@@ -14,6 +14,7 @@
#define LLVM_MODULOSCHEDULING_H
#include "MSchedGraph.h"
+#include "MSSchedule.h"
#include "llvm/Function.h"
#include "llvm/Pass.h"
#include <set>
@@ -54,7 +55,7 @@ namespace llvm {
std::vector<MSchedGraphNode*> FinalNodeOrder;
//Schedule table, key is the cycle number and the vector is resource, node pairs
- std::map<unsigned, std::vector<std::pair<unsigned, std::vector<MSchedGraphNode*> > > > schedule;
+ MSSchedule schedule;
//Current initiation interval
int II;
@@ -87,6 +88,12 @@ namespace llvm {
void predIntersect(std::vector<MSchedGraphNode*> &CurrentSet, std::vector<MSchedGraphNode*> &IntersectResult);
void succIntersect(std::vector<MSchedGraphNode*> &CurrentSet, std::vector<MSchedGraphNode*> &IntersectResult);
+
+ void reconstructLoop(const MachineBasicBlock*);
+
+ //void saveValue(const MachineInstr*, const std::set<Value*>&, std::vector<Value*>*);
+
+ void writePrologue(std::vector<MachineBasicBlock *> &prologues, MachineBasicBlock *origBB, std::vector<BasicBlock*> &llvm_prologues);
public:
ModuloSchedulingPass(TargetMachine &targ) : target(targ) {}