Displaying 1 result from an estimated 1 matches for "yourinstrinfo".
2011 Jun 23
2
[LLVMdev] type promotion i16 -> i32
Hello,
I'm developing a llvm backend. It seems that, if i16 is not a legal type
(no register can hold i16 types in RegisterInfo.td and as a RegisterClass in
SelLowering.cpp), i16 should be promoted to i32.
Nonotheless, this simple program:
int main(){
volatile short a;
a= 3;
return 0;
}
which is trasformed in this IR:
define i32 @main() nounwind readnone {
entry:
%a = alloca i16,