[LLVMdev] dump cfg after each pass
Xinliang David Li
xinliangli at gmail.com
Wed Oct 27 15:27:13 CDT 2010
Yes, this works -- without invoking the viewer.
On Wed, Oct 27, 2010 at 11:45 AM, Tobias Grosser
<grosser at fim.uni-passau.de>wrote:
> 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
>> 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
> opt -dot-cfg llvm-ir.ll
> If you store the dump in a file and use dot this should achieve what you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev