[LLVMdev] 40-bit integer registers

Patrik Hägglund patrik.h.hagglund at ericsson.com
Wed Nov 30 07:19:25 PST 2011


Hi all!

Our target (a non-public DSP) has 40-bit integer registers, and our C 
front-end support 40-bit integers (ie our LLVM assembler use i40 types).

It seems as every native type should be added as a Machine Value Type 
(MVT). However, it also seems to be required that each SimpleValueType 
enum in MVT has a bit-width that is a power of 2.

Do any of you have ideas how to add support for MVT::i40?

Regards,
Patrik Hägglund



More information about the llvm-dev mailing list