search for: isempty

Displaying 20 results from an estimated 27 matches for "isempty".

Did you mean: is_empty
2009 Feb 11
0
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
Actually, neither of these methods are needed for ImmutableSet. ImmutableSet already has an 'isEmpty()' method and I have never really seen a case where "size()" needs to be explicitly calculated. If you need size() itself, however, this seems like a perfectly valid addition. On Feb 11, 2009, at 10:57 AM, Ted Kremenek wrote: > > On Feb 11, 2009, at 10:54 AM, Bill Wendlin...
2009 Feb 12
2
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
On Wed, Feb 11, 2009 at 8:24 PM, Ted Kremenek <kremenek at apple.com> wrote: > Actually, neither of these methods are needed for ImmutableSet. > ImmutableSet already has an 'isEmpty()' method and I have never really seen > a case where "size()" needs to be explicitly calculated. If you need size() > itself, however, this seems like a perfectly valid addition. I need to check for size() == 1 (in order to test whether a range set has a single possible value...
2009 Feb 11
3
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
On Feb 11, 2009, at 10:54 AM, Bill Wendling wrote: > On Wed, Feb 11, 2009 at 10:36 AM, Ben Laurie <benl at google.com> wrote: >> I needed these for some work I'm doing in clang... >> > Yes sir! At least this message was informative. One thing: > > + int size() const { > + int n = 0; > + for(iterator i = begin() ; i != end() ; ++n, ++i) > + ;
2015 Jan 08
4
[LLVMdev] Machine LICM and cheap instructions?
...the defined operands are available in at most 1 cycle. ARM overrides this, and provides this more-customized definition: bool ARMBaseInstrInfo:: hasLowDefLatency(const InstrItineraryData *ItinData, const MachineInstr *DefMI, unsigned DefIdx) const { if (!ItinData || ItinData->isEmpty()) return false; unsigned DDomain = DefMI->getDesc().TSFlags & ARMII::DomainMask; if (DDomain == ARMII::DomainGeneral) { unsigned DefClass = DefMI->getDesc().getSchedClass(); int DefCycle = ItinData->getOperandCycle(DefClass, DefIdx); return (DefCycle != -1 &&a...
2009 Feb 12
0
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
On Feb 11, 2009, at 8:14 PM, Ben Laurie wrote: > On Wed, Feb 11, 2009 at 8:24 PM, Ted Kremenek <kremenek at apple.com> > wrote: >> Actually, neither of these methods are needed for ImmutableSet. >> ImmutableSet already has an 'isEmpty()' method and I have never >> really seen >> a case where "size()" needs to be explicitly calculated. If you >> need size() >> itself, however, this seems like a perfectly valid addition. > > I need to check for size() == 1 (in order to test whether...
2009 Feb 12
1
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
...com> wrote: > On Feb 11, 2009, at 8:14 PM, Ben Laurie wrote: > >> On Wed, Feb 11, 2009 at 8:24 PM, Ted Kremenek <kremenek at apple.com> wrote: >>> >>> Actually, neither of these methods are needed for ImmutableSet. >>> ImmutableSet already has an 'isEmpty()' method and I have never really >>> seen >>> a case where "size()" needs to be explicitly calculated. If you need >>> size() >>> itself, however, this seems like a perfectly valid addition. >> >> I need to check for size() == 1 (in or...
2014 Jan 28
2
[LLVMdev] Weird msan problem
...ff ff ff ff ff ff o: 3f0010a6 o: 80007666 which seems to indicate that the local variable b has uninitialized data. I'm having a hard time believing that though, since if I look at the functions before it, the place where it's coming from is initialized: #4 0x00007f41755208a8 in julia_isempty248 () #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, f at entry=<optimized out>, args=0x7fff9132da20, args at entry=<optimized out>, nargs=1, nargs at entry=<optimized out>) at ./julia.h:1043 (here's the code of that julia function for reference) isempty(s::IntSet...
2014 Jan 28
2
[LLVMdev] Weird msan problem
...; >> which seems to indicate that the local variable b has uninitialized data. >> I'm having a hard time believing that though, since if I look at the >> functions before it, the place where it's coming from is initialized: >> >> #4 0x00007f41755208a8 in julia_isempty248 () >> #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, f at entry=<optimized >> out>, args=0x7fff9132da20, args at entry=<optimized out>, nargs=1, >> nargs at entry=<optimized out>) at ./julia.h:1043 >> >> (here's the code of that juli...
2014 Feb 01
2
[LLVMdev] Weird msan problem
...ocal variable b has uninitialized >> data. >> >> I'm having a hard time believing that though, since if I look at the >> >> functions before it, the place where it's coming from is initialized: >> >> >> >> #4 0x00007f41755208a8 in julia_isempty248 () >> >> #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, f at entry >> =<optimized >> >> out>, args=0x7fff9132da20, args at entry=<optimized out>, nargs=1, >> >> nargs at entry=<optimized out>) at ./julia.h:1043 >> >&...
2011 Oct 20
3
[LLVMdev] Crash with optimization for size
...: FingerPrint (); virtual ~FingerPrint () {}; FingerPrint (unsigned char fp[16]); void Set (unsigned char fp[16]); virtual GSErrCode Write (GS::OChannel& oc) const; virtual GSErrCode Read (GS::IChannel& ic); virtual GSErrCode GetAsString (char* md5String) const; bool IsEmpty (void) const; void Clear (void); bool operator == (const FingerPrint& rhs) const; bool operator != (const FingerPrint& rhs) const; FingerPrint& operator= (const FingerPrint& source); public: unsigned char data[16]; }; } The type of gFloor...
2014 Feb 02
2
[LLVMdev] Weird msan problem
...; >> data. >>>> >> I'm having a hard time believing that though, since if I look at the >>>> >> functions before it, the place where it's coming from is initialized: >>>> >> >>>> >> #4 0x00007f41755208a8 in julia_isempty248 () >>>> >> #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, >>>> >> f at entry=<optimized >>>> >> out>, args=0x7fff9132da20, args at entry=<optimized out>, nargs=1, >>>> >> nargs at entry=<optimized o...
2005 May 19
4
[LLVMdev] [Cygwin] llvm-ranlib and 'make check' errors
...p;) [((int)2)+((int)1)]) exp: void foo<2>(int (&) [(2) + (1)]) FAIL at line 2708, style gnu-v3: in: _Z1fM1AKFvvE out: (null) exp: f(void (A::*)() const) FAIL at line 2716, style gnu-v3: in: 2CBIL_Z3foocEE out: (null) exp: CB<foo(char)> FAIL at line 2720, style gnu-v3: in: 2CBIL_Z7IsEmptyEE out: (null) exp: CB<IsEmpty> FAIL at line 2728, style gnu-v3: in: _ZZN1N1fEiEs out: N::f(int)::string literal [#0] exp: N::f(int)::string literal FAIL at line 2748, style gnu-v3: in: _Z1fKPFiiE out: f(int (*)(int) const) exp: f(int (* const)(int)) FAIL at line 2752, style gnu-v3: in: _Z1...
2014 Feb 03
2
[LLVMdev] Weird msan problem
...e if I look at >> >>>> >> the >> >>>> >> functions before it, the place where it's coming from is >> >>>> >> initialized: >> >>>> >> >> >>>> >> #4 0x00007f41755208a8 in julia_isempty248 () >> >>>> >> #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, >> >>>> >> f at entry=<optimized >> >>>> >> out>, args=0x7fff9132da20, args at entry=<optimized out>, nargs=1, >> >>>> >&gt...
2005 May 19
0
[LLVMdev] [Cygwin] llvm-ranlib and 'make check' errors
...]) exp: void foo<2>(int (&) [(2) + (1)]) FAIL at line 2708, style gnu-v3: in: _Z1fM1AKFvvE out: (null) exp: f(void (A::*)() const) FAIL at line 2716, style gnu-v3: in: 2CBIL_Z3foocEE out: (null) exp: CB<foo(char)> FAIL at line 2720, style gnu-v3: in: 2CBIL_Z7IsEmptyEE out: (null) exp: CB<IsEmpty> FAIL at line 2728, style gnu-v3: in: _ZZN1N1fEiEs out: N::f(int)::string literal [#0] exp: N::f(int)::string literal FAIL at line 2748, style gnu-v3: in: _Z1fKPFiiE out: f(int (*)(int) const) exp: f(int (* const)(int)) FAIL at line 2752,...
2006 Nov 23
0
[753] trunk/wxruby2/swig/classes/include/wxListBox.h: Added back in client data functions for listbox
...el><ins>+ virtual void Insert(const wxString& item , int pos , void * clientData ); </ins><span class="cx"> virtual void Insert(const wxString& item , int pos , wxClientData * clientData ); </span><span class="cx"> virtual bool IsEmpty() const; </span><del>- //virtual void SetClientData(int n , void * data ) ; </del><ins>+ virtual void SetClientData(int n , void * data ) ; </ins><span class="cx"> virtual void SetClientObject(int n , wxClientData * data ) ; </span><span...
2014 Feb 05
2
[LLVMdev] Weird msan problem
...> >> the >> >> >>>> >> functions before it, the place where it's coming from is >> >> >>>> >> initialized: >> >> >>>> >> >> >> >>>> >> #4 0x00007f41755208a8 in julia_isempty248 () >> >> >>>> >> #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, >> >> >>>> >> f at entry=<optimized >> >> >>>> >> out>, args=0x7fff9132da20, args at entry=<optimized out>, >> nargs=...
2014 Feb 07
2
[LLVMdev] Weird msan problem
...>> >>>> >> functions before it, the place where it's coming from is > >>> >> >>>> >> initialized: > >>> >> >>>> >> > >>> >> >>>> >> #4 0x00007f41755208a8 in julia_isempty248 () > >>> >> >>>> >> #5 0x00007f417c163e3d in jl_apply (f=0x606000984d60, > >>> >> >>>> >> f at entry=<optimized > >>> >> >>>> >> out>, args=0x7fff9132da20, args at entry=<optimiz...
2011 Oct 20
0
[LLVMdev] Crash with optimization for size
...gt; FingerPrint (unsigned char fp[16]); > > void Set (unsigned char fp[16]); > virtual > GSErrCode Write (GS::OChannel& oc) const; > virtual > GSErrCode Read (GS::IChannel& ic); > virtual > GSErrCode GetAsString (char* md5String) const; > bool > IsEmpty (void) const; > void > Clear (void); > bool operator == (const FingerPrint& > rhs) const; > bool operator != (const FingerPrint& > rhs) const; > FingerPrint& > operator= (const FingerPrint& source); > public: > unsigned cha...
2008 Feb 04
5
WinXP/x64 - MFC CFile objects leak parent directory handles
...bit XP client, regardless of whether the share belongs to a Samba server or to a Windows server. I have traced the problem to a local instantiation of an object of MFC class CFile in the line 170 of the following code: 166 CString CWaitForChangedFile::GetFileContent() 167 { if (mstrFilePath.IsEmpty()) 168 return ""; 169 _my_TRY 170 CFile file(mstrFilePath, CFile::modeRead | CFile::shareDenyNone); 171 int size = (int)file.GetLength(); 172 CSt...
2005 May 19
0
[LLVMdev] [Cygwin] llvm-ranlib and 'make check' errors
...t (&) [(2) + (1)]) > FAIL at line 2708, style gnu-v3: > in: _Z1fM1AKFvvE > out: (null) > exp: f(void (A::*)() const) > FAIL at line 2716, style gnu-v3: > in: 2CBIL_Z3foocEE > out: (null) > exp: CB<foo(char)> > FAIL at line 2720, style gnu-v3: > in: 2CBIL_Z7IsEmptyEE > out: (null) > exp: CB<IsEmpty> > FAIL at line 2728, style gnu-v3: > in: _ZZN1N1fEiEs > out: N::f(int)::string literal [#0] > exp: N::f(int)::string literal > FAIL at line 2748, style gnu-v3: > in: _Z1fKPFiiE > out: f(int (*)(int) const) > exp: f(int (* cons...