Skip to content

Commit a2011d3

Browse files
authored
[bazel][mlir][python] Port #157127: UB dialect filegroup (#157473)
Used downstream
1 parent 17a7114 commit a2011d3

File tree

1 file changed

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

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,31 @@ filegroup(
14281428
srcs = glob(["mlir/dialects/transform/interpreter/*.py"]),
14291429
)
14301430

1431+
##---------------------------------------------------------------------------##
1432+
# UB dialect.
1433+
##---------------------------------------------------------------------------##
1434+
1435+
gentbl_filegroup(
1436+
name = "UbOpsPyGen",
1437+
tbl_outs = {"mlir/dialects/_ub_ops_gen.py": [
1438+
"-gen-python-op-bindings",
1439+
"-bind-dialect=ub",
1440+
]},
1441+
tblgen = "//mlir:mlir-tblgen",
1442+
td_file = "mlir/dialects/UBOps.td",
1443+
deps = [
1444+
"//mlir:UBDialectTdFiles",
1445+
],
1446+
)
1447+
1448+
filegroup(
1449+
name = "UbPyFiles",
1450+
srcs = [
1451+
"mlir/dialects/ub.py",
1452+
":UbOpsPyGen",
1453+
],
1454+
)
1455+
14311456
##---------------------------------------------------------------------------##
14321457
# Vector dialect.
14331458
##---------------------------------------------------------------------------##

0 commit comments

Comments
 (0)