[LLVMdev] dump cfg after each pass
Tobias Grosser
grosser at fim.uni-passau.de
Wed Oct 27 11:45:21 PDT 2010
On 10/27/2010 01:59 PM, Xinliang David Li wrote:
> A dumb question -- is there a way to dump cfg after each pass, something
> like: --print-cfg-after=sccp, or is there a standard post-processing script
> that builds the cfg vcg/dot file from the ir dump?
You can use to create a dot file of everyfunction for an normal
llvm-ir.ll file.
opt -dot-cfg llvm-ir.ll
If you store the dump in a file and use dot this should achieve what you
want.
Cheers
Tobi
More information about the llvm-dev
mailing list