Yes, this works -- without invoking the viewer.<div><br></div><div>Thanks,</div><div><br>David<br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 11:45 AM, Tobias Grosser <span dir="ltr"><<a href="mailto:grosser@fim.uni-passau.de">grosser@fim.uni-passau.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 10/27/2010 01:59 PM, Xinliang David Li wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A dumb question -- is there a way to dump cfg after each pass, something<br>
like: --print-cfg-after=sccp, or is there a standard post-processing script<br>
that builds the cfg vcg/dot file from the ir dump?<br>
</blockquote>
<br></div></div>
You can use to create a dot file of everyfunction for an normal llvm-ir.ll file.<br>
<br>
opt -dot-cfg llvm-ir.ll<br>
<br>
If you store the dump in a file and use dot this should achieve what you want.<br>
<br>
Cheers<br>
Tobi<br>
<br>
</blockquote></div><br></div>