File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ mlirFreezeRewritePattern(MlirRewritePatternSet op);
301301MLIR_CAPI_EXPORTED void
302302mlirFrozenRewritePatternSetDestroy (MlirFrozenRewritePatternSet op );
303303
304- MLIR_CAPI_EXPORTED MlirLogicalResult mlirApplyPatternsAndFoldGreedilyForOp (
304+ MLIR_CAPI_EXPORTED MlirLogicalResult mlirApplyPatternsAndFoldGreedilyWithOp (
305305 MlirOperation op , MlirFrozenRewritePatternSet patterns ,
306306 MlirGreedyRewriteDriverConfig );
307307
Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ void mlir::python::populateRewriteSubmodule(nb::module_ &m) {
110110 " Applys the given patterns to the given module greedily while folding "
111111 " results." )
112112 .def (
113- " apply_patterns_and_fold_greedily_for_op " ,
113+ " apply_patterns_and_fold_greedily_with_op " ,
114114 [](MlirOperation op, MlirFrozenRewritePatternSet set) {
115- auto status = mlirApplyPatternsAndFoldGreedilyForOp (op, set, {});
115+ auto status = mlirApplyPatternsAndFoldGreedilyWithOp (op, set, {});
116116 if (mlirLogicalResultIsFailure (status))
117117 // FIXME: Not sure this is the right error to throw here.
118118 throw nb::value_error (" pattern application failed to converge" );
Original file line number Diff line number Diff line change @@ -295,9 +295,9 @@ mlirApplyPatternsAndFoldGreedily(MlirModule op,
295295}
296296
297297MlirLogicalResult
298- mlirApplyPatternsAndFoldGreedilyForOp (MlirOperation op,
299- MlirFrozenRewritePatternSet patterns,
300- MlirGreedyRewriteDriverConfig) {
298+ mlirApplyPatternsAndFoldGreedilyWithOp (MlirOperation op,
299+ MlirFrozenRewritePatternSet patterns,
300+ MlirGreedyRewriteDriverConfig) {
301301 return wrap (mlir::applyPatternsGreedily (unwrap (op), *unwrap (patterns)));
302302}
303303
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def __init__(self):
5858
5959 def run (self , m ):
6060 frozen = PDLModule (pdl_module ).freeze ()
61- apply_patterns_and_fold_greedily_for_op (m , frozen )
61+ apply_patterns_and_fold_greedily_with_op (m , frozen )
6262
6363 module = ModuleOp .parse (
6464 r"""
You can’t perform that action at this time.
0 commit comments