[LLVMdev] Making a pass available to llc?
Chris Lattner
sabre at nondot.org
Tue Jul 26 22:42:37 PDT 2005
On Tue, 26 Jul 2005, Michael McCracken wrote:
>> I can't see any harm in that. However, please make sure that it really
>> isn't being run. The verifier can be hidden by various levels of
>> abstraction.
>
> Assuming that I get everything with -debug-pass=Structure, then it isn't:
-debug-pass=Structure does list everything. If you add it, please add it
in an "#ifndef NDEBUG" block so that it does not penalize the release
build.
Thanks!
-Chris
> % llc -march=x86 -stats -f tests/IS/npbis.bc -debug-pass=Structure
> Pass Arguments: -lowergc -lowerinvoke -lowerswitch -unreachableblockelim
> Target Data Layout
> Module Pass Manager
> Function Pass Manager
> Lower GC intrinsics, for GCless code generators
> -- Lower GC intrinsics, for GCless code generators
> Lower invoke and unwind, for unwindless code generators
> -- Lower invoke and unwind, for unwindless code generators
> Lower SwitchInst's to branches
> -- Lower SwitchInst's to branches
> Remove unreachable blocks from the CFG
> -- Remove unreachable blocks from the CFG
> X86 Pattern Instruction Selection
> -- X86 Pattern Instruction Selection
> Live Variable Analysis
> Eliminate PHI nodes for register allocation
> Two-Address instruction pass
> Immediate Dominators Construction
> Dominator Set Construction
> -- Immediate Dominators Construction
> Natural Loop Construction
> -- Dominator Set Construction
> Live Interval Analysis
> -- Natural Loop Construction
> -- Live Variable Analysis
> -- Eliminate PHI nodes for register allocation
> -- Two-Address instruction pass
> Linear Scan Register Allocator
> -- Live Interval Analysis
> -- Linear Scan Register Allocator
> Live Variable Analysis
> X86 FP Stackifier
> -- Live Variable Analysis
> -- X86 FP Stackifier
> Prolog/Epilog Insertion & Frame Finalization
> -- Prolog/Epilog Insertion & Frame Finalization
> X86 Peephole Optimizer
> -- X86 Peephole Optimizer
> X86 AT&T-Style Assembly Printer
> -- X86 AT&T-Style Assembly Printer
> Machine Code Deleter
> -- Machine Code Deleter
>
>
> I'll add it. I managed to uncover a bug in my own code with my new
> version of llc, though, so I might not have a patch to send tonight,
> but I will soon.
>
> Thanks,
> -mike
>
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list