Skip to content

Commit 9609655

Browse files
authored
[bazel] Add targets for transform.tune python extension (#148656)
1 parent d5ac1b5 commit 9609655

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
@@ -700,6 +700,32 @@ filegroup(
700700
],
701701
)
702702

703+
##---------------------------------------------------------------------------##
704+
# Tune dialect.
705+
##---------------------------------------------------------------------------##
706+
707+
gentbl_filegroup(
708+
name = "TuneTransformOpsPyGen",
709+
tbl_outs = {"mlir/dialects/_transform_tune_extension_ops_gen.py": [
710+
"-gen-python-op-bindings",
711+
"-bind-dialect=transform",
712+
"-dialect-extension=transform_tune_extension",
713+
]},
714+
tblgen = "//third_party/llvm/llvm-project/mlir:mlir-tblgen",
715+
td_file = "mlir/dialects/TransformTuneExtensionOps.td",
716+
deps = [
717+
"//third_party/llvm/llvm-project/mlir:TransformTuneExtensionTdFiles",
718+
],
719+
)
720+
721+
filegroup(
722+
name = "TunePyFiles",
723+
srcs = [
724+
"mlir/dialects/transform/tune.py",
725+
":TuneTransformOpsPyGen",
726+
],
727+
)
728+
703729
##---------------------------------------------------------------------------##
704730
# PythonTest dialect.
705731
##---------------------------------------------------------------------------##

0 commit comments

Comments
 (0)