[PATCH] D149345: [Utils] Added the ability to print the pass number and IR after it is triggered

Dmitry Bakunevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 05:01:42 PDT 2023


dbakunevich marked 2 inline comments as done.
dbakunevich added inline comments.


================
Comment at: llvm/lib/Passes/StandardInstrumentations.cpp:109
 
+static cl::opt<bool> PrintPassNumbers(
+    "print-pass-numbers", cl::init(false), cl::Hidden,
----------------
aeubanks wrote:
> so that we don't have an explosion of flag combinations, can we make it so this flag only takes effect when the other `-print` flags are on? i.e. this doesn't turn on printing on its own, rather it controls what gets printed if we are printing. this does require also passing whatever other flag (e.g. `-print-after-all` but I think that's fine. this should simplify a lot of the conditionals
I don't agree with you. As part of a particular task, it may be necessary to display only a list of passes with them ordinals without IR.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149345/new/

https://reviews.llvm.org/D149345



More information about the llvm-commits mailing list