[llvm] More BUILD.bazel fixes for commit 205c532. (PR #130784)

Bart Chrzaszcz via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 11 08:36:05 PDT 2025


https://github.com/bartchr808 updated https://github.com/llvm/llvm-project/pull/130784

>From 41e93d3d4ce07226544656053926374760a61d4a Mon Sep 17 00:00:00 2001
From: Bart Chrzaszcz <bartchr at google.com>
Date: Tue, 11 Mar 2025 15:08:06 +0000
Subject: [PATCH] More fixes for 205c532.

---
 .../llvm-project-overlay/mlir/test/BUILD.bazel     | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index 8f0c789e40c45..61a355458d96e 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -606,7 +606,7 @@ cc_library(
 
 td_library(
     name = "TestTransformOpsTdFiles",
-    srcs = glob(["mlir/test/lib/Transforms/*.td"]),
+    srcs = glob(["lib/Transforms/*.td"]),
     deps = [
         ":TransformDialectTdFiles",
         "//mlir:OpBaseTdFiles",
@@ -622,12 +622,16 @@ gentbl_cc_library(
     strip_include_prefix = "lib",
     tbl_outs = [
         (
-            ["-x=cpp"],
+            ["-gen-op-decls"],
             "lib/TestTransformsOps.h.inc",
         ),
+        (
+            ["-gen-op-defs"],
+            "lib/TestTransformsOps.cpp.inc",
+        ),
     ],
-    tblgen = "//mlir:mlir-pdll",
-    td_file = "lib/Transforms/TestTransformsOps.pdll",
+    tblgen = "//mlir:mlir-tblgen",
+    td_file = "lib/Transforms/TestTransformsOps.td",
     deps = [
         ":TestTransformOpsTdFiles",
     ],
@@ -661,7 +665,7 @@ cc_library(
         "//mlir:TransformUtils",
         "//mlir:Transforms",
         "//mlir:TransformDialect",
-        "//mlir::TransformDialectInterfaces",
+        "//mlir:TransformDialectInterfaces",
     ],
 )
 



More information about the llvm-commits mailing list