[llvm] [mlir] Fix bazel build after 95767a9903208e545badd920a1a16e5476ae09f9. (PR #130283)

Benjamin Chetioui via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 05:36:37 PST 2025


https://github.com/bchetioui created https://github.com/llvm/llvm-project/pull/130283

None

>From 4f7ea0bb000eba105aebfde19ea68d93c12cf7f1 Mon Sep 17 00:00:00 2001
From: Benjamin Chetioui <bchetioui at google.com>
Date: Fri, 7 Mar 2025 13:34:54 +0000
Subject: [PATCH] [mlir] Fix bazel build after
 95767a9903208e545badd920a1a16e5476ae09f9.

---
 .../bazel/llvm-project-overlay/mlir/BUILD.bazel  | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index f1192d069fa5f..839bdabebb02a 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -3554,11 +3554,11 @@ gentbl_cc_library(
         ),
         (
             ["-gen-op-decls"],
-            "include/mlir/Dialect/NVGPU/IR/NVGPU.h.inc",
+            "include/mlir/Dialect/NVGPU/IR/NVGPUOps.h.inc",
         ),
         (
             ["-gen-op-defs"],
-            "include/mlir/Dialect/NVGPU/IR/NVGPU.cpp.inc",
+            "include/mlir/Dialect/NVGPU/IR/NVGPUOps.cpp.inc",
         ),
         (
             ["-gen-op-doc"],
@@ -3566,11 +3566,11 @@ gentbl_cc_library(
         ),
         (
             ["-gen-typedef-decls"],
-            "include/mlir/Dialect/NVGPU/IR/NVGPUTypes.h.inc",
+            "include/mlir/Dialect/NVGPU/IR/NVGPUTypeDefs.h.inc",
         ),
         (
             ["-gen-typedef-defs"],
-            "include/mlir/Dialect/NVGPU/IR/NVGPUTypes.cpp.inc",
+            "include/mlir/Dialect/NVGPU/IR/NVGPUTypeDefs.cpp.inc",
         ),
         (
             ["-gen-enum-decls"],
@@ -3590,8 +3590,12 @@ gentbl_cc_library(
         ),
     ],
     tblgen = ":mlir-tblgen",
-    td_file = "include/mlir/Dialect/NVGPU/IR/NVGPU.td",
-    deps = [":NVGPUTdFiles"],
+    td_file = "include/mlir/Dialect/NVGPU/IR/NVGPUOps.td",
+    deps = [
+        ":NVGPUOpsTdFiles",
+        ":NVGPUTdFiles",
+        ":NVGPUTypesTdFiles",
+    ],
 )
 
 gentbl_cc_library(



More information about the llvm-commits mailing list