-
Notifications
You must be signed in to change notification settings - Fork 15.6k
[bazel] Update bazel rules after moving passplugin to llvm/passes #173308
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
googlewalt
merged 7 commits into
llvm:main
from
kevinwkt:bazel-update-passes-to-plugin-dir
Dec 23, 2025
Merged
[bazel] Update bazel rules after moving passplugin to llvm/passes #173308
googlewalt
merged 7 commits into
llvm:main
from
kevinwkt:bazel-update-passes-to-plugin-dir
Dec 23, 2025
+44
−0
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
pranavk
approved these changes
Dec 22, 2025
Member
|
@llvm/pr-subscribers-libc Author: Kyungtak Woo (kevinwkt) Changesf54df0d moved PassPlugin.h from llvm/Passes to llvm/Plugins. This bazel rules accomodates the changes Full diff: https://github.com/llvm/llvm-project/pull/173308.diff 4 Files Affected:
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 0beac88912e8d..acd598d3db9aa 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -1735,6 +1735,7 @@ cc_library(
"//llvm:Linker",
"//llvm:MC",
"//llvm:Option",
+ "//llvm:Plugins",
"//llvm:ProfileData",
"//llvm:Remarks",
"//llvm:Support",
@@ -1868,6 +1869,7 @@ cc_library(
"//llvm:ObjCARC",
"//llvm:Object",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:ProfileData",
"//llvm:Scalar",
"//llvm:Support",
@@ -2375,6 +2377,7 @@ cc_binary(
"//llvm:Object",
"//llvm:Option",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Remarks",
"//llvm:Support",
"//llvm:Target",
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 7e94b10b123b6..3679064864b53 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -815,6 +815,7 @@ libc_support_library(
name = "__support_blockstore",
hdrs = ["src/__support/blockstore.h"],
deps = [
+ ":__support_alloc_checker",
":__support_cpp_array",
":__support_cpp_new",
":__support_libc_assert",
@@ -1087,6 +1088,7 @@ libc_support_library(
],
hdrs = ["src/__support/File/file.h"],
deps = [
+ ":__support_alloc_checker",
":__support_cpp_new",
":__support_cpp_span",
":__support_error_or",
@@ -5470,6 +5472,18 @@ libc_support_library(
],
)
+libc_support_library(
+ name = "string_allocating_string_utils",
+ hdrs = ["src/string/allocating_string_utils.h"],
+ deps = [
+ ":__support_alloc_checker",
+ ":__support_cpp_optional",
+ ":__support_macros_config",
+ ":string_memory_utils",
+ ":string_utils",
+ ],
+)
+
libc_function(
name = "index",
srcs = ["src/strings/index.cpp"],
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 4e27ad5050671..bb7420263a017 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -3897,6 +3897,17 @@ cc_library(
],
)
+cc_library(
+ name = "Plugins",
+ srcs = ["lib/Plugins/PassPlugin.cpp"],
+ hdrs = ["include/llvm/Plugins/PassPlugin.h"],
+ copts = llvm_copts,
+ includes = ["include"],
+ deps = [
+ ":Support",
+ ],
+)
+
cc_library(
name = "LTO",
srcs = glob([
@@ -3926,6 +3937,7 @@ cc_library(
":ObjCARC",
":Object",
":Passes",
+ ":Plugins",
":Remarks",
":Scalar",
":Support",
@@ -4556,6 +4568,7 @@ cc_binary(
":IRReader",
":MC",
":Passes",
+ ":Plugins",
":Remarks",
":Scalar",
":Support",
@@ -5289,6 +5302,7 @@ cc_binary(
":Core",
":LTO",
":Passes",
+ ":Plugins",
":Remarks",
":Support",
],
@@ -6077,6 +6091,7 @@ cc_library(
":Instrumentation",
":MC",
":Passes",
+ ":Plugins",
":Remarks",
":Scalar",
":Support",
@@ -6315,6 +6330,7 @@ cc_binary(
":IRReader",
":Linker",
":Passes",
+ ":Plugins",
":Scalar",
":Support",
":TargetParser",
@@ -6391,6 +6407,7 @@ cc_binary(
":Object",
":OrcJIT",
":Passes",
+ ":Plugins",
":Remarks",
":Scalar",
":Support",
diff --git a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
index 0ecd704fe0a62..82b64332b7ae8 100644
--- a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
@@ -41,6 +41,7 @@ cc_library(
"//llvm:Analysis",
"//llvm:Core",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
],
)
@@ -62,6 +63,7 @@ cc_test(
"//llvm:AsmParser",
"//llvm:Core",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
"//llvm:TestingSupport",
"//llvm:attributes_gen",
@@ -78,6 +80,7 @@ cc_library(
"//llvm:Analysis",
"//llvm:Core",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
],
)
@@ -99,6 +102,7 @@ cc_test(
"//llvm:AsmParser",
"//llvm:Core",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
"//llvm:TestingSupport",
"//llvm:attributes_gen",
@@ -136,6 +140,7 @@ cc_test(
"//llvm:FrontendHLSL",
"//llvm:Instrumentation",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
"//llvm:TargetParser",
"//llvm:TestingSupport",
@@ -252,6 +257,7 @@ cc_test(
"//llvm:Core",
"//llvm:MC",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
"//llvm:Target",
"//llvm:TestingSupport",
@@ -381,6 +387,7 @@ cc_test(
"//llvm:MC",
"//llvm:MCJIT",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
"//llvm:Target",
"//llvm:TargetParser",
@@ -476,6 +483,7 @@ cc_test(
"//llvm:CodeGen",
"//llvm:Core",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Scalar",
"//llvm:Support",
"//llvm:TargetParser",
@@ -518,6 +526,7 @@ cc_test(
"//llvm:FrontendOpenACC",
"//llvm:FrontendOpenMP",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:Support",
"//llvm:TargetParser",
"//llvm:TestingSupport",
@@ -902,6 +911,7 @@ cc_test(
"//llvm:IPO",
"//llvm:IRReader",
"//llvm:Passes",
+ "//llvm:Plugins",
"//llvm:ProfileData",
"//llvm:Support",
"//llvm:TestingSupport",
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This bazel rules accomodates the changes