[PATCH] D130434: [MachineFunctionPass] Support -print-changed and -print-changed=quiet
Jamie Schmeiser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 06:46:03 PDT 2022
jamieschmeiser accepted this revision.
jamieschmeiser added a comment.
Since you have the before and after versions, I expect you could get -print-changed=diff and cdiff without too much difficulty by calling the diff routine that the opt print-changed options use, if you want to expand this functionality.
================
Comment at: llvm/lib/CodeGen/MachineFunctionPass.cpp:78
+ bool ShouldPrintChanged = PrintChanged != ChangePrinter::None &&
+ isFunctionInPrintList(MF.getName());
+ if (ShouldPrintChanged) {
----------------
You may want to also consider allowing filtering with -filter-passes here. Perhaps a TODO?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130434/new/
https://reviews.llvm.org/D130434
More information about the llvm-commits
mailing list