[Mlir-commits] [llvm] [mlir] [mlir] Add PDL C & Python usage (PR #94714)

Maksim Levental llvmlistbot at llvm.org
Sun Jun 9 17:17:09 PDT 2024


================
@@ -0,0 +1,5 @@
+#  Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+#  See https://llvm.org/LICENSE.txt for license information.
+#  SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+from ._mlir_libs._mlir.rewrite import *
----------------
makslevental wrote:

I think this will work

```suggestion
from ._mlir_libs._mlir.rewrite import *
from .extras.meta import region_op

pattern = region_op(PatternOp)
rewrite = region_op(RewriteOp)
```

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


More information about the Mlir-commits mailing list