File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,17 @@ declare_mlir_python_sources(MLIRPythonCAPI.HeaderSources
44
44
SOURCES_GLOB "mlir-c/*.h"
45
45
)
46
46
47
+ # The builtin dialect is special (e.g., type casters and such expect it to be loaded
48
+ # in order to work) so we add it to Core instead of Dialects so that anyone depending on
49
+ # Core will get it automatically.
50
+ declare_mlir_dialect_python_bindings (
51
+ ADD_TO_PARENT MLIRPythonSources.Core
52
+ ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /mlir"
53
+ TD_FILE dialects/BuiltinOps.td
54
+ SOURCES
55
+ dialects/builtin.py
56
+ DIALECT_NAME builtin )
57
+
47
58
################################################################################
48
59
# Dialect bindings
49
60
################################################################################
@@ -84,14 +95,6 @@ declare_mlir_dialect_python_bindings(
84
95
"../../include/mlir/Dialect/Bufferization/IR/BufferizationEnums.td"
85
96
)
86
97
87
- declare_mlir_dialect_python_bindings (
88
- ADD_TO_PARENT MLIRPythonSources.Dialects
89
- ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /mlir"
90
- TD_FILE dialects/BuiltinOps.td
91
- SOURCES
92
- dialects/builtin.py
93
- DIALECT_NAME builtin )
94
-
95
98
declare_mlir_dialect_python_bindings (
96
99
ADD_TO_PARENT MLIRPythonSources.Dialects
97
100
ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /mlir"
You can’t perform that action at this time.
0 commit comments