Displaying 2 results from an estimated 2 matches for "getsizeinaddressunits".
2010 Oct 13
1
[LLVMdev] address-units
...ing that works
in terms of bytes to work in terms of address units. I think you'll
need
to extend the datalayout string syntax to support an address unit
size (in bits), and to add an address unit size field to the TargetData
class. You'll also need to change APIs like getSizeInBytes to
getSizeInAddressUnits.
Then, you can change your target datalayout string to be in terms of
16-bit address units instead of 8-bit address units.
Then there are other places in LLVM which hardcode "8" constants
and "i8*" types; these can be fixed once the TargetData changes are
in place.
Dan
I wo...
2009 Apr 01
2
[LLVMdev] adjust address calculus for an architecture that does not address bytes
> > At first I thought this could be handled when lowering
> loads and stores, but I realize that I can only catch the
> targeted addresses of loads/stores here - however address
> calculation nodes may occur anywhere in a DAG.
> >
> > So my first impulse would be to adjust the constants when
> the GEP instructions are transformed to ADDs. Afaics his
> would mean