BasicBlock call (branch) flow graph

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?

cheers,
--renato

http://systemcall.org/

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

I know there is an opt pass to generate CFG in dot format

...

I wanted to have a flow graph of all basic blocks inside a function.

Isn't that what -dot-cfg gives you? Or by "flow graph" do you mean some kind of an internal graph representation (not a DOT file)?

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.

By this do you mean grafting a called function's CFG to its caller's CFG? In other words, merging the separate function CFGs into a single whole-program CFG?

Trevor