-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[bazel] Fix bazel build after 00eaff3e9c897c263a879416d0f151d7ca7eeaff. #135949
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@llvm/pr-subscribers-mlir-bufferization @llvm/pr-subscribers-mlir Author: Benjamin Chetioui (bchetioui) ChangesFull diff: https://github.com/llvm/llvm-project/pull/135949.diff 3 Files Affected:
diff --git a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h
index f6b296eccd748..4efefba7ecfd6 100644
--- a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h
+++ b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h
@@ -13,6 +13,7 @@
// Bufferization Type Interfaces
//===----------------------------------------------------------------------===//
+#include "mlir/IR/Types.h"
#include "mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h.inc"
#endif // MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZATIONTYPEINTERFACES_H_
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 10503fe1d123b..85049ff8339c1 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -12520,6 +12520,28 @@ gentbl_cc_library(
deps = [":BufferizationEnumsTdFiles"],
)
+td_library(
+ name = "BufferizationTypeInterfacesTdFiles",
+ srcs = [
+ "include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.td",
+ ],
+ includes = ["include"],
+ deps = [
+ ":OpBaseTdFiles",
+ ],
+)
+
+gentbl_cc_library(
+ name = "BufferizationTypeInterfacesIncGen",
+ tbl_outs = {
+ "include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h.inc": ["-gen-type-interface-decls"],
+ "include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.cpp.inc": ["-gen-type-interface-defs"],
+ },
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.td",
+ deps = [":BufferizationTypeInterfacesTdFiles"],
+)
+
td_library(
name = "BufferizationTransformOpsTdFiles",
srcs = [
@@ -12593,6 +12615,7 @@ cc_library(
"include/mlir/Dialect/Bufferization/IR/BufferDeallocationOpInterface.h",
"include/mlir/Dialect/Bufferization/IR/BufferViewFlowOpInterface.h",
"include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h",
+ "include/mlir/Dialect/Bufferization/IR/BufferizationTypeInterfaces.h",
],
includes = ["include"],
deps = [
@@ -12600,6 +12623,7 @@ cc_library(
":BufferViewFlowOpInterfaceIncGen",
":BufferizableOpInterfaceIncGen",
":BufferizationEnumsIncGen",
+ ":BufferizationTypeInterfacesIncGen",
":FunctionInterfaces",
":IR",
":Support",
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index 611fbecd215cd..59410286f22d8 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -110,6 +110,7 @@ td_library(
name = "TestOpTdFiles",
srcs = glob(["lib/Dialect/Test/*.td"]),
deps = [
+ "//mlir:BufferizationTypeInterfacesTdFiles",
"//mlir:BuiltinDialectTdFiles",
"//mlir:CallInterfacesTdFiles",
"//mlir:ControlFlowInterfacesTdFiles",
@@ -240,6 +241,7 @@ gentbl_cc_library(
test = True,
deps = [
":TestOpTdFiles",
+ "//mlir:BufferizationTypeInterfacesTdFiles",
"//mlir:BuiltinDialectTdFiles",
],
)
@@ -342,6 +344,7 @@ cc_library(
"//llvm:IRReader",
"//llvm:Support",
"//mlir:ArithDialect",
+ "//mlir:BufferizationInterfaces",
"//mlir:BytecodeOpInterface",
"//mlir:CallOpInterfaces",
"//mlir:ControlFlowInterfaces",
@@ -404,6 +407,7 @@ cc_library(
"//llvm:Support",
"//mlir:Analysis",
"//mlir:ArithDialect",
+ "//mlir:BufferizationInterfaces",
"//mlir:BytecodeOpInterface",
"//mlir:BytecodeReader",
"//mlir:BytecodeWriter",
@@ -986,8 +990,11 @@ cc_library(
srcs = glob(["lib/Dialect/Bufferization/*.cpp"]),
includes = ["lib/Dialect/Test"],
deps = [
+ ":TestDialect",
"//mlir:BufferizationDialect",
+ "//mlir:BufferizationInterfaces",
"//mlir:BufferizationTransforms",
+ "//mlir:FuncDialect",
"//mlir:IR",
"//mlir:Pass",
],
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
var-const
pushed a commit
to ldionne/llvm-project
that referenced
this pull request
Apr 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bazel
"Peripheral" support tier build system: utils/bazel
mlir:bufferization
Bufferization infrastructure
mlir
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.