[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 Apr 27 06:59:52 PDT 2023
dbakunevich created this revision.
dbakunevich added a reviewer: apilipenko.
Herald added a subscriber: hiraditya.
Herald added a project: All.
dbakunevich requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
As part of this patch, 2 options have been added:
print-pass-numbers and print-after-pass-number.
1) The print-pass-numbers option allows to print the pass names and their ordinals.
The output of the option looks like this:
Running pass ORDINAL PASS_NAME
2) The print-after-pass-number option allows to print IR after pass with the number
which reported by print-passes-names.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149345
Files:
llvm/include/llvm/Passes/StandardInstrumentations.h
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/print-after-pass-number.ll
llvm/test/Other/print-pass-number.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149345.517545.patch
Type: text/x-patch
Size: 8224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230427/69a559ba/attachment.bin>
More information about the llvm-commits
mailing list