[LLVMdev] [PATCH] Before/After IR Dumps
Chris Lattner
clattner at apple.com
Wed Mar 3 23:54:55 PST 2010
On Mar 2, 2010, at 1:45 PM, David Greene wrote:
> This set of patches adds support for dumping IR before or after specified
> Passes. It adds the following command-line options:
>
> -print-before=<pass-option>
> -print-after=<pass-option>
> -print-before-all
> -print-after-all
This patch looks very invasive for such a simple thing, isn't there a better way?
Also, please please please stay in 80 columns.
-Chris
>
> Use it like this:
>
> llc -debug -print-before=linearscan-regalloc file.bc -o file.s
>
> -help will print the pass options available to -print-before and -print-after.
>
> The patches add support to clang, llvm and llvm-gcc, respectively.
>
> We use this extensively to debug Passes by examining IR before and after
> they run.
>
> Please review for commit and comment. It would be great to get this into the
> 2.7 release.
>
> Thanks!
>
> -Dave
>
> <clang-beforeafter.patch><llvm-beforeafter.patch><llvm-gcc-beforeafter.patch>_______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list