================ @@ -179,20 +179,31 @@ bool SystemZABIInfo::isVectorArgumentType(QualType Ty) const { getContext().getTypeSize(Ty) <= 128); } -bool SystemZABIInfo::isFPArgumentType(QualType Ty) const { +// The Size argument will in case of af an overaligned single element struct +// reflect the overalignment value. In such a case the argument will be +// passed using the type matching Size. +llvm::Type *SystemZABIInfo::getFPArgumentType(QualType Ty, + uint64_t Size) const { if (IsSoftFloatABI) - return false; + return nullptr; if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) switch (BT->getKind()) { + case BuiltinType::Float16: + if (Size == 16) ---------------- uweigand wrote:
Can we defer the Size check to the caller? I.e. call this routine and then simply verify that the size of the struct equals the size of the element type? https://github.com/llvm/llvm-project/pull/109164 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits