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

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Thu Jan 9 14:22:42 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);
----------------
kkwli wrote:

Will do. However, I notice that unamed field is not allowed in fir.type. I will give a name to the padding (e.g. `__padding0`).

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


More information about the flang-commits mailing list