Hi,<div><br></div><div>If you're using `opt`, you can use -print-module to dump the module.</div><div>So "opt -S file.ll -print-module -your-opt -print-module", or something like that.</div><div><br></div><div>
Joey<br><br><div class="gmail_quote">On 9 April 2012 17:15, xiaoming gu <span dir="ltr"><<a href="mailto:xiaoming.gu@gmail.com">xiaoming.gu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, all. I'm adding a new pass in opt. To make the debugging easier, I'm trying to <div>draw the CFG before and after the new pass. Is there any an option to dump the </div><div>.bc file before/after a specific opt pass? Thanks.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Xiaoming</div>
</font></span><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>