[clang] [Clang][LoongArch] Support builtin functions for LSX and LASX (PR #69313)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 01:44:39 PDT 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 7df92fbe74e3c1b41c06f5fc784473f7f22aeed7 0bd36f11c5d1da2447b1c123445a1472372a096b -- clang/lib/Headers/lasxintrin.h clang/lib/Headers/lsxintrin.h clang/test/CodeGen/LoongArch/lasx/builtin-alias-error.c clang/test/CodeGen/LoongArch/lasx/builtin-alias.c clang/test/CodeGen/LoongArch/lasx/builtin-error.c clang/test/CodeGen/LoongArch/lasx/builtin.c clang/test/CodeGen/LoongArch/lsx/builtin-alias-error.c clang/test/CodeGen/LoongArch/lsx/builtin-alias.c clang/test/CodeGen/LoongArch/lsx/builtin-error.c clang/test/CodeGen/LoongArch/lsx/builtin.c clang/test/Driver/loongarch-mlasx-error.c clang/test/Driver/loongarch-mlasx.c clang/test/Driver/loongarch-mlsx-error.c clang/test/Driver/loongarch-mlsx.c clang/lib/Basic/Targets/LoongArch.cpp clang/lib/Basic/Targets/LoongArch.h clang/lib/CodeGen/Targets/LoongArch.cpp clang/lib/Driver/ToolChains/Arch/LoongArch.cpp clang/lib/Sema/SemaChecking.cpp clang/test/Preprocessor/init-loongarch.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index b4b4571a4c4f..3518ed86751e 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -9201,8 +9201,7 @@ ExprResult Sema::SemaConvertVectorExpr(Expr *E, TypeSourceInfo *TInfo,
                           diag::err_convertvector_non_vector)
                      << E->getSourceRange());
   if (!DstTy->isVectorType() && !DstTy->isDependentType())
-    return ExprError(Diag(BuiltinLoc,
-                          diag::err_convertvector_non_vector_type));
+    return ExprError(Diag(BuiltinLoc, diag::err_convertvector_non_vector_type));
 
   if (!SrcTy->isDependentType() && !DstTy->isDependentType()) {
     unsigned SrcElts = SrcTy->castAs<VectorType>()->getNumElements();

``````````

</details>


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


More information about the cfe-commits mailing list