search for: valuemask

Displaying 13 results from an estimated 13 matches for "valuemask".

2011 Dec 01
2
[LLVMdev] anchoring explicit template instantiations
...t/CommandLine.cpp >> +++ b/lib/Support/CommandLine.cpp >> @@ -294,10 +294,7 @@ static inline bool ProvideOption(Option *Handler, >> StringRef ArgName, >>     break; >> >>   default: >> -    errs() << ProgramName >> -         << ": Bad ValueMask flag! CommandLine usage error:" >> -         << Handler->getValueExpectedFlag() << "\n"; >> -    llvm_unreachable(0); >> +    llvm_unreachable("Bad ValueMask flag!"); > > This patch would lose the expected flag value, which is unfortun...
2011 Dec 01
0
[LLVMdev] anchoring explicit template instantiations
...+ b/lib/Support/CommandLine.cpp >>> @@ -294,10 +294,7 @@ static inline bool ProvideOption(Option *Handler, >>> StringRef ArgName, >>> break; >>> >>> default: >>> - errs() << ProgramName >>> - << ": Bad ValueMask flag! CommandLine usage error:" >>> - << Handler->getValueExpectedFlag() << "\n"; >>> - llvm_unreachable(0); >>> + llvm_unreachable("Bad ValueMask flag!"); >> >> This patch would lose the expected flag val...
2011 Dec 01
3
[LLVMdev] anchoring explicit template instantiations
...'d be happy to fix as I find them, things like: --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -294,10 +294,7 @@ static inline bool ProvideOption(Option *Handler, StringRef ArgName, break; default: - errs() << ProgramName - << ": Bad ValueMask flag! CommandLine usage error:" - << Handler->getValueExpectedFlag() << "\n"; - llvm_unreachable(0); + llvm_unreachable("Bad ValueMask flag!"); } and --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -1440,16 +1440,14 @@ APInt API...
2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
...I->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 & UnsignedVal) != UnsignedVal) { + TP.error("Integer value '" + itostr(II->getValue())+ + "' is out of range for type '" + + getEn...
2011 Dec 01
0
[LLVMdev] anchoring explicit template instantiations
...ke: > > --- a/lib/Support/CommandLine.cpp > +++ b/lib/Support/CommandLine.cpp > @@ -294,10 +294,7 @@ static inline bool ProvideOption(Option *Handler, > StringRef ArgName, > break; > > default: > - errs() << ProgramName > - << ": Bad ValueMask flag! CommandLine usage error:" > - << Handler->getValueExpectedFlag() << "\n"; > - llvm_unreachable(0); > + llvm_unreachable("Bad ValueMask flag!"); This patch would lose the expected flag value, which is unfortunate. > +++ b/lib/...
2007 Apr 11
2
Patch for ini plugin
...E_BELL (1 << 2) +#define ACTION_VALUE_EDGE (1 << 3) +#define ACTION_VALUE_EDGEBUTTON (1 << 4) +#define ACTION_VALUES_ALL \ + ( ACTION_VALUE_KEY \ + | ACTION_VALUE_BUTTON \ + | ACTION_VALUE_BELL \ + | ACTION_VALUE_EDGE \ + | ACTION_VALUE_EDGEBUTTON ) + +static int actionValueMasks[] = { + ACTION_VALUE_KEY, + ACTION_VALUE_BUTTON, + ACTION_VALUE_BELL, + ACTION_VALUE_EDGE, + ACTION_VALUE_EDGEBUTTON +}; - a->button.button = 0; - a->button.modifiers = 0; +enum { + ACTION_TYPE_KEY = 0, + ACTION_TYPE_BUTTON, + ACTION_TYPE_BELL, + ACTION_TYP...
2007 Jun 17
2
X11 help please
...valid, but I might have missed something: I don't know much about X11 programming. (The call is ::Window xwindow = XCreateWindow( xdisplay, RootWindow(xdisplay, DefaultScreen(xdisplay)), 0, 0, 256, 256, 0, xvisualinfo->depth, InputOutput, xvisualinfo->visual, valuemask, &attrib ); but without context that's probably not worth much to others.) Are there any experienced X11 programmers out there who can suggest what to do next? Duncan Murdoch
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
..."' 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 & UnsignedVal) != UnsignedVal) { > + TP.error("Integer value '" + itostr(II->getValue())+ > + "' is out of range for type...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
..."' 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 & UnsignedVal) != UnsignedVal) { > + TP.error("Integer value '" + itostr(II->getValue())+ > + "' is out of range for type...
2011 Dec 01
0
[LLVMdev] anchoring explicit template instantiations
On Nov 29, 2011, at 12:26 AM, David Blaikie wrote: > For a bit of an experiment I've been trying to compile LLVM & Clang > with -Weverything (disabling any errors that seem like more noise/less > interesting). One warning I've recently hit a few instances of is > -Wweak-vtable which is, in fact, an explicitly documented LLVM coding > standard (
2011 Nov 29
2
[LLVMdev] anchoring explicit template instantiations
For a bit of an experiment I've been trying to compile LLVM & Clang with -Weverything (disabling any errors that seem like more noise/less interesting). One warning I've recently hit a few instances of is -Wweak-vtable which is, in fact, an explicitly documented LLVM coding standard ( http://llvm.org/docs/CodingStandards.html#ll_virtual_anch ). Some instances of this have been easy to
2011 Dec 11
5
[LLVMdev] anchoring explicit template instantiations
...t/CommandLine.cpp >> +++ b/lib/Support/CommandLine.cpp >> @@ -294,10 +294,7 @@ static inline bool ProvideOption(Option *Handler, >> StringRef ArgName, >>     break; >> >>   default: >> -    errs() << ProgramName >> -         << ": Bad ValueMask flag! CommandLine usage error:" >> -         << Handler->getValueExpectedFlag() << "\n"; >> -    llvm_unreachable(0); >> +    llvm_unreachable("Bad ValueMask flag!"); > > This patch would lose the expected flag value, which is unfortun...
2010 Aug 06
4
nv vpe video decoder
Hello, I have my work on the nv vpe video decoder in a functional state. In case you didn't know this decoder accelerates mpeg2 video at the idct/mc level. I have verified that it works on nv40 hardware. I believe it works on nv30 hardware (and maybe some earlier hardware), but I cannot verify since I have none. I will reply with patches against the kernel, drm, ddx and mesa for