llvm-project/llvm/tools/opt
Markus Lavin 304f2bd21d [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).

Differential Revision: https://reviews.llvm.org/D108298
2021-09-02 08:23:33 +02:00
..
AnalysisWrappers.cpp
BreakpointPrinter.cpp
BreakpointPrinter.h
CMakeLists.txt Speculative fix for build breakage from D78403 2020-05-14 23:57:22 -04:00
GraphPrinters.cpp
NewPMDriver.cpp [NPM] Added opt option -print-pipeline-passes. 2021-09-02 08:23:33 +02:00
NewPMDriver.h [Coroutines] Run coroutine passes by default 2021-07-15 14:33:40 +08:00
PassPrinters.cpp [opt] Remove obsolete --quiet option 2020-07-08 13:21:20 -07:00
PassPrinters.h [opt] Remove obsolete --quiet option 2020-07-08 13:21:20 -07:00
PrintSCC.cpp [PrintSCC] Fix printing a basic-block without a name 2020-05-29 20:14:19 +03:00
opt.cpp [Coroutines] Run coroutine passes by default 2021-07-15 14:33:40 +08:00