[clang] [llvm] [AArch64] Add soft-float ABI (PR #84146)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 6 02:01:55 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 d70254a623d7c23c493cc793756a5a9d758b0a14 5535c5daa0a09e4e62d3fba61f56be8c7bad8c89 -- clang/test/CodeGen/aarch64-soft-float-abi-errors.c clang/test/CodeGen/aarch64-soft-float-abi.c clang/test/Driver/aarch64-soft-float-abi.c clang/include/clang/Basic/DiagnosticIDs.h clang/lib/Basic/DiagnosticIDs.cpp clang/lib/Basic/Targets/AArch64.cpp clang/lib/Basic/Targets/AArch64.h clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/ModuleBuilder.cpp clang/lib/CodeGen/TargetInfo.h clang/lib/CodeGen/Targets/AArch64.cpp clang/test/CodeGen/attr-target-clones-aarch64.c clang/test/CodeGen/target-avx-abi-diag.c clang/test/Preprocessor/aarch64-target-features.c clang/test/Sema/arm-vector-types-support.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/Targets/AArch64.cpp b/clang/lib/CodeGen/Targets/AArch64.cpp
index 2ff067157d..e1d49340ff 100644
--- a/clang/lib/CodeGen/Targets/AArch64.cpp
+++ b/clang/lib/CodeGen/Targets/AArch64.cpp
@@ -861,7 +861,8 @@ void AArch64TargetCodeGenInfo::checkFunctionABI(
// If we are using a hard-float ABI, but do not have floating point
// registers, then report an error for any function arguments or returns
// which would be passed in floating-pint registers.
- auto CheckType = [&CGM, &TI, &ABIInfo](const QualType &Ty, const NamedDecl *D) {
+ auto CheckType = [&CGM, &TI, &ABIInfo](const QualType &Ty,
+ const NamedDecl *D) {
const Type *HABase = nullptr;
uint64_t HAMembers = 0;
if (Ty->isFloatingType() || Ty->isVectorType() ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/84146
More information about the cfe-commits
mailing list