[llvm] [mlir] adds missing header, removes Bazel unnecessary dependency (PR #110932)

Christopher Di Bella via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 14:48:51 PDT 2024


https://github.com/cjdb updated https://github.com/llvm/llvm-project/pull/110932

>From e2f8cbf1e22129e6ff868caa24eff1781d67bb41 Mon Sep 17 00:00:00 2001
From: Christopher Di Bella <cjdb at google.com>
Date: Wed, 2 Oct 2024 21:43:55 +0000
Subject: [PATCH] adds missing header, removes Bazel unnecessary dependency

---
 .../Affine/IR/ValueBoundsOpInterfaceImpl.h    |  1 +
 .../llvm-project-overlay/mlir/BUILD.bazel     | 21 ++++++++++++++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h b/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h
index 451c466fa0c950..51831cb17992ac 100644
--- a/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h
+++ b/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h
@@ -9,6 +9,7 @@
 #ifndef MLIR_DIALECT_AFFINE_IR_VALUEBOUNDSOPINTERFACEIMPL_H
 #define MLIR_DIALECT_AFFINE_IR_VALUEBOUNDSOPINTERFACEIMPL_H
 
+#include <cstdint>
 #include "mlir/Support/LLVM.h"
 
 namespace mlir {
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 8340e25352a355..596cecdf2c2ac2 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -3749,10 +3749,10 @@ cc_library(
         ":BytecodeOpInterface",
         ":DialectUtils",
         ":IR",
+        ":MaskableOpInterface",
         ":ShapedOpInterfaces",
         ":SideEffectInterfaces",
         ":VectorDialect",
-        ":VectorOpsIncGen",
         ":ViewLikeInterface",
         ":XeGPUEnumsIncGen",
         ":XeGPUIncGen",
@@ -11719,6 +11719,25 @@ gentbl_cc_library(
     ],
 )
 
+cc_library(
+    name = "VectorOps",
+    hdrs = [
+        "include/mlir/Dialect/Vector/IR/VectorAttributes.h.inc",
+        "include/mlir/Dialect/Vector/IR/VectorDialect.h.inc",
+        "include/mlir/Dialect/Vector/IR/VectorEnums.h.inc",
+        "include/mlir/Dialect/Vector/IR/VectorOps.h",
+    ],
+    includes = ["include"],
+    deps = [
+        ":ArithDialect",
+        ":BytecodeOpInterface",
+        ":MaskableOpInterface",
+        ":VectorAttributesIncGen",
+        ":VectorDialectIncGen",
+        ":VectorOpsIncGen",
+    ],
+)
+
 gentbl_cc_library(
     name = "VectorAttributesIncGen",
     tbl_outs = [



More information about the llvm-commits mailing list