[llvm-dev] struct layout in AIX

Reid Kleckner via llvm-dev llvm-dev at lists.llvm.org
Thu May 5 09:51:54 PDT 2016

For C code, record layout decisions are made here:

LLVM's struct layout rules are only important if you aren't using clang.

On Wed, May 4, 2016 at 8:06 PM, Zeson Wu via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi.
> 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
> http://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.2/com.ibm.xlc131.aix.doc/proguide/alignment.html
> (`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.
> Thanks
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160505/bfac4651/attachment.html>

More information about the llvm-dev mailing list