================ @@ -337,12 +350,77 @@ CharUnits PPC32_SVR4_ABIInfo::getParamTypeAlignment(QualType Ty) const { return CharUnits::fromQuantity(4); } +ABIArgInfo PPC32_SVR4_ABIInfo::handleComplex(QualType Ty, + uint64_t &TypeSize) const { + + assert(Ty->isAnyComplexType()); + llvm::Type *ElemTy; + unsigned SizeRegs; + + if (TypeSize == 64) { + ElemTy = llvm::Type::getInt64Ty(getVMContext()); + SizeRegs = 1; + } else { + ElemTy = llvm::Type::getInt32Ty(getVMContext()); ---------------- Long5hot wrote:
> llvm::Type *ElemTy = llvm::Type::getInt64Ty(getVMContext()); > unsigned SizeRegs = TypeSize/64; Since Typesize will be 64, in if is it necessary to replace 1 to TypeSize/64? https://github.com/llvm/llvm-project/pull/77732 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits