[llvm-dev] RFC: Enforcing pointer type alignment in Clang
Krzysztof Parzyszek via llvm-dev
llvm-dev at lists.llvm.org
Thu Jan 14 13:44:12 PST 2016
On 1/14/2016 2:56 PM, John McCall via llvm-dev wrote:
>
> Please let me know what you think.
Sounds like a good idea.
For example, on Hexagon, the long vectors (64- and 128-bytes long)
normally need to be aligned to a boundary that is a multiple of their
size. There exist, however, instructions to load/store vectors at an
unaligned address, although they have some restrictions that the aligned
instructions don't. Treating vectors as if they had to be aligned,
while allowing unaligned pointers makes perfect sense.
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev
mailing list