Displaying 5 results from an estimated 5 matches for "getenumname".
2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
...(II->getValue() << (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 ((ValueM...
2012 Aug 01
0
[LLVMdev] Vector promotion broken for <2 x [i8|i16]>
Micah,
One more thing ;) -- llvm::getEnumName
in utils/TableGen/CodeGenTarget.cpp
-Hal
On Tue, 31 Jul 2012 21:02:02 +0000
"Villmow, Micah" <Micah.Villmow at amd.com> wrote:
> Ahh yep, thanks for catching that, new patch attached.
>
> > -----Original Message-----
> > From: Hal Finkel [mailto:hfinkel at an...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...t; (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());
&...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...t; (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());
&...
2012 Jul 31
3
[LLVMdev] Vector promotion broken for <2 x [i8|i16]>
Ahh yep, thanks for catching that, new patch attached.
> -----Original Message-----
> From: Hal Finkel [mailto:hfinkel at anl.gov]
> Sent: Tuesday, July 31, 2012 1:40 PM
> To: Villmow, Micah
> Cc: Developers Mailing List
> Subject: Re: [LLVMdev] Vector promotion broken for <2 x [i8|i16]>
>
> Micah,
>
> I think that your patch is missing the necessary