[LLVMdev] Type Legalizer - Load handling problem

sanjiv gupta sanjiv.gupta at microchip.com
Fri Aug 29 11:05:52 PDT 2008

On Fri, 2008-08-29 at 15:32 +0200, Duncan Sands wrote:
> Hi,
> > How will LOAD:i8 with an i16 operand be lowered in type legalizer? (i16
> > type is not legal for our target)
> what does "LOAD:i8 with an i16 operand" mean?  Are you saying that the
> type of a pointer is i16, and you are loading an i8 value from the
> pointed to location?  If so, you are in trouble because many parts of
> the code generator assume that the type of a pointer is legal.
Yes we have 16-bit pointers but only 8-bit operations and 8-bit

For indirect loads/stores, the 16-bit pointer gets loaded into a
register pair.
- Sanjiv

More information about the llvm-dev mailing list