[llvm-dev] Alignment of the StoreInst
Hongbin Zheng via llvm-dev
llvm-dev at lists.llvm.org
Fri Dec 16 11:57:29 PST 2016
Hi all,
I am wondering the semantics of alignment in a StoreInst. For example, in
the following code:
%A = bitcast i8* %buffer to i32*
store i32 %x, i32* %A, align 4
We have an "align 4" in the StoreInst. Does this mean
1) the address 'A' should be aligned to 4 bytes?
2) the lower 2 bits of 'A' should be always 0?
Thanks
Hongbin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161216/37af83f4/attachment.html>
More information about the llvm-dev
mailing list