[clang] [Sparc][clang] make `_Complex` ABI GCC-compatible (PR #212340)

Folkert de Vries via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 1 14:46:25 PDT 2026


================
@@ -25,12 +32,30 @@ class SparcV8ABIInfo : public DefaultABIInfo {
   SparcV8ABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {}
 
 private:
+  llvm::Type *getComplexIntCoerceType(QualType Ty) const;
   ABIArgInfo classifyReturnType(QualType RetTy) const;
   ABIArgInfo classifyArgumentType(QualType Ty) const;
   void computeInfo(CGFunctionInfo &FI) const override;
 };
 } // end anonymous namespace
 
+llvm::Type *SparcV8ABIInfo::getComplexIntCoerceType(QualType Ty) const {
----------------
folkertdev wrote:

this needs whether we're returning or passing too. So, idk if this is really an improvement but I made the change

https://github.com/llvm/llvm-project/pull/212340


More information about the cfe-commits mailing list