similar to: [LLVMdev] Some enhancements to ImmutableSet and FoldingSet

Displaying 20 results from an estimated 1100 matches similar to: "[LLVMdev] Some enhancements to ImmutableSet and FoldingSet"

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 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
1
[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
On Thu, 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
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.
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
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
2008 Aug 15
3
[LLVMdev] install question
I'm trying to install llvm on my windows development box and hit a problem I'm using cygwin cygwin% gcc --version gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) I downloaded both the top of tree via svn I ran ./configure make make[1]: Entering directory `/cygdrive/c/llvm/lib/Support' llvm[1]: Compiling APFloat.cpp for Debug build llvm[1]: Compiling APInt.cpp
2007 Dec 29
1
[LLVMdev] svn broken on cygwin
Function.cpp:167: error: call of overloaded `AddInteger(uint32_t&)' is ambiguous /home/Seb/llvm/include/llvm/ADT/FoldingSet.h:151: note: candidates are: void llv m::FoldingSetImpl::NodeID::AddInteger(int) /home/Seb/llvm/include/llvm/ADT/FoldingSet.h:152: note: void llvm::FoldingSetIm pl::NodeID::AddInteger(unsigned int) /home/Seb/llvm/include/llvm/ADT/FoldingSet.h:153: note: void
2008 Aug 15
0
[LLVMdev] install question
Rubin, Norman wrote: > I'm trying to install llvm on my windows development box and hit a > problem > I'm using cygwin > cygwin% gcc --version > gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) > > I downloaded both the top of tree via svn > I ran ./configure > make > > make[1]: Entering directory `/cygdrive/c/llvm/lib/Support' >
2008 Aug 15
0
[LLVMdev] Check out my Facebook profile
On Aug 14, 2008, at 9:49 PM, Andy Kitchen wrote: FYI, all posts to llvmdev are moderated until the person posts something sensible. This is a PITA for me (llvm mailing lists get dozens of spams a day which require moderation), but is generally very effective. Since Andy had already posted something sensible, he was on the whitelist. However, he just lost the ability to post to llvmdev
2008 Aug 15
3
[LLVMdev] Check out my Facebook profile
I set up a Facebook profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Andy Here's the link: http://www.facebook.com/p.php?i=612598021&k=63FYZWQ6WVVM5FEIWDV2PT&r&v=2 ___________________ This e-mail may contain promotional
2007 Aug 06
2
[LLVMdev] Problem compiling LLVM under Cygwin/Mingw
Hello, I'm starting to play with LLVM today and I've trouble compiling it. I'm working under Windows Vista, with the gcc from Cygwin: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Is LLVM supposed to work with this version of GCC (probably using the -mno-cygwin option to get a Mingw-like behavior)? The LLVM source tree is from the current SVN trunk. Compilation
2008 Oct 07
2
[LLVMdev] can't build LLVM under Cygwin | released MinGW llvm-2.3 image
I used to be able to build LLVM (from source) under Cygwin for llvm-2.2 and previous releases, but can't continue the trend since the release of LLVM 2.3. I have tried a wide variety of gcc compilers (gcc 3.4.4, 4.1.2, 4.2.4 and 4.3.2) on cygwin, they all fail at the same location: C:\cygwin\home\czhao\ResearchTools\LLVM\2.3\obj2.3>make make[1]: Entering directory
2008 Oct 07
0
[LLVMdev] can't build LLVM under Cygwin | released MinGW llvm-2.3 image
On Mon, Oct 06, 2008 at 08:12:05PM -0400, Chuck Zhao wrote: > I used to be able to build LLVM (from source) under Cygwin for llvm-2.2 > and previous releases, but can't continue the trend since the release of > LLVM 2.3. > I have tried a wide variety of gcc compilers (gcc 3.4.4, 4.1.2, 4.2.4 > and 4.3.2) on cygwin, they all fail at the same location: > >
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>
2010 Feb 11
3
[LLVMdev] FoldingSet #collisions comparison
On Mon, Feb 08, 2010 at 10:31:23AM -0800, Chris Lattner wrote: > On Feb 7, 2010, at 1:03 PM, Gregory Petrosyan wrote: > > >On Sat, Feb 06, 2010 at 04:51:15PM -0800, Chandler Carruth wrote: > >>While I've not reviewed the patch in too much detail, it looks > >>promising. Can you run some end-to-end benchmarks to make sure that > >>cache pressure in the
2011 Sep 26
0
[LLVMdev] The ComputeHash algorithm in FoldingSet isunsafe
I should also implement NodeEquals() method. Please ignore this message. ------------------ Original ------------------ From: "Xu Zhongxing"<xuzhongxing at foxmail.com>; Date: Mon, Sep 26, 2011 10:11 PM To: "llvmdev"<llvmdev at cs.uiuc.edu>; Subject: [LLVMdev] [LLVMDev] The ComputeHash algorithm in FoldingSet isunsafe I use FoldingSet to save some data
2011 Sep 26
0
[LLVMdev] [LLVMDev] The ComputeHash algorithm in FoldingSet is unsafe
I use FoldingSet to save some data structures. And I found somehow it always abandon a new node. I tracked the bug into the ComputeHash() function of FoldingSet. It computes the SAME hash value for these two 32-bit unsigned integer sequences: size: 17
2007 Aug 06
1
[LLVMdev] Problem compiling LLVM under Cygwin/Mingw
Hello, Alain. > I'm starting to play with LLVM today and I've trouble compiling it. > I'm > working under Windows Vista, with the gcc from Cygwin: Oh, this seems to be killer mix :) GCC (at least native mingw32 port) has known problems being running on Vista. > Is LLVM supposed to work with this version of GCC (probably using the > -mno-cygwin option to get a
2010 Feb 11
0
[LLVMdev] FoldingSet #collisions comparison
On Feb 10, 2010, at 4:49 PM, Gregory Petrosyan wrote: >> >> These numbers are so noisy, that they aren't particularly useful. >> Could you try instrumenting foldingset to keep track track of the # >> collisions and # hash table resizes and compare those? They should >> be much more stable and still correlate directly to performance. > > OK, now with real