[LLVMdev] standard passes

Bill Wendling isanbard at gmail.com
Mon Apr 14 00:49:54 PDT 2008


On Apr 13, 2008, at 8:06 PM, Lu Zhao wrote:
> I'd like to hack into the standard passes when using the command line
> option -std-compile-opts. What I'd like to do is to stop after each
> pass and see the current program representation before the next pass  
> is
> run in gdb. What is the favorite way to do this?
>
If you're in GDB, then use something like this:

	M->dump()

where M is the current Module. You can execute the same call with  
Function, BasicBlock, etc.

If you're running opt on the command line directly, then use the "-p"  
option. See "-help" for more information on that.

-bw




More information about the llvm-dev mailing list