[all-commits] [llvm/llvm-project] c71869: [NPM] Added opt option -print-pipeline-passes.
elavkje via All-commits
all-commits at lists.llvm.org
Wed Sep 1 23:21:45 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c71869ed4c24b3d4d13e2f83ee2c0104013ca129
https://github.com/llvm/llvm-project/commit/c71869ed4c24b3d4d13e2f83ee2c0104013ca129
Author: Markus Lavin <markus.lavin at ericsson.com>
Date: 2021-09-02 (Thu, 02 Sep 2021)
Changed paths:
M llvm/include/llvm/IR/PassManager.h
M llvm/include/llvm/IR/PassManagerInternal.h
M llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
M llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
M llvm/lib/IR/PassManager.cpp
M llvm/lib/Passes/PassBuilder.cpp
M llvm/lib/Transforms/Scalar/LoopPassManager.cpp
M llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
A llvm/test/Other/new-pm-print-pipeline.ll
M llvm/tools/opt/NewPMDriver.cpp
Log 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).
More information about the All-commits
mailing list