[Mlir-commits] [mlir] [MLIR][Python] Add bindings for PDL native rewrite function registering (PR #159926)

Maksim Levental llvmlistbot at llvm.org
Sat Sep 20 10:52:10 PDT 2025


================
@@ -36,6 +41,43 @@ class PyPDLPatternModule {
   }
   MlirPDLPatternModule get() { return module; }
 
+  static nb::object fromPDLValue(MlirPDLValue value) {
----------------
makslevental wrote:

this doesn't need to be inside of `PyPDLPatternModule` (generally I prefer free functions instead of methods anyway and especially here it's even a `static`).

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


More information about the Mlir-commits mailing list