[Mlir-commits] [mlir] a0b4aaf - [mlir][NFC] Remove FuncOp overload of NestedPattern::match

River Riddle llvmlistbot at llvm.org
Mon Mar 7 11:25:50 PST 2022


Author: River Riddle
Date: 2022-03-07T11:25:23-08:00
New Revision: a0b4aaffac9d1206be67284ed6d17a9297225c06

URL: https://github.com/llvm/llvm-project/commit/a0b4aaffac9d1206be67284ed6d17a9297225c06
DIFF: https://github.com/llvm/llvm-project/commit/a0b4aaffac9d1206be67284ed6d17a9297225c06.diff

LOG: [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.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h b/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h
index 18e29567afb00..48453ef7f6cad 100644
--- a/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h
+++ b/mlir/include/mlir/Dialect/Affine/Analysis/NestedMatcher.h
@@ -103,11 +103,6 @@ class NestedPattern {
     freeNested();
   }
 
-  /// Returns all the top-level matches in `func`.
-  void match(FuncOp func, SmallVectorImpl<NestedMatch> *matches) {
-    func.walk([&](Operation *op) { matchOne(op, matches); });
-  }
-
   /// Returns all the top-level matches in `op`.
   void match(Operation *op, SmallVectorImpl<NestedMatch> *matches) {
     op->walk([&](Operation *child) { matchOne(child, matches); });


        


More information about the Mlir-commits mailing list