[LLVMdev] The definition of getTypeSize
Chris Lattner
sabre at nondot.org
Wed Oct 10 11:32:19 PDT 2007
On Tue, 9 Oct 2007, Duncan Sands wrote:
>> I think rather than worrying about how these functions are being used
>> *now* you should define them in a way that's clear and fix the
>> incorrect uses. To me that means:
>>
>> getTypeSizeInBits - actual size
>> getABITypeSizeInBits - ABI size when used in a larger structure
>> getStorageTypeSizeInBits - size of load / store
>
> I agree and will try to do something later this week.
> PS: getStorageTypeSizeInBits -> getTypeStorageSizeInBits
BTW, I agree with this sentiment. In particular, every use of
"getTypeSize" is currently probably broken for "odd sized" types. Thank
you for tackling this Duncan!
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list