[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:
> 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.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev