[Mlir-commits] [mlir] [mlir] Improve mlir-query by adding matcher combinators (PR #141423)
Jacques Pienaar
llvmlistbot at llvm.org
Mon Jun 9 05:26:52 PDT 2025
================
@@ -129,6 +131,8 @@ LogicalResult MatchQuery::run(llvm::raw_ostream &os, QuerySession &qs) const {
finder.flattenMatchedOps(matches);
Operation *function =
extractFunction(flattenedMatches, rootOp->getContext(), functionName);
+ if (failed(verify(function)))
----------------
jpienaar wrote:
I think it is good idea in general. Small enough here. I'd recommend adding test where extract is valid too.
https://github.com/llvm/llvm-project/pull/141423
More information about the Mlir-commits
mailing list