Skip to content

Commit b9d6b62

Browse files
authored
Fix [mlir] Fix bazel build after 205c532 round 2. (#130765)
1 parent 9f30815 commit b9d6b62

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,43 @@ cc_library(
604604
],
605605
)
606606

607+
td_library(
608+
name = "TestTransformOpsTdFiles",
609+
srcs = glob(["mlir/test/lib/Transforms/*.td"]),
610+
deps = [
611+
":TransformDialectTdFiles",
612+
"//mlir:OpBaseTdFiles",
613+
"//mlir:SideEffectInterfacesTdFiles",
614+
"//mlir:TransformDialectTdFiles",
615+
"//mlir:TransformInterfacesTdFiles",
616+
],
617+
)
618+
619+
gentbl_cc_library(
620+
name = "TestTransformsOpsIncGen",
621+
includes = ["lib/Dialect/Test"],
622+
strip_include_prefix = "lib",
623+
tbl_outs = [
624+
(
625+
["-x=cpp"],
626+
"lib/TestTransformsOps.h.inc",
627+
),
628+
],
629+
tblgen = "//mlir:mlir-pdll",
630+
td_file = "lib/Transforms/TestTransformsOps.pdll",
631+
deps = [
632+
":TestTransformOpsTdFiles",
633+
],
634+
)
635+
607636
cc_library(
608637
name = "TestTransforms",
609638
srcs = glob(["lib/Transforms/*.cpp"]),
610639
includes = ["lib/Dialect/Test"],
611640
deps = [
612641
":TestDialect",
613642
":TestDialectConversionPDLLPatternsIncGen",
643+
":TestTransformsOpsIncGen",
614644
"//llvm:Support",
615645
"//mlir:AffineAnalysis",
616646
"//mlir:AffineDialect",
@@ -631,6 +661,7 @@ cc_library(
631661
"//mlir:TransformUtils",
632662
"//mlir:Transforms",
633663
"//mlir:TransformDialect",
664+
"//mlir::TransformDialectInterfaces",
634665
],
635666
)
636667

0 commit comments

Comments
 (0)