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

Nemanja Ivanovic via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 11:36:59 PST 2024


================
@@ -78,6 +78,13 @@ class CodeGenOptions : public CodeGenOptionsBase {
     SRCK_InRegs    // Small structs in registers (-freg-struct-return).
   };
 
+  enum ComplexArgumentConventionKind {
+    CMPLX_Default,
+    CMPLX_OnStack,
+    CMPLX_OnGPR, // if ppc32 -fcomplex-ppc-gnu-abi
----------------
nemanjai wrote:

Nit: can we use `In[GF]PR` in the names as "in registers"/"on stack" are in common usage.

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


More information about the cfe-commits mailing list