[clang] b3f3c0c - [clang][AArch64] Put soft-float ABI checks under isSoftFloat(). NFC

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 11 13:38:02 PDT 2024


Author: Jon Roelofs
Date: 2024-09-11T13:37:45-07:00
New Revision: b3f3c0c63358b412348022d10308b97332d02bcd

URL: https://github.com/llvm/llvm-project/commit/b3f3c0c63358b412348022d10308b97332d02bcd
DIFF: https://github.com/llvm/llvm-project/commit/b3f3c0c63358b412348022d10308b97332d02bcd.diff

LOG: [clang][AArch64] Put soft-float ABI checks under isSoftFloat(). NFC

Added: 
    

Modified: 
    clang/lib/CodeGen/Targets/AArch64.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/Targets/AArch64.cpp b/clang/lib/CodeGen/Targets/AArch64.cpp
index 2f119feb93aaf3..ec617eec67192c 100644
--- a/clang/lib/CodeGen/Targets/AArch64.cpp
+++ b/clang/lib/CodeGen/Targets/AArch64.cpp
@@ -500,7 +500,7 @@ bool AArch64SwiftABIInfo::isLegalVectorType(CharUnits VectorSize,
 bool AArch64ABIInfo::isHomogeneousAggregateBaseType(QualType Ty) const {
   // For the soft-float ABI variant, no types are considered to be homogeneous
   // aggregates.
-  if (Kind == AArch64ABIKind::AAPCSSoft)
+  if (isSoftFloat())
     return false;
 
   // Homogeneous aggregates for AAPCS64 must have base types of a floating
@@ -555,8 +555,8 @@ RValue AArch64ABIInfo::EmitAAPCSVAArg(Address VAListAddr, QualType Ty,
     BaseTy = ArrTy->getElementType();
     NumRegs = ArrTy->getNumElements();
   }
-  bool IsFPR = Kind != AArch64ABIKind::AAPCSSoft &&
-               (BaseTy->isFloatingPointTy() || BaseTy->isVectorTy());
+  bool IsFPR =
+      !isSoftFloat() && (BaseTy->isFloatingPointTy() || BaseTy->isVectorTy());
 
   // The AArch64 va_list type and handling is specified in the Procedure Call
   // Standard, section B.4:


        


More information about the cfe-commits mailing list