search for: gettypenum

Displaying 3 results from an estimated 3 matches for "gettypenum".

2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
...alue() << (32-Size)) >> (32-Size); - if (Val != II->getValue()) - TP.error("Sign-extended integer value '" + itostr(II->getValue())+ - "' is out of range for type '" + - getEnumName(getTypeNum(0)) + "'!"); + if (Val != II->getValue()) { + // If sign-extended doesn't fit, does it fit as unsigned? + unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT)); + unsigned UnsignedVal = unsigned(II->getValue()); + + if ((ValueMask & U...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...) >> (32-Size); > - if (Val != II->getValue()) > - TP.error("Sign-extended integer value '" + > itostr(II->getValue())+ > - "' is out of range for type '" + > - getEnumName(getTypeNum(0)) + "'!"); > + if (Val != II->getValue()) { > + // If sign-extended doesn't fit, does it fit as unsigned? > + unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT)); > + unsigned UnsignedVal = unsigned(II->getValue()); > + >...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...) >> (32-Size); > - if (Val != II->getValue()) > - TP.error("Sign-extended integer value '" + > itostr(II->getValue())+ > - "' is out of range for type '" + > - getEnumName(getTypeNum(0)) + "'!"); > + if (Val != II->getValue()) { > + // If sign-extended doesn't fit, does it fit as unsigned? > + unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT)); > + unsigned UnsignedVal = unsigned(II->getValue()); > + >...