[mlir][NFC] Remove FuncOp overload of NestedPattern::match
authorRiver Riddle <riddleriver@gmail.com>
Sat, 5 Mar 2022 03:45:00 +0000 (19:45 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 7 Mar 2022 19:25:23 +0000 (11:25 -0800)
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

index 18e2956..48453ef 100644 (file)
@@ -103,11 +103,6 @@ public:
     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); });