================ @@ -892,6 +892,19 @@ StructType::getABIAlignment(const ::mlir::DataLayout &dataLayout, return computeStructAlignment(dataLayout); } +uint64_t +StructType::getRequiredAlignment(const ::mlir::DataLayout &dataLayout, ---------------- bcardosolopes wrote:
IIUC CIR also marks a struct packed when only the LLVM layout needs it, like `Outer3` in the new test, whose C alignment is 8. This returns 1 for it. Should we document it is a lower bound for records, with the record layout attribute as the exact answer, or should we get the alignment from somewhere else? https://github.com/llvm/llvm-project/pull/243165 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
