[llvm] [Bazel] Fixes 52d922a (PR #222005)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 06:53:17 PDT 2026
https://github.com/forking-google-bazel-bot[bot] created https://github.com/llvm/llvm-project/pull/222005
This fixes 52d922aa153b1232813470e014635419ce006023 (#221811).
Buildkite error link: https://buildkite.com/llvm-project/upstream-bazel/builds?commit=52d922aa153b1232813470e014635419ce006023
>From 7fa3536a04be70acacdd52733a20a8a4098d79ab Mon Sep 17 00:00:00 2001
From: Google Bazel Bot <google-bazel-bot at google.com>
Date: Tue, 8 Sep 2026 13:53:04 +0000
Subject: [PATCH] Fix Bazel build for 52d922a
Buildkite error link: https://buildkite.com/llvm-project/upstream-bazel/builds?commit=52d922aa153b1232813470e014635419ce006023
---
.../llvm-project-overlay/mlir/BUILD.bazel | 47 +++++++++++++++----
1 file changed, 37 insertions(+), 10 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 049287293f648..a6c600f76de18 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -7195,11 +7195,26 @@ cc_library(
gentbl_cc_library(
name = "SPIRVOpsIncGen",
tbl_outs = {
- "include/mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc": ["-gen-op-decls"],
- "include/mlir/Dialect/SPIRV/IR/SPIRVOps.cpp.inc": ["-gen-op-defs"],
- "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.h.inc": ["-gen-dialect-decls"],
- "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.cpp.inc": ["-gen-dialect-defs"],
- "g3doc/Dialects/SPIRV/SPIRVOps.md": ["-gen-op-doc"],
+ "include/mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc": [
+ "-gen-op-decls",
+ "-op-shard-count=8",
+ ],
+ "include/mlir/Dialect/SPIRV/IR/SPIRVOps.cpp.inc": [
+ "-gen-op-defs",
+ "-op-shard-count=8",
+ ],
+ "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.h.inc": [
+ "-gen-dialect-decls",
+ "-dialect=spirv",
+ ],
+ "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.cpp.inc": [
+ "-gen-dialect-defs",
+ "-dialect=spirv",
+ ],
+ "g3doc/Dialects/SPIRV/SPIRVOps.md": [
+ "-gen-op-doc",
+ "-dialect=spirv",
+ ],
"include/mlir/Dialect/SPIRV/IR/SPIRVEnums.h.inc": ["-gen-enum-decls"],
"include/mlir/Dialect/SPIRV/IR/SPIRVEnums.cpp.inc": ["-gen-enum-defs"],
"include/mlir/Dialect/SPIRV/IR/SPIRVEnumAvailability.h.inc": ["-gen-spirv-enum-avail-decls"],
@@ -7261,14 +7276,26 @@ gentbl_cc_library(
cc_library(
name = "SPIRVDialect",
- srcs = glob([
- "lib/Dialect/SPIRV/IR/*.cpp",
- "lib/Dialect/SPIRV/IR/*.h",
- ]),
+ srcs = glob(
+ [
+ "lib/Dialect/SPIRV/IR/*.cpp",
+ "lib/Dialect/SPIRV/IR/*.h",
+ ],
+ exclude = [
+ "lib/Dialect/SPIRV/IR/SPIRVOpDefinitions.cpp",
+ ],
+ ) + gentbl_sharded_op_defs(
+ name = "SPIRVOps_sharded_defs",
+ shard_count = 8,
+ source_file = "lib/Dialect/SPIRV/IR/SPIRVOpDefinitions.cpp",
+ ),
hdrs = glob([
"include/mlir/Dialect/SPIRV/IR/*.h",
]),
- includes = ["include"],
+ includes = [
+ "include",
+ "lib/Dialect/SPIRV/IR",
+ ],
deps = [
":AlignmentAttrInterface",
":BytecodeOpInterface",
More information about the llvm-commits
mailing list