<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Mar 29, 2007, at 2:42 PM, Christopher Lamb wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>I'm not really sure exactly what's left to do to fully implement what I need. I had assumed that this work would allow me to determine if a LD/ST was based on an aligned pointer or not, but this seems now like the tip of the iceberg.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm hoping that I can declare aligned types and retain that information when I pass a pointer to one of these types to function, or declare a pointer to an aligned type as a local variable. It seems that implementing this not only requires the alignment attribute on loads and stores (in the LLVM bc) but propagation of this information from the frontend.</DIV></SPAN></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>AFAIU, tasks are:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>1) Update LLVM LD/ST instructions to maintain alignment information</DIV><DIV>2) Update FE to provide alignment info for LD/ST instructions if it is determined that memory reference is not aligned naturally. </DIV><DIV>3) Update target specific code gens to respect alignment information associated with LD/ST</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-</DIV><DIV>Devang</DIV></DIV><BR></BODY></HTML>