<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 10:00 AM, Krzysztof Parzyszek <span dir="ltr"><<a href="mailto:kparzysz@codeaurora.org" target="_blank">kparzysz@codeaurora.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">f90_array_type = type { i32 size, double* data };</blockquote>
</div><br>I am not certain how fortran implements multi-dimensional arrays, but in my case I'm doing something like </div><div class="gmail_extra"><br></div><div class="gmail_extra" style> type { i32 nd, i32* dims, double* data };</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Perhaps we could add !tbaa.pointer? </div><div class="gmail_extra" style><br></div><div class="gmail_extra" style> !1 = metadata !{ metadata !"int", metadata !0 }</div>
<div class="gmail_extra" style><div class="gmail_extra"> !2 = metadata !{ metadata !"double", metadata !0 }</div><div><br></div></div><div class="gmail_extra"><div class="gmail_extra"> !3 = metadata !{ metadata !1, 0 } ; tbaa.pointer { metadata type, i64 noalias }</div>
</div><div class="gmail_extra" style> !4 = metadata !{ metadata !2, 1 }</div><div class="gmail_extra" style><div class="gmail_extra"><br></div></div><div class="gmail_extra" style> !5 = { i64 0, i64 4, metadata !1, i64 8, i64 8, metadata !3, i64 16, i64 8, metadata !4 }</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style> %Array = type { i32 nd, i32* dims, double* data }, !tbaa.struct !5</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><br>
</div><div class="gmail_extra" style>Dimitri.</div></div>