[LLVMdev] Minimum addressable unit

Ivan Llopard ivanllopard at gmail.com
Tue Jan 10 01:00:24 PST 2012


Hi,

How can we set the minimum addressable memory unit to be 32 bit ?

As far as I know, getTargetData() provides all type sizes and alignments 
to compute address offsets assuming a MAU of 8 bits.
But what if I have a MAU of 32 bits ?
Currently I have 2 legal types in my BE, i16 and v2i16, and I could set 
TargetData in order to have v2i16 types with a size and alignment of 8 
bits. Doing so, I will have correct address offsets but I suspect it 
would break optimizations phases. Any advice ?

Ivan



More information about the llvm-dev mailing list