[LLVMdev] BasicBlock call (branch) flow graph

Trevor Harmon Trevor.W.Harmon at nasa.gov
Thu Apr 1 11:19:50 PDT 2010


On Apr 1, 2010, at 8:50 AM, Renato Golin wrote:

> 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




More information about the llvm-dev mailing list