Skip to content

Commit

Permalink
[clang][AArch64] Put soft-float ABI checks under isSoftFloat(). NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
jroelofs committed Sep 11, 2024
1 parent 956591b commit b3f3c0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/CodeGen/Targets/AArch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b3f3c0c

Please sign in to comment.