[LLVMdev] Promoting i16 load to i32

Kalle Raiskila kalle.raiskila at nokia.com
Mon Feb 14 06:17:05 PST 2011


Alex Bradbury wrote:
> Hi,
> 
> I'm working on an LLVM backend for an architecture which does not
> natively support half-word loads. I'm having trouble getting LLVM to
> promote i16 to i32 loads for me - should I expect LLVM to be able to
> do this, are do I have to write a custom lowerer? 

I don't think LLVM does that currently. However - it would be a nice
thing have. At least spu and, if I recall correctly, xcore backends have
custom lowering for similar cases. 


kalle

-- 
"Modern computing machines are very complex objects"
                      -von Neumann introducing the NORC, 1954




More information about the llvm-dev mailing list