[LLVMdev] Promoting i16 load to i32

Duncan Sands baldrick at free.fr
Mon Feb 14 09:39:49 PST 2011


Hi Alex,

> 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?

it should do this if i16 is not a legal type but i32 is.

Ciao, Duncan.



More information about the llvm-dev mailing list