[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:25:38 PST 2021
kpyzhov updated this revision to Diff 390742.
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.390742.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211130/01d008d5/attachment.bin>
More information about the llvm-commits
mailing list