File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed
utils/bazel/llvm-project-overlay/mlir/python Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,15 @@ declare_mlir_dialect_extension_python_bindings(
164
164
DIALECT_NAME transform
165
165
EXTENSION_NAME loop_transform )
166
166
167
+ declare_mlir_dialect_extension_python_bindings (
168
+ ADD_TO_PARENT MLIRPythonSources.Dialects
169
+ ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /mlir"
170
+ TD_FILE dialects/MemRefTransformOps.td
171
+ SOURCES
172
+ dialects/transform/memref.py
173
+ DIALECT_NAME transform
174
+ EXTENSION_NAME memref_transform )
175
+
167
176
declare_mlir_dialect_extension_python_bindings (
168
177
ADD_TO_PARENT MLIRPythonSources.Dialects
169
178
ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /mlir"
Original file line number Diff line number Diff line change
1
+ //===-- MemRefTransformOps.td - Memref transform ops -------*- tablegen -*-===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //===----------------------------------------------------------------------===//
8
+
9
+ #ifndef PYTHON_BINDINGS_MEMREF_TRANSFORM_OPS
10
+ #define PYTHON_BINDINGS_MEMREF_TRANSFORM_OPS
11
+
12
+ include "mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.td"
13
+
14
+ #endif
Original file line number Diff line number Diff line change
1
+ # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
2
+ # See https://llvm.org/LICENSE.txt for license information.
3
+ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
+
5
+ from .._memref_transform_ops_gen import *
Original file line number Diff line number Diff line change @@ -841,6 +841,25 @@ gentbl_filegroup(
841
841
],
842
842
)
843
843
844
+ gentbl_filegroup (
845
+ name = "MemRefTransformOpsPyGen" ,
846
+ tbl_outs = [
847
+ (
848
+ [
849
+ "-gen-python-op-bindings" ,
850
+ "-bind-dialect=transform" ,
851
+ "-dialect-extension=memref_transform" ,
852
+ ],
853
+ "mlir/dialects/_memref_transform_ops_gen.py" ,
854
+ ),
855
+ ],
856
+ tblgen = "//mlir:mlir-tblgen" ,
857
+ td_file = "mlir/dialects/MemRefTransformOps.td" ,
858
+ deps = [
859
+ "//mlir:MemRefTransformOpsTdFiles" ,
860
+ ],
861
+ )
862
+
844
863
gentbl_filegroup (
845
864
name = "PDLTransformOpsPyGen" ,
846
865
tbl_outs = [
@@ -876,6 +895,7 @@ filegroup(
876
895
":BufferizationTransformOpsPyGen" ,
877
896
":GPUTransformOpsPyGen" ,
878
897
":LoopTransformOpsPyGen" ,
898
+ ":MemRefTransformOpsPyGen" ,
879
899
":PDLTransformOpsPyGen" ,
880
900
":StructuredTransformOpsPyGen" ,
881
901
":TransformOpsPyGen" ,
You can’t perform that action at this time.
0 commit comments