[LLVMdev] How to dump a .bc file before/after a specific opt pass?

Joey Gouly joel.gouly at gmail.com
Mon Apr 9 09:38:57 PDT 2012


Hi,

If you're using `opt`, you can use -print-module to dump the module.
So "opt -S file.ll -print-module -your-opt -print-module", or something
like that.

Joey

On 9 April 2012 17:15, xiaoming gu <xiaoming.gu at gmail.com> wrote:

> Hi, all. I'm adding a new pass in opt. To make the debugging easier, I'm
> trying to
> draw the CFG before and after the new pass. Is there any an option to dump
> the
> .bc file before/after a specific opt pass? Thanks.
>
> Xiaoming
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120409/16a5e450/attachment.html>


More information about the llvm-dev mailing list