[llvm] [mlir] Bazel fix for #206520 (PR #206609)

Jeremy Kun via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 15:54:47 PDT 2026


https://github.com/j2kun created https://github.com/llvm/llvm-project/pull/206609

I broke the bazel build in #206520 and pushed an incorrect fix in #206599 which this PR also reverts.

>From 94f7ddc492f97d823e4f3716298a51b2a106a0f2 Mon Sep 17 00:00:00 2001
From: Jeremy Kun <jkun at google.com>
Date: Mon, 29 Jun 2026 15:51:57 -0700
Subject: [PATCH 1/2] Revert "[mlir][bazel] fix TestAnalysis deps (#206599)"

This reverts commit cc69878e754617ad556af30e9ea5fa7005379a32.
---
 utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index c42fd1e249ba4..bcfc3ea9b8e65 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -108,10 +108,6 @@ cc_library(
         "//mlir:FuncDialect",
         "//mlir:FunctionInterfaces",
         "//mlir:IR",
-        "//mlir:InferIntDivisibilityOpInterface",
-        "//mlir:InferIntRangeInterface",
-        "//mlir:InferStridedMetadataInterface",
-        "//mlir:LoopLikeInterface",
         "//mlir:MemRefDialect",
         "//mlir:Pass",
         "//mlir:SideEffectInterfaces",

>From 7734a79343a66ecf9c0f8b37555b238d58e5a22d Mon Sep 17 00:00:00 2001
From: Jeremy Kun <jkun at google.com>
Date: Mon, 29 Jun 2026 15:52:36 -0700
Subject: [PATCH 2/2] [bazel] fix mlir-tblgen invocation broken by #206520

---
 utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 50e1e9b9c4294..12b8ee89ffb04 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -6429,7 +6429,10 @@ gentbl_cc_library(
     name = "NVVMPassIncGen",
     strip_include_prefix = "include",
     tbl_outs = {
-        "include/mlir/Dialect/NVVM/Transforms/Passes.h.inc": ["-gen-pass-decls -name NVVM"],
+        "include/mlir/Dialect/NVVM/Transforms/Passes.h.inc": [
+            "-gen-pass-decls",
+            "-name=NVVM",
+        ],
     },
     tblgen = ":mlir-tblgen",
     td_file = "include/mlir/Dialect/NVVM/Transforms/Passes.td",



More information about the llvm-commits mailing list