[LLVMdev] BasicBlock call (branch) flow graph

Renato Golin rengolin at systemcall.org
Thu Apr 1 08:50:36 PDT 2010

Hi all,

I know there is an opt pass to generate CFG in dot format, and I also
know about the --extract-blocks pass to make basic blocks as
functions, but neither gives me exactly what I want.

I wanted to have a flow graph of all basic blocks inside a function.
If possible, of all functions, as one-entry/one-exit sub-graphs,
probably like Poly would like, so I can print the sequence of calls
within bigger functions.

That will help me a lot debugging my IR generation to the more
complicated functions... Am I missing something obvious?



Reclaim your digital rights, eliminate DRM, learn more at

More information about the llvm-dev mailing list