[PATCH] D114310: Added check for "-filter-print-funcs" option to the region IR dumps.
Konstantin Pyzhov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 30 09:32:02 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa356dae74c87: [RegionPass] Added check for -filter-print-funcs option to the region IR dumps. (authored by kpyzhov).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114310/new/
https://reviews.llvm.org/D114310
Files:
llvm/lib/Analysis/RegionPass.cpp
Index: llvm/lib/Analysis/RegionPass.cpp
===================================================================
--- llvm/lib/Analysis/RegionPass.cpp
+++ llvm/lib/Analysis/RegionPass.cpp
@@ -15,6 +15,7 @@
#include "llvm/Analysis/RegionPass.h"
#include "llvm/IR/OptBisect.h"
#include "llvm/IR/PassTimingInfo.h"
+#include "llvm/IR/PrintPasses.h"
#include "llvm/IR/StructuralHash.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Timer.h"
@@ -187,6 +188,8 @@
}
bool runOnRegion(Region *R, RGPassManager &RGM) override {
+ if (!isFunctionInPrintList(R->getEntry()->getParent()->getName()))
+ return false;
Out << Banner;
for (const auto *BB : R->blocks()) {
if (BB)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114310.390744.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211130/1239be5e/attachment.bin>
More information about the llvm-commits
mailing list