[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)
zhijian lin via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 06:46:24 PST 2024
================
@@ -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 {
+
----------------
diggerlin wrote:
it look the TypeSize only has 32bit and 64bit. can you change the `uint64_t &TypeSize` to `bool is64BitTypeSize`
and change following code as
```
llvm::Type *ElemTy =is64BitTypeSize? llvm::Type::getInt64Ty(getVMContext()): llvm::Type::getInt32Ty(getVMContext());
unsigned SizeRegs = is64BitTypeSize ? 1:2;
```
https://github.com/llvm/llvm-project/pull/77732
More information about the cfe-commits
mailing list