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 unsigned int neighs = AdjList.size();
20 for(unsigned int i=0; i < neighs; i++) (AdjList[i])->decCurDegree();
24 void IGNode::delAdjIGNode(const IGNode *const Node) {
25 vector <IGNode *>::iterator It = AdjList.begin();
28 for( ; It != AdjList.end() && (*It != Node); It++ ) ;
29 assert( It != AdjList.end() ); // the node must be there