[flang-commits] [clang] [flang] [llvm] [polly] [Plugins] Pass options to a pass plugin in -load-pass-plugin (PR #226773)
via flang-commits
flang-commits at lists.llvm.org
Sun Sep 27 13:05:14 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- clang/lib/Frontend/CompilerInstance.cpp clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp llvm/examples/Bye/Bye.cpp llvm/examples/IRTransforms/SimplifyCFG.cpp llvm/include/llvm/Plugins/PassPlugin.h llvm/lib/LTO/LTOBackend.cpp llvm/lib/Plugins/PassPlugin.cpp llvm/tools/llc/lib/llcdriver.cpp llvm/tools/opt/optdriver.cpp llvm/unittests/Analysis/PluginInlineAdvisorAnalysisTest.cpp llvm/unittests/Analysis/PluginInlineOrderAnalysisTest.cpp llvm/unittests/Passes/Plugins/PluginsTest.cpp polly/lib/Support/RegisterPasses.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/examples/Bye/Bye.cpp b/llvm/examples/Bye/Bye.cpp
index 4dbe74d7d..82c774cf3 100644
--- a/llvm/examples/Bye/Bye.cpp
+++ b/llvm/examples/Bye/Bye.cpp
@@ -90,8 +90,9 @@ static Error parseArguments(ArrayRef<const char *> Args) {
/* New PM Registration */
llvm::PassPluginLibraryInfo getByePluginInfo() {
- return {LLVM_PLUGIN_API_VERSION, "Bye", LLVM_VERSION_STRING,
- registerPassBuilderCallbacks, preCodeGenCallback, parseArguments};
+ return {LLVM_PLUGIN_API_VERSION, "Bye",
+ LLVM_VERSION_STRING, registerPassBuilderCallbacks,
+ preCodeGenCallback, parseArguments};
}
#ifndef LLVM_BYE_LINK_INTO_TOOLS
diff --git a/llvm/examples/IRTransforms/SimplifyCFG.cpp b/llvm/examples/IRTransforms/SimplifyCFG.cpp
index 7452f150c..6f916c999 100644
--- a/llvm/examples/IRTransforms/SimplifyCFG.cpp
+++ b/llvm/examples/IRTransforms/SimplifyCFG.cpp
@@ -405,7 +405,9 @@ static Error parseArguments(ArrayRef<const char *> Args) {
/* New PM Registration */
llvm::PassPluginLibraryInfo getExampleIRTransformsPluginInfo() {
- return {LLVM_PLUGIN_API_VERSION, "SimplifyCFG", LLVM_VERSION_STRING,
+ return {LLVM_PLUGIN_API_VERSION,
+ "SimplifyCFG",
+ LLVM_VERSION_STRING,
[](PassBuilder &PB) {
PB.registerPipelineParsingCallback(
[](StringRef Name, llvm::FunctionPassManager &PM,
@@ -417,7 +419,8 @@ llvm::PassPluginLibraryInfo getExampleIRTransformsPluginInfo() {
return false;
});
},
- nullptr, parseArguments};
+ nullptr,
+ parseArguments};
}
#ifndef LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS
``````````
</details>
https://github.com/llvm/llvm-project/pull/226773
More information about the flang-commits
mailing list