-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds missing header, removes Bazel unnecessary dependency #110932
Conversation
@llvm/pr-subscribers-mlir @llvm/pr-subscribers-mlir-affine Author: Christopher Di Bella (cjdb) ChangesFull diff: https://github.com/llvm/llvm-project/pull/110932.diff 2 Files Affected:
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 = [
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MLIR seems to be passing at trunk, at least on buildkite. What issue does this fix?
I would expect the cstdint to fix a CppHeaderCompile issue (being able to compile a standalone header), and adding the MaskableOpInterface would fix a layering check. Why is VectorOpsIncGen being removed though?
Otherwise, this kind of change seems fine. LGTM with a tiny bit of context added to the PR description.
mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h
Outdated
Show resolved
Hide resolved
Bazel isn't happy without this change. Specifically:
|
The missing header is necessary to keep building with Bazel happy, and the dependency was erroneously added.
No description provided.