[Mlir-commits] [mlir] [MLIR][Python] Support Python-defined passes in MLIR (PR #156000)
Jacques Pienaar
llvmlistbot at llvm.org
Mon Sep 1 04:53:00 PDT 2025
================
@@ -301,6 +301,10 @@ mlirFreezeRewritePattern(MlirRewritePatternSet op);
MLIR_CAPI_EXPORTED void
mlirFrozenRewritePatternSetDestroy(MlirFrozenRewritePatternSet op);
+MLIR_CAPI_EXPORTED MlirLogicalResult mlirApplyPatternsAndFoldGreedilyForOp(
+ MlirOperation op, MlirFrozenRewritePatternSet patterns,
+ MlirGreedyRewriteDriverConfig);
----------------
jpienaar wrote:
It is a breaking change, but not sure how widely and also C API is really best effort stable (meaning, we _try_ not to break it). I probably should have included a Module suffix on the original, and then this could have gone without. How many usages in the wild can you find of this call?
(Nit: ForOp suffix makes me think it's related to ForOp).
https://github.com/llvm/llvm-project/pull/156000
More information about the Mlir-commits
mailing list