File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
tools/polymer/lib/Transforms Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,11 @@ class ExtractScopStmtPass
511
511
OpBuilder b (m.getContext ());
512
512
513
513
SmallVector<mlir::FuncOp, 4 > funcs;
514
- m.walk ([&](mlir::FuncOp f) { funcs.push_back (f); });
514
+ m.walk ([&](mlir::FuncOp f) {
515
+ if (f->hasAttr (" scop.ignored" ))
516
+ return ;
517
+ funcs.push_back (f);
518
+ });
515
519
516
520
unsigned numCallees = 0 ;
517
521
for (mlir::FuncOp f : funcs) {
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ class PlutoTransformPass
156
156
llvm::DenseMap<mlir::FuncOp, mlir::FuncOp> funcMap;
157
157
158
158
m.walk ([&](mlir::FuncOp f) {
159
- if (!f->getAttr (" scop.stmt" ))
159
+ if (!f->getAttr (" scop.stmt" ) && !f-> hasAttr ( " scop.ignored " ) )
160
160
funcOps.push_back (f);
161
161
});
162
162
You can’t perform that action at this time.
0 commit comments