[clang] [clang][RISC-V] fixed fp calling convention for fpcc eligible structs for risc-v (PR #110690)
Kamran Yousafzai via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 03:56:49 PDT 2024
================
@@ -251,6 +253,15 @@ bool RISCVABIInfo::detectFPCCEligibleStructHelper(QualType Ty, CharUnits CurOff,
// bitwidth is XLen or less.
if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen)
QTy = getContext().getIntTypeForBitwidth(XLen, false);
+ // Trim type to alignment/bitwidth if that is possible
+ else if (getContext().getTypeSize(QTy) > Alignment &&
----------------
KamranYousafzai wrote:
You are right, the latest push reflects the change suggested. It now just checks against size of a byte to ensure the size at the very minimum is 8 bits.
https://github.com/llvm/llvm-project/pull/110690
More information about the cfe-commits
mailing list