[LLVMdev] Getting CallGraph SCCs

Chris Lattner sabre at nondot.org
Mon May 1 16:47:44 PDT 2006

On Mon, 1 May 2006, Balpreet Pankaj wrote:
> Is there a way in LLVM , using which I can get Call graph SCCs in reverse
> post order in a FunctionPass object?

Yes, in your Pass, just add require the CallGraph interface.  Then do a 
rpo iteration on the callgraph node objects.



More information about the llvm-dev mailing list