[LLVMdev] Get the call graph SCCs from a function pass
Török Edwin
edwintorok at gmail.com
Sun May 10 11:01:41 PDT 2009
On 2009-05-10 20:11, Nick Johnson wrote:
> Hello,
>
> I'm writing a Function Pass. This function pass needs access to the
> CallGraph and CallGraph SCCs. Is there any way I can get CallGraph
> information without changing my pass to a CallGraphSCCPass ?
Does getAnalysis<CallGraph>() work?
But I'm not sure if using a FunctionPass to access Callgraph data is a
good idea, transformations can
change it (for example dead code elimination can remove edges).
Best regards,
--Edwin
More information about the llvm-dev
mailing list