[llvm] [VFABI] Improve VFABI unit tests (PR #73907)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 10:25:10 PST 2023


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 5891a8f7ce0a7b866a5bc06c34092fbdb28dda1c f8d6c2c6dd2b106b9f4780f6319af133be66057f -- llvm/include/llvm/Analysis/VectorUtils.h llvm/lib/Analysis/VFABIDemangling.cpp llvm/lib/Analysis/VectorUtils.cpp llvm/lib/Transforms/Utils/ModuleUtils.cpp llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp llvm/tools/vfabi-demangle-fuzzer/vfabi-demangler-fuzzer.cpp llvm/unittests/Analysis/VectorFunctionABITest.cpp llvm/unittests/Analysis/VectorUtilsTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Analysis/VectorFunctionABITest.cpp b/llvm/unittests/Analysis/VectorFunctionABITest.cpp
index 3adf6e97a7..64d0399c69 100644
--- a/llvm/unittests/Analysis/VectorFunctionABITest.cpp
+++ b/llvm/unittests/Analysis/VectorFunctionABITest.cpp
@@ -27,9 +27,9 @@ private:
                                 << Err.getMessage() << "\n";
     Type *Ty = parseType(SFunTy, Err, *(M.get()));
     ScalarFTy = dyn_cast<FunctionType>(Ty);
-    EXPECT_NE(ScalarFTy, nullptr) << "Invalid function type string: " << SFunTy
-                            << "\n"
-                            << Err.getMessage() << "\n";
+    EXPECT_NE(ScalarFTy, nullptr)
+        << "Invalid function type string: " << SFunTy << "\n"
+        << Err.getMessage() << "\n";
     // Reset the VFInfo
     Info = VFInfo();
     ScalarFuncParametersNum = 0;
@@ -135,8 +135,8 @@ TEST_F(VFABIParserTest, OnlyValidNames) {
 }
 
 TEST_F(VFABIParserTest, ParamListParsing) {
-  EXPECT_TRUE(invokeParser("_ZGVnN2vl16Ls32R3l_foo",
-                           "void(i32, i32, i32, ptr, i32)"));
+  EXPECT_TRUE(
+      invokeParser("_ZGVnN2vl16Ls32R3l_foo", "void(i32, i32, i32, ptr, i32)"));
   EXPECT_TRUE(matchScalarParamNum()) << "Different number of Scalar parameters";
   EXPECT_EQ(VecFuncParameters.size(), (unsigned)5);
   EXPECT_EQ(VecFuncParameters[0], VFParameter({0, VFParamKind::Vector}));

``````````

</details>


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


More information about the llvm-commits mailing list