diff options
Diffstat (limited to 'mlir/python')
-rw-r--r-- | mlir/python/CMakeLists.txt | 9 | ||||
-rw-r--r-- | mlir/python/mlir/dialects/ShardOps.td | 14 | ||||
-rw-r--r-- | mlir/python/mlir/dialects/shard.py | 6 |
3 files changed, 29 insertions, 0 deletions
diff --git a/mlir/python/CMakeLists.txt b/mlir/python/CMakeLists.txt index 84ff08a..e79b51a 100644 --- a/mlir/python/CMakeLists.txt +++ b/mlir/python/CMakeLists.txt @@ -349,6 +349,15 @@ declare_mlir_dialect_python_bindings( declare_mlir_dialect_python_bindings( ADD_TO_PARENT MLIRPythonSources.Dialects ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mlir" + TD_FILE dialects/ShardOps.td + SOURCES + dialects/shard.py + DIALECT_NAME shard + GEN_ENUM_BINDINGS) + +declare_mlir_dialect_python_bindings( + ADD_TO_PARENT MLIRPythonSources.Dialects + ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mlir" TD_FILE dialects/MLProgramOps.td SOURCES dialects/ml_program.py diff --git a/mlir/python/mlir/dialects/ShardOps.td b/mlir/python/mlir/dialects/ShardOps.td new file mode 100644 index 0000000..f852766 --- /dev/null +++ b/mlir/python/mlir/dialects/ShardOps.td @@ -0,0 +1,14 @@ +//===-- ShardOps.td - Entry point for ShardOps bindings ---------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +#ifndef PYTHON_BINDINGS_SHARD_OPS +#define PYTHON_BINDINGS_SHARD_OPS + +include "mlir/Dialect/Shard/IR/ShardOps.td" + +#endif diff --git a/mlir/python/mlir/dialects/shard.py b/mlir/python/mlir/dialects/shard.py new file mode 100644 index 0000000..8d69f17 --- /dev/null +++ b/mlir/python/mlir/dialects/shard.py @@ -0,0 +1,6 @@ +# 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 ._shard_ops_gen import * +from ._shard_enum_gen import * |