Displaying 2 results from an estimated 2 matches for "getaddresssableunitsize".
2019 May 03
2
RFC: On removing magic numbers assuming 8-bit bytes
...such, an 8 bit char can
> have a 'storage size' of 24 bits in one memory and 64 bits in
> another.
> (but a char can also be 24 bits, or 10 or something else).
>
> I think that a cleaner abstraction in datalayout is in general
> useful.
>
> We use:
> unsigned getAddresssableUnitSize(unsigned AddressSpace=0);
>
> which, for the main llvm, could be implemented as :
> unsigned getAddresssableUnitSize(unsigned AS=0) { return 8; }
>
> Greetings,
>
> Jeroen Dobbelaere
>
>
> > -----Original Message-----
> > From: llvm-dev <llvm-dev-bo...
2019 May 02
12
RFC: On removing magic numbers assuming 8-bit bytes
A. This RFC outlines a proposal regarding non-8-bit-byte support that
got positive reception at a Round Table at EuroLLVM19. The general
topic has been brought up several times before and one good overview
can be found in a FOSDEM 2017 presentation by Jones and Cook:
https://archive.fosdem.org/2017/schedule/event/llvm_16_bit/
In a nutshell, the proposal is for the llvm community