[llvm] [mlir][bufferization][NFC] Clean up Bazel build files (PR #77429)

Matthias Springer via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 01:15:43 PST 2024


https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/77429

`*OpsIncGen` should depend only on the respective `*OpsTdFiles`.

>From 0eaf56f8bc62d5b99976d98fa56706404bf903bd Mon Sep 17 00:00:00 2001
From: Matthias Springer <springerm at google.com>
Date: Tue, 9 Jan 2024 09:12:59 +0000
Subject: [PATCH] [mlir][bufferization][NFC] Clean up Bazel build files

`*OpsIncGen` should depend only on the respective `*OpsTdFiles`.
---
 utils/bazel/llvm-project-overlay/mlir/BUILD.bazel        | 6 +++---
 utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel | 2 --
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 6822a49ef0fca4..05cbf7816370a5 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -12846,10 +12846,13 @@ td_library(
     includes = ["include"],
     deps = [
         ":AllocationOpInterfaceTdFiles",
+        ":BufferizableOpInterfaceTdFiles",
         ":CopyOpInterfaceTdFiles",
+        ":DestinationStyleOpInterfaceTdFiles",
         ":InferTypeOpInterfaceTdFiles",
         ":OpBaseTdFiles",
         ":SideEffectInterfacesTdFiles",
+        ":SubsetOpInterfaceTdFiles",
     ],
 )
 
@@ -12976,10 +12979,7 @@ gentbl_cc_library(
     tblgen = ":mlir-tblgen",
     td_file = "include/mlir/Dialect/Bufferization/IR/BufferizationOps.td",
     deps = [
-        ":BufferizableOpInterfaceTdFiles",
         ":BufferizationOpsTdFiles",
-        ":DestinationStyleOpInterfaceTdFiles",
-        ":SubsetOpInterfaceTdFiles",
     ],
 )
 
diff --git a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
index 6f6f2b3798e856..f19c2336e6bcb4 100644
--- a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
@@ -418,8 +418,6 @@ gentbl_filegroup(
     td_file = "mlir/dialects/BufferizationOps.td",
     deps = [
         ":BufferizationOpsPyTdFiles",
-        "//mlir:DestinationStyleOpInterfaceTdFiles",
-        "//mlir:SubsetOpInterfaceTdFiles",
     ],
 )
 



More information about the llvm-commits mailing list