[flang-commits] [flang] [flang] Fix `getTypeSizeAndAlignment` for packed/tail-padded `RecordType` and `TRANSFER` gate (PR #220377)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 3 12:52:59 PDT 2026
================
@@ -556,6 +556,11 @@ std::string getTypeAsString(mlir::Type ty, const KindMapping &kindMap,
llvm::StringRef prefix = "");
/// Return the size and alignment of FIR types.
+/// The returned size is the allocation size (including tail padding to the
----------------
MattPD wrote:
The per-category mechanics now match the helper. The final recommendation still identifies `storeSizeOnly` with `STORAGE_SIZE`. At `eabf68933226`, `STORAGE_SIZE(t2)` and `STORAGE_SIZE(t1)` are 64 and 128 bits, while `storeSizeOnly` returns 5 and 10 bytes. Could the header describe this value as a size that excludes outer tail padding rather than as `STORAGE_SIZE`?
https://github.com/llvm/llvm-project/pull/220377
More information about the flang-commits
mailing list