[llvm] [OpenMP][LLVM] Add pass to bridge declare simd to loop vectorization (PR #190384)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 11:54:21 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 h,cpp -- llvm/include/llvm/Transforms/Utils/InjectOpenMPVFABIMappings.h llvm/lib/Transforms/Utils/InjectOpenMPVFABIMappings.cpp llvm/lib/Passes/PassBuilder.cpp llvm/lib/Passes/PassBuilderPipelines.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/lib/Transforms/Utils/InjectOpenMPVFABIMappings.cpp b/llvm/lib/Transforms/Utils/InjectOpenMPVFABIMappings.cpp
index 57460bb8d..f1ce25fea 100644
--- a/llvm/lib/Transforms/Utils/InjectOpenMPVFABIMappings.cpp
+++ b/llvm/lib/Transforms/Utils/InjectOpenMPVFABIMappings.cpp
@@ -96,8 +96,8 @@ static void injectMappingsForFunction(Function &F) {
VecFunc->removeRetAttrs(AttributeFuncs::typeIncompatible(
VecFunc->getReturnType(), VecFunc->getAttributes().getRetAttrs()));
for (auto &Arg : VecFunc->args())
- Arg.removeAttrs(AttributeFuncs::typeIncompatible(
- Arg.getType(), Arg.getAttributes()));
+ Arg.removeAttrs(AttributeFuncs::typeIncompatible(Arg.getType(),
+ Arg.getAttributes()));
// Remove _ZGV attrs that were copied from the scalar function.
for (const std::string &N : MangledNames)
VecFunc->removeFnAttr(N);
@@ -128,7 +128,7 @@ static void injectMappingsForFunction(Function &F) {
// listing it in the @llvm.compiler.used intrinsic.
appendToCompilerUsed(*M, {VecFunc});
LLVM_DEBUG(dbgs() << DEBUG_TYPE << ": Adding `" << Info->VectorName
- << "` to `@llvm.compiler.used`.\n");
+ << "` to `@llvm.compiler.used`.\n");
++NumCompUsedAdded;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/190384
More information about the llvm-commits
mailing list