[llvm] Fix [mlir] Fix bazel build after 205c532 round 2. (PR #130765)
Bart Chrzaszcz via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 11 05:35:32 PDT 2025
https://github.com/bartchr808 created https://github.com/llvm/llvm-project/pull/130765
None
>From 5b9e3dd311b49c1172d9f63799d8172bb4a90eab Mon Sep 17 00:00:00 2001
From: Bart Chrzaszcz <bartchr at google.com>
Date: Tue, 11 Mar 2025 12:34:36 +0000
Subject: [PATCH] Fix [mlir] Fix bazel build after 205c532 round 2.
---
.../mlir/test/BUILD.bazel | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index 2735f07e9e597..8f0c789e40c45 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -604,6 +604,35 @@ cc_library(
],
)
+td_library(
+ name = "TestTransformOpsTdFiles",
+ srcs = glob(["mlir/test/lib/Transforms/*.td"]),
+ deps = [
+ ":TransformDialectTdFiles",
+ "//mlir:OpBaseTdFiles",
+ "//mlir:SideEffectInterfacesTdFiles",
+ "//mlir:TransformDialectTdFiles",
+ "//mlir:TransformInterfacesTdFiles",
+ ],
+)
+
+gentbl_cc_library(
+ name = "TestTransformsOpsIncGen",
+ includes = ["lib/Dialect/Test"],
+ strip_include_prefix = "lib",
+ tbl_outs = [
+ (
+ ["-x=cpp"],
+ "lib/TestTransformsOps.h.inc",
+ ),
+ ],
+ tblgen = "//mlir:mlir-pdll",
+ td_file = "lib/Transforms/TestTransformsOps.pdll",
+ deps = [
+ ":TestTransformOpsTdFiles",
+ ],
+)
+
cc_library(
name = "TestTransforms",
srcs = glob(["lib/Transforms/*.cpp"]),
@@ -611,6 +640,7 @@ cc_library(
deps = [
":TestDialect",
":TestDialectConversionPDLLPatternsIncGen",
+ ":TestTransformsOpsIncGen",
"//llvm:Support",
"//mlir:AffineAnalysis",
"//mlir:AffineDialect",
@@ -631,6 +661,7 @@ cc_library(
"//mlir:TransformUtils",
"//mlir:Transforms",
"//mlir:TransformDialect",
+ "//mlir::TransformDialectInterfaces",
],
)
More information about the llvm-commits
mailing list