1 #include "llvm/CodeGen/IGNode.h"
4 IGNode::IGNode(LiveRange *const PLR, unsigned int Ind): Index(Ind),
10 ParentLR->setUserIGNode( this );
15 void IGNode::pushOnStack() // sets on to stack and
16 { // reduce the degree of neighbors
18 int neighs = AdjList.size();
21 cout << "\nAdj List size = " << neighs;
22 assert(0 && "Invalid adj list size");
25 for(int i=0; i < neighs; i++) (AdjList[i])->decCurDegree();
29 void IGNode::delAdjIGNode(const IGNode *const Node) {
30 vector <IGNode *>::iterator It = AdjList.begin();
33 for( ; It != AdjList.end() && (*It != Node); It++ ) ;
34 assert( It != AdjList.end() ); // the node must be there