<div dir="ltr">Hi,<br><div><br></div><div>I have an aggregate type like</div><div>    {i32, {i8*, i16}, [2xi8], ... }, </div><div>    [2 x {i8*, i32}],</div><div>and wanted to get the offset of a leaf type from the beginning of the aggregate type at compilation time.</div><div><br></div><div>DataLayout::getStructLayout returns the layout of the current level of a struct.<br></div><div>* Do we have any API to get the layout for all leave types for sub-struct?</div><div>* How to get the offset of each element of an Array type?</div><div><br></div><div>Thank you, j</div></div>