[NewPM] Add options to PrintPassInstrumentation
authorArthur Eubanks <aeubanks@google.com>
Fri, 7 May 2021 21:32:20 +0000 (14:32 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 19 May 2021 03:59:35 +0000 (20:59 -0700)
commit0c509dbc7e29cbd03f161513b8d335f768c7cc2b
tree04acdcae57e1967e0f6195f78732b918098d84c4
parent7faabe5fc91ef18b95780dabbc3dcdc906c961ea
[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
clang/lib/CodeGen/BackendUtil.cpp
clang/test/Driver/debug-pass-structure.c
llvm/include/llvm/Passes/StandardInstrumentations.h
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/new-pass-manager-cgscc-fct-proxy.ll
llvm/test/Other/opt-O3-pipeline.ll
llvm/test/Other/pass-pipeline-parsing.ll
llvm/tools/opt/NewPMDriver.cpp