[clang] [clang][PowerPC] Add flag to enable compatibility with GNU for complex arguments (PR #77732)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 18 14:18:48 PDT 2025


================
@@ -78,6 +78,13 @@ class CodeGenOptions : public CodeGenOptionsBase {
     SRCK_InRegs    // Small structs in registers (-freg-struct-return).
   };
 
+  enum ComplexArgumentConventionKind {
+    CMPLX_Default,
+    CMPLX_OnStack,
----------------
efriedma-quic wrote:

I don't think this needs to be a target-independent thing; this doesn't really generalize to other targets.  I mean, maybe different targets have sort of similar schemes, but the same ABI compatibility issue shouldn't exist anywhere else.  Maybe pass this as a target feature (ref getPPCTargetFeatures()).

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


More information about the cfe-commits mailing list