Skip to content

Commit 1e80377

Browse files
authored
[mlir][SMT] update Bazel configuration to match 697aa99 (llvm#136616)
Update Bazel configuration to match 697aa99.
1 parent aa5cdc0 commit 1e80377

File tree

1 file changed

+47
-0
lines changed
  • utils/bazel/llvm-project-overlay/mlir/python

1 file changed

+47
-0
lines changed

utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,53 @@ filegroup(
11121112
],
11131113
)
11141114

1115+
##---------------------------------------------------------------------------##
1116+
# SMT dialect.
1117+
##---------------------------------------------------------------------------##
1118+
1119+
td_library(
1120+
name = "SMTOpsPyTdFiles",
1121+
srcs = [],
1122+
includes = ["../include"],
1123+
deps = [
1124+
"//mlir:SMTTdFiles",
1125+
"//mlir:OpBaseTdFiles",
1126+
],
1127+
)
1128+
1129+
gentbl_filegroup(
1130+
name = "SMTOpsPyGen",
1131+
tbl_outs = [
1132+
(
1133+
[
1134+
"-gen-python-enum-bindings",
1135+
"-bind-dialect=smt",
1136+
],
1137+
"mlir/dialects/_smt_enum_gen.py",
1138+
),
1139+
(
1140+
[
1141+
"-gen-python-op-bindings",
1142+
"-bind-dialect=smt",
1143+
],
1144+
"mlir/dialects/_smt_ops_gen.py",
1145+
),
1146+
],
1147+
tblgen = "//mlir:mlir-tblgen",
1148+
td_file = "mlir/dialects/SMTOps.td",
1149+
deps = [
1150+
":SMTOpsPyTdFiles",
1151+
],
1152+
)
1153+
1154+
filegroup(
1155+
name = "SMTOpsPyFiles",
1156+
srcs = [
1157+
"mlir/dialects/smt.py",
1158+
":SMTOpsPyGen",
1159+
],
1160+
)
1161+
11151162
##---------------------------------------------------------------------------##
11161163
# SparseTensor dialect.
11171164
##---------------------------------------------------------------------------##

0 commit comments

Comments
 (0)