[PATCH] D108298: [NPM] Print '-passes' compatible string for built pipeline.
Markus Lavin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 30 03:23:20 PDT 2021
markus updated this revision to Diff 369408.
markus added a comment.
Herald added a subscriber: ormris.
Added lit-test, did some more cleanup.
Suggesting following commit message:
[NPM] Added opt option -print-pipeline-passes.
Added opt option -print-pipeline-passes to print a -passes compatible
string describing the built pass pipeline.
As an example:
$ opt -enable-new-pm=1 -adce -licm -simplifycfg -o /dev/null /dev/null -print-pipeline-passes
verify,function(adce),function(loop-mssa(licm)),function(simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-sink-common-insts>),verify,BitcodeWriterPass
At the moment this is best-effort only and there are some known
limitations:
- Not all passes accepting parameters will print their parameters
(currently only implemented for simplifycfg).
- Some ClassName to pass-name mappings are not unique.
- Some ClassName to pass-name mappings are missing (e.g.
BitcodeWriterPass).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108298/new/
https://reviews.llvm.org/D108298
Files:
llvm/include/llvm/IR/PassManager.h
llvm/include/llvm/IR/PassManagerInternal.h
llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
llvm/lib/IR/PassManager.cpp
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/Scalar/LoopPassManager.cpp
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
llvm/test/Other/new-pm-print-pipeline.ll
llvm/tools/opt/NewPMDriver.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108298.369408.patch
Type: text/x-patch
Size: 12529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210830/3b299c4a/attachment.bin>
More information about the llvm-commits
mailing list