[llvm-commits] [llvm-gcc-4.2] r62076 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
baldrick at free.fr
Wed Jan 14 00:45:29 PST 2009
> This gets translated into low level pointer arithmetics, right? Later
> on llvm-convert casts it to i8*:
> ArrayAddr = BitCastToType(ArrayAddr,
> Is there a reason why we can't just give it the alignment of i8?
I'm not sure what you are saying. Consider &a. This gets turned
into pointer arithmetic or a GEP on &a. The alignment of the resulting
lvalue should be the alignment of a, i.e. the original alignment of
the array itself adjusted by the size of 1 array element. I will try
to find time to cook up an example.
More information about the llvm-commits