diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-05-08 16:14:24 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-05-08 16:14:24 +0000 |
commit | b4b2e9d5a74a4c1315ad86474944fd2fb9244ba7 (patch) | |
tree | ac79f9845259e8afe9189ba85f0c78935faa7667 /include/llvm/CodeGen/SchedGraphCommon.h | |
parent | 5a75c919515a6142d3bc0d477627fbd27dc1cc8a (diff) | |
download | external_llvm-b4b2e9d5a74a4c1315ad86474944fd2fb9244ba7.tar.gz external_llvm-b4b2e9d5a74a4c1315ad86474944fd2fb9244ba7.tar.bz2 external_llvm-b4b2e9d5a74a4c1315ad86474944fd2fb9244ba7.zip |
Fixed up sched graph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SchedGraphCommon.h')
-rw-r--r-- | include/llvm/CodeGen/SchedGraphCommon.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SchedGraphCommon.h b/include/llvm/CodeGen/SchedGraphCommon.h index 5e814137bc..fbb9dac751 100644 --- a/include/llvm/CodeGen/SchedGraphCommon.h +++ b/include/llvm/CodeGen/SchedGraphCommon.h @@ -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; } |