From a0b4aaffac9d1206be67284ed6d17a9297225c06 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Fri, 4 Mar 2022 19:45:00 -0800 Subject: [PATCH] [mlir][NFC] Remove FuncOp overload of NestedPattern::match This method is redundant with the Operation* overload, and is an artifact of when FuncOp wasn't an operation. --- mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h b/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h index 18e2956..48453ef 100644 --- a/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h +++ b/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h @@ -103,11 +103,6 @@ public: freeNested(); } - /// Returns all the top-level matches in `func`. - void match(FuncOp func, SmallVectorImpl *matches) { - func.walk([&](Operation *op) { matchOne(op, matches); }); - } - /// Returns all the top-level matches in `op`. void match(Operation *op, SmallVectorImpl *matches) { op->walk([&](Operation *child) { matchOne(child, matches); }); -- 2.7.4