xiaoming gu
2012-Apr-09 16:15 UTC
[LLVMdev] How to dump a .bc file before/after a specific opt pass?
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120409/22408e27/attachment.html>
Joey Gouly
2012-Apr-09 16:38 UTC
[LLVMdev] How to dump a .bc file before/after a specific opt pass?
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>
Apparently Analagous Threads
- [LLVMdev] llvm doxygen down?
- [LLVMdev] Instrumenting C/C++ programs
- [LLVMdev] Instrumenting C/C++ programs
- [LLVMdev] Should repetitive basic blocks be removed in the results of LoopBase::getExitBlocks()?
- [LLVMdev] Should repetitive basic blocks be removed in the results of LoopBase::getExitBlocks()?