[NewPM] Add options to PrintPassInstrumentation
To bring D99599's implementation in line with the existing PrintPassInstrumentation, and to fix a FIXME, add more customizability to PrintPassInstrumentation. Introduce three new options. The first takes over the existing "-debug-pass-manager-verbose" cl::opt. The second and third option are specific to -fdebug-pass-structure. They allow indentation, and also don't print analysis queries. To avoid more golden file tests than necessary, prune down the -fdebug-pass-structure tests. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D102196
Showing
- clang/lib/CodeGen/BackendUtil.cpp 7 additions, 5 deletionsclang/lib/CodeGen/BackendUtil.cpp
- clang/test/Driver/debug-pass-structure.c 9 additions, 38 deletionsclang/test/Driver/debug-pass-structure.c
- llvm/include/llvm/Passes/StandardInstrumentations.h 17 additions, 16 deletionsllvm/include/llvm/Passes/StandardInstrumentations.h
- llvm/lib/Passes/StandardInstrumentations.cpp 48 additions, 64 deletionsllvm/lib/Passes/StandardInstrumentations.cpp
- llvm/test/Other/new-pass-manager-cgscc-fct-proxy.ll 2 additions, 2 deletionsllvm/test/Other/new-pass-manager-cgscc-fct-proxy.ll
- llvm/test/Other/opt-O3-pipeline.ll 0 additions, 164 deletionsllvm/test/Other/opt-O3-pipeline.ll
- llvm/test/Other/pass-pipeline-parsing.ll 2 additions, 2 deletionsllvm/test/Other/pass-pipeline-parsing.ll
- llvm/tools/opt/NewPMDriver.cpp 15 additions, 4 deletionsllvm/tools/opt/NewPMDriver.cpp
Loading
Please register or sign in to comment