[LLVMdev] PR400 - alignment for LD/ST
Devang Patel
dpatel at apple.com
Fri Mar 30 09:10:28 PDT 2007
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>
More information about the llvm-dev
mailing list