[LLVMdev] Lowering operations to 8-bit!

Alireza.Moshtaghi at microchip.com
Wed, 26 Sep 2007 21:30:20 -0000

I am trying to lower all llvm operations to 8-bit. So far I was trying
to have llvm do all that for me using things like:



setOperationAction(ISD::ADD, MVT::ii,Promote);

setOperationAction(ISD::ADD, MVT::i8,Legal);

setOperationAction(ISD::ADD, MVT::i16,Expand);

setOperationAction(ISD::ADD, MVT::i32,Expand);



However, I keep getting an assertion failure that operation can not be
expanded.

Now I am thinking maybe LLVM does not lower all operations and value
types.

Before going ahead and write new DAGs for all LLVM operations, I would
like to make sure that I am doing the right thing.



Am I doing it right?

Do I have to write new DAGs for all of the LLVM operations? Or some of
them already do it for me?



Thanks,



Alireza Moshtaghi

Senior Software Engineer

Development Systems, Microchip Technology



-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20070926/4266731f/attachment.html>