search for: getnumlink

Displaying 4 results from an estimated 4 matches for "getnumlink".

Did you mean: getnumlinks
2002 Nov 08
2
[LLVMdev] Re: LLVMdev digest, Vol 1 #44 - 2 msgs
llvm, What is the best way to implement a traversal of the DS graph, starting at a scalar and processing all nodes to which the scalar allows access? Currently the links vector is not public and there is no apparent way to bound the getLink call (ie a getNumLinks call).... Dave
2002 Nov 08
0
[LLVMdev] Iterating on the DSGraph...
> What is the best way to implement a traversal of the DS graph, starting at > a scalar and processing all nodes to which the scalar allows access? > Currently the links vector is not public and there is no apparent way to > bound the getLink call (ie a getNumLinks call).... Warning, untested code follows, but you should get the idea: #include "llvm/Analysis/DSGraphTraits.h" DSNode *N = ... // Visit all children of a node... for (DSNode::iterator I = N->begin(), E = N->end(); I != E; ++I) if (I->getNode()) visit(I->ge...
2002 Nov 08
1
[LLVMdev] Iterating on the DSGraph... (fwd)
...073 > > > > What is the best way to implement a traversal of the DS graph, starting at > > a scalar and processing all nodes to which the scalar allows access? > > Currently the links vector is not public and there is no apparent way to > > bound the getLink call (ie a getNumLinks call).... > > Warning, untested code follows, but you should get the idea: > > > #include "llvm/Analysis/DSGraphTraits.h" > > DSNode *N = ... > > // Visit all children of a node... > for (DSNode::iterator I = N->begin(), E = N->end(); I != E; ++I)...
2002 Nov 16
2
[LLVMdev] question
...E; ++I) if (I->getNode()) visit(I->getNode(), I->getOffset()); The return type of I->getNode() is 'const DSNode *' type. Is there a 'DSNode *' type iterator? Besides, Can I use the following code to visit the children of N? for( unsigned i=0; i < N->getNumLinks(); i++) { visit( N->getLink() ) } Thanks, Jerry