search for: immutableset

Displaying 12 results from an estimated 12 matches for "immutableset".

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: > &g...
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...
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) > + ;
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...
2009 Feb 12
1
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
...Feb 12, 2009 at 4:47 AM, Ted Kremenek <kremenek at apple.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. &...
2009 Feb 11
0
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
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) + ; + return n; + } + bool empty() const { + return size() == 0; + } empty() here
2009 Feb 12
1
[LLVMdev] Add -> operator to ImmutableSet::iterator
What it says on the tin... -------------- next part -------------- A non-text attachment was scrubbed... Name: mg.diff Type: application/octet-stream Size: 610 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090212/709956df/attachment.obj>
2009 Feb 11
6
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
I needed these for some work I'm doing in clang... -------------- next part -------------- A non-text attachment was scrubbed... Name: set.patch Type: application/octet-stream Size: 1925 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090211/82192816/attachment.obj>
2011 Jul 05
0
[LLVMdev] [llvm-commits] Patch: add contains to ImmutableList
...1 to 3. > As an alternative, how about a function which takes a T* and returns the ImmutableList<T>::iterator pointing to the right element or the end() iterator if it's not a member? Would this be faster? I could write that, but I was trying to follow the semantics of contains() in ImmutableSet. > Do you have commit access? No. :-) Regards, -- Rui Paulo
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
...vm-2.8/include/llvm/ADT/GraphTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableIntervalMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableList.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/IndexedMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/IntrusiveRefCntPtr.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/NullablePtr.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/Optional.h -- Installing: /usr/local/llvm...
2010 Oct 01
0
[LLVMdev] CMake "sudo make install" & headers
On Thu, Sep 30, 2010 at 3:08 PM, Samuel Williams <space.ship.traveller at gmail.com> wrote: > Hi, > > I might just be doing something stupid, but when I do > > $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. > $ sudo make install > > I don't get the expected headers in >        /usr/local/llvm-2.8/include/llvm > > It is
2010 Sep 30
6
[LLVMdev] CMake "sudo make install" & headers
Hi, I might just be doing something stupid, but when I do $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. $ sudo make install I don't get the expected headers in /usr/local/llvm-2.8/include/llvm It is simply an empty directory. What am I doing wrong? This is on Mac OS X, CMake 2.8+ Kind regards, Samuel