[LLVMdev] 16 bit to 32 bit conversion

Villmow, Micah Micah.Villmow at amd.com
Mon Feb 2 12:54:57 PST 2009


Thanks for making me double check my own mistake. I had
addRegisterClass(MVT::i16, XX::i32RegisterClass).

 

Micah

 

________________________________

From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Evan Cheng
Sent: Monday, February 02, 2009 12:34 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] 16 bit to 32 bit conversion

 

Are you marking i16 a legal type? In XXISelLowering.cpp, you should
assign it a register class. e.g. addRegisterClass(MVT::i16,
XX::i16RegisterClass)

 

Evan

 

On Feb 2, 2009, at 12:19 PM, Villmow, Micah wrote:





It seems that LLVM is converting all the 16 bit ints into 32 bit ints.
Is there a way I can tell LLVM that 16 bit ints are valid and legal and
not to do any conversions on them?

 

Thanks,

 

Micah Villmow

Systems Engineer

Advanced Technology & Performance

Advanced Micro Devices Inc.

S1-609 One AMD Place

Sunnyvale, CA. 94085

P: 408-749-3966

 

 

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090202/8f18920c/attachment.html>


More information about the llvm-dev mailing list