[llvm] [TLI] Use AArch64 vector calling convention for ArmPL routines (PR #135790)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 06:34:34 PDT 2025


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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/Analysis/TargetLibraryInfo.h llvm/lib/Analysis/TargetLibraryInfo.cpp llvm/lib/Transforms/Utils/InjectTLIMappings.cpp llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp b/llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp
index 31e0263ad..e7e1bf39f 100644
--- a/llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp
+++ b/llvm/unittests/Analysis/ReplaceWithVecLibTest.cpp
@@ -95,9 +95,9 @@ declare <vscale x 4 x float> @llvm.powi.f32.i32(<vscale x 4 x float>, i32) #0
 // The VFABI prefix in TLI describes signature which is matching the powi
 // intrinsic declaration.
 TEST_F(ReplaceWithVecLibTest, TestValidMapping) {
-  VecDesc CorrectVD = {"llvm.powi.f32.i32", "_ZGVsMxvu_powi",
-                       ElementCount::getScalable(4), /*Masked*/ true,
-                       "_ZGVsMxvu", /* CC = */ std::nullopt};
+  VecDesc CorrectVD = {
+      "llvm.powi.f32.i32", "_ZGVsMxvu_powi", ElementCount::getScalable(4),
+      /*Masked*/ true,     "_ZGVsMxvu",      /* CC = */ std::nullopt};
   EXPECT_EQ(run(CorrectVD, IR),
             "Intrinsic calls replaced with vector libraries: 1");
 }
@@ -105,9 +105,9 @@ TEST_F(ReplaceWithVecLibTest, TestValidMapping) {
 // The VFABI prefix in TLI describes signature which is not matching the powi
 // intrinsic declaration.
 TEST_F(ReplaceWithVecLibTest, TestInvalidMapping) {
-  VecDesc IncorrectVD = {"llvm.powi.f32.i32", "_ZGVsMxvv_powi",
-                         ElementCount::getScalable(4), /*Masked*/ true,
-                         "_ZGVsMxvv", /* CC = */ std::nullopt};
+  VecDesc IncorrectVD = {
+      "llvm.powi.f32.i32", "_ZGVsMxvv_powi", ElementCount::getScalable(4),
+      /*Masked*/ true,     "_ZGVsMxvv",      /* CC = */ std::nullopt};
   EXPECT_EQ(run(IncorrectVD, IR),
             "replace-with-veclib: Will not replace: llvm.powi.f32.i32. Wrong "
             "type at index 1: i32");

``````````

</details>


https://github.com/llvm/llvm-project/pull/135790


More information about the llvm-commits mailing list