[Mlir-commits] [mlir] [mlir][python] Add bindings for OpenACC dialect (PR #163620)

Asher Mancinelli llvmlistbot at llvm.org
Wed Oct 15 16:48:50 PDT 2025


================
@@ -134,6 +134,15 @@ declare_mlir_dialect_python_bindings(
     dialects/func.py
   DIALECT_NAME func)
 
+declare_mlir_dialect_python_bindings(
+  ADD_TO_PARENT MLIRPythonSources.Dialects
+  ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mlir"
+  TD_FILE dialects/OpenACCOps.td
+  SOURCES
+    dialects/openacc.py
+  DIALECT_NAME acc
+  DEPENDS acc_common_td)
----------------
ashermancinelli wrote:

I believe the custom assembly formats will get in the way of this ☹️:
```
[1/4] Building dialects/_acc_enum_gen.py...
FAILED: tools/mlir/python/dialects/_acc_enum_gen.py /home/amancinelli/llvm-project/build/tools/mlir/python/dialects/_acc_enum_gen.py 
unsupported assembly format for python enum bindings generation
```

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


More information about the Mlir-commits mailing list