[llvm] [TLI] Use tryDemangleForVFABI when declaring vector variants. (PR #76753)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 12:58:24 PST 2024


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 4b7707bfd9b24e972212c6e40d91c1b21f6f65b6 4ed6312e492b36c1baa99b6cafe45a53b93cd68b -- llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/InjectTLIMappings.cpp b/llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
index 1b0963cc2a..d64d999039 100644
--- a/llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
+++ b/llvm/lib/Transforms/Utils/InjectTLIMappings.cpp
@@ -53,7 +53,7 @@ static void addVariantDeclaration(CallInst &CI, const ElementCount &VF,
 
   for (VFParameter Param : Info->Shape.Parameters) {
     Type *ParamType = nullptr;
-    switch (Param.ParamKind){
+    switch (Param.ParamKind) {
     case VFParamKind::Vector:
       ParamType = ToVectorTy(CI.getArgOperand(Param.ParamPos)->getType(), VF);
       break;

``````````

</details>


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


More information about the llvm-commits mailing list