[PATCH] D102196: [NewPM] Add options to PrintPassInstrumentation

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 10 14:00:33 PDT 2021


aeubanks created this revision.
Herald added subscribers: nikic, hiraditya.
aeubanks requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, cfe-commits, sstefan1.
Herald added projects: clang, LLVM.

To bring D99599 <https://reviews.llvm.org/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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102196

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102196.344194.patch
Type: text/x-patch
Size: 25318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210510/a30be246/attachment-0001.bin>


More information about the cfe-commits mailing list