[llvm-dev] struct layout in AIX

Zeson Wu via llvm-dev llvm-dev at lists.llvm.org
Wed May 4 20:06:33 PDT 2016


Is the alignment of a struct be computed in the constructor of StructLayout
class? I wonder that the position of a member in the struct has been
considered in llvm? Because the alignment of a member is dependent to the
position in the struct in AIX platform according to the table in
(`power` alignment setting)

   1. In aggregates, the first member of this data type is aligned
   according to its natural alignment value; subsequent members of the
   aggregate are aligned on 4-byte boundaries.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160505/cb0a2fc8/attachment.html>

More information about the llvm-dev mailing list