[Mlir-commits] [mlir] [MLIR][Python] Support Python-defined passes in MLIR (PR #156000)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Aug 29 09:25:09 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);
----------------
PragmaTwice wrote:

Not sure which name is suitable.. So the current name is just a placeholder. And modifying `mlirApplyPatternsAndFoldGreedily` seems a breaking change.

https://github.com/llvm/llvm-project/pull/156000


More information about the Mlir-commits mailing list