aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2004-10-30 00:39:07 +0000
committerTanya Lattner <tonic@nondot.org>2004-10-30 00:39:07 +0000
commit260652a7af1c1dc910675bc58cbf342dbcf3a9a6 (patch)
tree06bf885a350867cee14f6565c8aeba826a115f0d /lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h
parentb1883932c7be741160221741828901528f16e525 (diff)
Fixed bug with infinite epilogues.
Fixed issue with generating the partial order. It now adds the nodes not in recurrences in sets for each connected component. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h')
-rw-r--r--lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h b/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h
index 4ea572a380..baa6373510 100644
--- a/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h
+++ b/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.h
@@ -21,6 +21,7 @@
#include "llvm/ADT/iterator"
#include <vector>
+
namespace llvm {
class MSchedGraph;
class MSchedGraphNode;
@@ -99,7 +100,9 @@ namespace llvm {
MSchedGraph* getParent() { return Parent; }
bool hasPredecessors() { return (Predecessors.size() > 0); }
bool hasSuccessors() { return (Successors.size() > 0); }
- int getLatency() { return latency; }
+ unsigned getLatency() { return latency; }
+ unsigned getLatency() const { return latency; }
+
MSchedGraphEdge getInEdge(MSchedGraphNode *pred);
unsigned getInEdgeNum(MSchedGraphNode *pred);
@@ -309,8 +312,6 @@ namespace llvm {
};
-
-
}
#endif