[Mlir-commits] [flang] [mlir] [flang][AIX] BIND(C) derived type alignment for AIX (PR #121505)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jan 7 00:33:33 PST 2025


================
@@ -346,6 +346,9 @@ def fir_RecordType : FIR_Type<"Record", "type"> {
     void finalize(llvm::ArrayRef<TypePair> lenPList,
                   llvm::ArrayRef<TypePair> typeList);
 
+    bool isPacked() const;
+    void pack(bool);
----------------
jeanPerier wrote:

Please add a small comment in the description above that fir.type are unpacked by default, unless this field in set in which case the alignment must be made explicit with unamed i8 array fields.

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


More information about the Mlir-commits mailing list