[LLVMdev] Minimum addressable unit

Duncan Sands baldrick at free.fr
Tue Jan 10 01:17:04 PST 2012


Hi Ivan,

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

you can't.

Ciao, Duncan.

> 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
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list