Fixed up sched graph.
authorTanya Lattner <tonic@nondot.org>
Sat, 8 May 2004 16:14:24 +0000 (16:14 +0000)
committerTanya Lattner <tonic@nondot.org>
Sat, 8 May 2004 16:14:24 +0000 (16:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13428 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SchedGraphCommon.h

index 5e814137bcbbe52d966a8472799f601d46b5dc9a..fbb9dac7517d81da76c82365265558a64e1ddcfd 100644 (file)
@@ -79,9 +79,7 @@ protected:
   // disable default constructor and provide a ctor for single-block graphs
   SchedGraphNodeCommon();      // DO NOT IMPLEMENT
   
-  inline SchedGraphNodeCommon(unsigned Id, int index) : ID(Id), latency(0), 
-                                                       origIndexInBB(index) {}
-  inline SchedGraphNodeCommon(unsigned Id, int late, int index) : ID(Id), latency(late), origIndexInBB(index) {}
+  inline SchedGraphNodeCommon(unsigned Id, int index, int late=0) : ID(Id), latency(late), origIndexInBB(index) {}
   
   virtual ~SchedGraphNodeCommon();
   
@@ -160,7 +158,8 @@ public:
   SchedGraphNodeCommon*        getSink() const { return sink; }
   int getMinDelay() const { return minDelay; }
   SchedGraphEdgeDepType getDepType() const { return depType; }
-  
+  unsigned int getDepOrderType() const { return depOrderType; }
+
   const Value* getValue() const {
     assert(depType == ValueDep); return val;
   }