[Mlir-commits] [mlir] [mlir][python] Add bindings for OpenACC dialect (PR #163620)
Maksim Levental
llvmlistbot at llvm.org
Wed Oct 15 17:11:45 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:
The most blessed way is to add bindings like I linked in the order PR: https://github.com/llvm/llvm-project/blob/8d2d18c0092ccfb04486ca5181f73e39a36b5203/mlir/lib/Bindings/Python/DialectGPU.cpp#L47
It's fairly tedious though (I have plans to improve but they're a ways off).
https://github.com/llvm/llvm-project/pull/163620
More information about the Mlir-commits
mailing list