summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 16:42:34 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 16:42:34 +0000
commit28760f4e77cd7d63859337c872df9e648faea062 (patch)
tree380b6c17e6c7e3c1bfd07b70c53357182fb9f968 /include
parent99798959762c3c4c8820b8034077a7d3e7d6e36f (diff)
downloadllvm-28760f4e77cd7d63859337c872df9e648faea062.tar.gz
llvm-28760f4e77cd7d63859337c872df9e648faea062.tar.bz2
llvm-28760f4e77cd7d63859337c872df9e648faea062.tar.xz
Make assertIGNode be private to the InterferenceGraph.cpp file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/InterferenceGraph.h29
1 files changed, 10 insertions, 19 deletions
diff --git a/include/llvm/CodeGen/InterferenceGraph.h b/include/llvm/CodeGen/InterferenceGraph.h
index 408bee4558..5af8149a32 100644
--- a/include/llvm/CodeGen/InterferenceGraph.h
+++ b/include/llvm/CodeGen/InterferenceGraph.h
@@ -27,41 +27,32 @@
typedef std::vector <IGNode *> IGNodeListType;
-class InterferenceGraph
-{
+class InterferenceGraph {
char **IG; // a poiner to the interference graph
unsigned int Size; // size of a side of the IG
RegClass *const RegCl; // RegCl contains this IG
IGNodeListType IGNodeList; // a list of all IGNodes in a reg class
- // for asserting this IG node is infact in the IGNodeList of this class
- inline void assertIGNode(const IGNode *const Node) const {
- assert( IGNodeList[ Node->getIndex() ] == Node );
- }
-
-
-
public:
-
// the matrix is not yet created by the constructor. Call createGraph()
// to create it after adding all IGNodes to the IGNodeList
-
- InterferenceGraph(RegClass *const RC);
+ InterferenceGraph(RegClass *RC);
~InterferenceGraph();
void createGraph();
- void addLRToIG(LiveRange *const LR);
+ void addLRToIG(LiveRange *LR);
- void setInterference(const LiveRange *const LR1,
- const LiveRange *const LR2 );
+ void setInterference(const LiveRange *LR1,
+ const LiveRange *LR2);
- unsigned getInterference(const LiveRange *const LR1,
- const LiveRange *const LR2 ) const ;
+ unsigned getInterference(const LiveRange *LR1,
+ const LiveRange *LR2) const ;
- void mergeIGNodesOfLRs(const LiveRange *const LR1, LiveRange *const LR2);
+ void mergeIGNodesOfLRs(const LiveRange *LR1, LiveRange *LR2);
- inline IGNodeListType &getIGNodeList() { return IGNodeList; }
+ IGNodeListType &getIGNodeList() { return IGNodeList; }
+ const IGNodeListType &getIGNodeList() const { return IGNodeList; }
void setCurDegreeOfIGNodes();