Skip to content

Commit 6f19a7b

Browse files
committed
[mlir][bazel] add bazel rule for DLTITransformOps
1 parent 23209d1 commit 6f19a7b

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4826,6 +4826,7 @@ cc_library(
48264826
":BuiltinToLLVMIRTranslation",
48274827
":ComplexToLLVM",
48284828
":ControlFlowToLLVM",
4829+
":DLTITransformOps",
48294830
":FuncExtensions",
48304831
":FuncToLLVM",
48314832
":FuncTransformOps",
@@ -13988,6 +13989,53 @@ cc_library(
1398813989
],
1398913990
)
1399013991

13992+
td_library(
13993+
name = "DLTITransformOpsTdFiles",
13994+
srcs = [
13995+
"include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.td",
13996+
],
13997+
includes = ["include"],
13998+
deps = [
13999+
":DLTIDialectTdFiles",
14000+
":TransformDialectTdFiles",
14001+
],
14002+
)
14003+
14004+
gentbl_cc_library(
14005+
name = "DLTITransformOpsIncGen",
14006+
tbl_outs = [
14007+
(
14008+
["-gen-op-decls"],
14009+
"include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.h.inc",
14010+
),
14011+
(
14012+
["-gen-op-defs"],
14013+
"include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.cpp.inc",
14014+
),
14015+
],
14016+
tblgen = ":mlir-tblgen",
14017+
td_file = "include/mlir/Dialect/DLTI/TransformOps/DLTITransformOps.td",
14018+
deps = [
14019+
":DLTITransformOpsTdFiles",
14020+
],
14021+
)
14022+
14023+
cc_library(
14024+
name = "DLTITransformOps",
14025+
srcs = glob(["lib/Dialect/DLTI/TransformOps/*.cpp"]),
14026+
hdrs = glob(["include/mlir/Dialect/DLTI/TransformOps/*.h"]),
14027+
includes = ["include"],
14028+
deps = [
14029+
":DLTIDialect",
14030+
":DLTITransformOpsIncGen",
14031+
":DataLayoutInterfaces",
14032+
":IR",
14033+
":TransformDialect",
14034+
":TransformDialectInterfaces",
14035+
":TransformDialectUtils",
14036+
],
14037+
)
14038+
1399114039
gentbl_cc_library(
1399214040
name = "ReducerIncGen",
1399314041
tbl_outs = [

0 commit comments

Comments
 (0)