Skip to content

Commit 8ed064b

Browse files
authored
[bazel] Add targets for transform.debug python extension (#146022)
For #145550 / c08502d
1 parent 207925e commit 8ed064b

File tree

1 file changed

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

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,32 @@ filegroup(
674674
],
675675
)
676676

677+
##---------------------------------------------------------------------------##
678+
# Debug dialect.
679+
##---------------------------------------------------------------------------##
680+
681+
gentbl_filegroup(
682+
name = "DebugTransformOpsPyGen",
683+
tbl_outs = {"mlir/dialects/_transform_debug_extension_ops_gen.py": [
684+
"-gen-python-op-bindings",
685+
"-bind-dialect=transform",
686+
"-dialect-extension=transform_debug_extension",
687+
]},
688+
tblgen = "//mlir:mlir-tblgen",
689+
td_file = "mlir/dialects/TransformDebugExtensionOps.td",
690+
deps = [
691+
"//mlir:TransformDebugExtensionTdFiles",
692+
],
693+
)
694+
695+
filegroup(
696+
name = "DebugPyFiles",
697+
srcs = [
698+
"mlir/dialects/transform/debug.py",
699+
":DebugTransformOpsPyGen",
700+
],
701+
)
702+
677703
##---------------------------------------------------------------------------##
678704
# PythonTest dialect.
679705
##---------------------------------------------------------------------------##

0 commit comments

Comments
 (0)