[mlir][test] Drop op type from test passes in TestPatterns.cpp
authorMatthias Springer <me@m-sp.org>
Thu, 15 Jun 2023 09:30:03 +0000 (11:30 +0200)
committerMatthias Springer <me@m-sp.org>
Thu, 15 Jun 2023 10:23:58 +0000 (12:23 +0200)
commitc3a8ac79b838eca5d01d4ac0f43ecadbd3bced8b
treea494326d38461098aa9521b7a912ae9783695a2c
parent462bda1d562acc5a907eafe0afeb79556101c65d
[mlir][test] Drop op type from test passes in TestPatterns.cpp

When possible, use `OperationPass<>` instead of `OperationPass<ModuleOp>` or `OperationPass<FuncOp>`.

Differential Revision: https://reviews.llvm.org/D153005
mlir/test/lib/Dialect/Test/TestPatterns.cpp