On Mar 29, 2007, at 2:42 PM, Christopher Lamb wrote:> 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. > > 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.AFAIU, tasks are: 1) Update LLVM LD/ST instructions to maintain alignment information 2) Update FE to provide alignment info for LD/ST instructions if it is determined that memory reference is not aligned naturally. 3) Update target specific code gens to respect alignment information associated with LD/ST - Devang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070330/3de8d175/attachment.html>
On Mar 30, 2007, at 11:10 AM, Devang Patel wrote:> > On Mar 29, 2007, at 2:42 PM, Christopher Lamb wrote: > >> 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. >> >> 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. > > AFAIU, tasks are: > > 1) Update LLVM LD/ST instructions to maintain alignment informationIs this referring to the language itself, i.e. the bytecode/assembly format and associated readers/writers? If so this is probably the portion that it's most likely I could help with.> 2) Update FE to provide alignment info for LD/ST instructions if it > is determined that memory reference is not aligned naturally. > 3) Update target specific code gens to respect alignment > information associated with LD/ST > > - > Devang-- Christopher Lamb christopher.lamb at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070330/a7810375/attachment.html>
On Mar 30, 2007, at 10:29 AM, Christopher Lamb wrote:>> 1) Update LLVM LD/ST instructions to maintain alignment information > > Is this referring to the language itself, i.e. the bytecode/ > assembly format and associated readers/writers? If so this is > probably the portion that it's most likely I could help with. >Yes. - Devang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070330/7b3bf153/attachment.html>