<div dir="ltr">Hi.<div><br></div><div>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 <a href="http://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.2/com.ibm.xlc131.aix.doc/proguide/alignment.html">http://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.2/com.ibm.xlc131.aix.doc/proguide/alignment.html</a>  (`power` alignment setting)</div><div><br></div><div><ol class="" style="font-size:8.96px;margin-top:0.1em;margin-bottom:0.1em;padding-top:0.1em;padding-bottom:0.1em;color:rgb(0,0,0);font-family:Arial,sans-serif;background-color:rgb(255,255,255)"><li class="" style="margin-top:0em;margin-bottom:0em;margin-left:0em">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.</li></ol></div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div></div>