[Mlir-commits] [mlir] [mlir][python] Add bindings for OpenACC dialect (PR #163620)
Maksim Levental
llvmlistbot at llvm.org
Wed Oct 15 16:38:00 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)
----------------
makslevental wrote:
I think you probably wanna do `GEN_ENUM_BINDINGS` too (and then also add `from ._acc_enum_gen import *` in `mlir/python/mlir/dialects/openacc.py`
https://github.com/llvm/llvm-project/pull/163620
More information about the Mlir-commits
mailing list