[LLVMdev] dump cfg after each pass

Xinliang David Li xinliangli at gmail.com
Wed Oct 27 13:27:13 PDT 2010


Yes, this works -- without invoking the viewer.

Thanks,

David

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
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101027/e964e86c/attachment.html>


More information about the llvm-dev mailing list