[LLVMdev] Size/Alignment handling bug?
ghost at cs.msu.su
Thu Jul 1 08:11:02 PDT 2004
I think there's possible bug in alignment handling. When getTypeInfo function
in TargetData.cpp is called on:
[100 x short]
it always returns 200 as the size. However, if alignment for short is '4',
then each array element should be aligned at 4-byte boundary, and the total
size of the array is more like 400.
For a while, I've made the attached local modification. Does it makes sense?
P.S. It's a lot of fun writing codegen for a target which has no support for
addressing/working with individual bytes ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 659 bytes
Desc: not available
More information about the llvm-dev