Re: [llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-06-29 Thread Chris Lattner
Add a default parameter to a SmallVector constructor to allow it to be called with just an initial length value, just like in std::vector. Ok. Should this be marked 'explicit'? -Chris --- Diffs of the changes: (+1 -1) SmallVector.h |2 +- 1 files changed, 1 insertion(+), 1

Re: [llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-06-29 Thread Dan Gohman
Add a default parameter to a SmallVector constructor to allow it to be called with just an initial length value, just like in std::vector. Ok. Should this be marked 'explicit'? Yep. Good catch. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-06-28 Thread Dan Gohman
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.30 - 1.31 --- Log message: Add a default parameter to a SmallVector constructor to allow it to be called with just an initial length value, just like in std::vector. --- Diffs of the changes: (+1 -1) SmallVector.h |2

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-05-17 Thread Dan Gohman
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.28 - 1.29 --- Log message: Fix some sporadic segfaults that are triggered when SmallVector's heap storage lands near the end of the available address space. In the expression Begin+N Capacity, the Begin+N was overflowing.

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-05-17 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.29 - 1.30 --- Log message: silence some comparison between signed and unsigned integer expressions warnings --- Diffs of the changes: (+3 -3) SmallVector.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-04-18 Thread Jeff Cohen
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.27 - 1.28 --- Log message: Fix some VC++ warnings. --- Diffs of the changes: (+4 -4) SmallVector.h |8 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.24 - 1.25 --- Log message: Unbreak VC++ build. --- Diffs of the changes: (+19 -0) SmallVector.h | 19 +++ 1 files changed, 19 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-03-04 Thread Jeff Cohen
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.25 - 1.26 --- Log message: Elminate tabs and improve comments. --- Diffs of the changes: (+8 -7) SmallVector.h | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) Index:

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-02-12 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.23 - 1.24 --- Log message: fix a critical bug in smallvector, where it would destroy elements that are not in its range (!). --- Diffs of the changes: (+1 -1) SmallVector.h |2 +- 1 files changed, 1 insertion(+), 1

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2007-01-31 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.22 - 1.23 --- Log message: add missing ctor --- Diffs of the changes: (+7 -0) SmallVector.h |7 +++ 1 files changed, 7 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-10-29 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.21 - 1.22 --- Log message: add a new form of insert. --- Diffs of the changes: (+48 -1) SmallVector.h | 49 - 1 files changed, 48 insertions(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-10-09 Thread Andrew Lenharth
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.19 - 1.20 --- Log message: Fix build error in gcc 3.4 and make more this general --- Diffs of the changes: (+1 -1) SmallVector.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

Re: [llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-10-09 Thread Reid Spencer
Andrew, ... On Mon, 2006-10-09 at 14:05 -0500, Andrew Lenharth wrote: Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.19 - 1.20 --- Log message: Fix build error in gcc 3.4 and make more this general This compiled on my 3.4.6 compiler on Linux just fine before the

Re: [llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-10-09 Thread Andrew Lenharth
This compiled on my 3.4.6 compiler on Linux just fine before the patch. What was the error you were trying to fix? Allignment Value not constant was the error. This was gcc 3.4.4 Are you sure this is right? In section 5.31 of the GCC Manual it indicates that if an alignment size is not

Re: [llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-10-09 Thread Chris Lattner
On Oct 9, 2006, at 12:56 PM, Andrew Lenharth wrote: Is this what we want here? I believe so. I agree, Andrew's patch looks great to me. -Chris ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-09-01 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.17 - 1.18 --- Log message: add a simple reserve method. --- Diffs of the changes: (+5 -0) SmallVector.h |5 + 1 files changed, 5 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-16 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.13 - 1.14 --- Log message: silence a warning. --- Diffs of the changes: (+1 -0) SmallVector.h |1 + 1 files changed, 1 insertion(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-15 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.12 - 1.13 --- Log message: Bugfixes for smallvector when the element size is small and N is small. --- Diffs of the changes: (+17 -4) SmallVector.h | 21 + 1 files changed, 17 insertions(+), 4

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-14 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.11 - 1.12 --- Log message: avoid a warning --- Diffs of the changes: (+1 -1) SmallVector.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-11 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.9 - 1.10 --- Log message: Split SmallVector into SmallVector and SmallVectorImpl, which allows us to eliminate code duplication due to the 'N' parameter. --- Diffs of the changes: (+45 -40) SmallVector.h | 85

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-11 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.10 - 1.11 --- Log message: move code out of line so that GCC doesn't inline it at -O3 --- Diffs of the changes: (+69 -62) SmallVector.h | 131 ++ 1 files changed,

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-07 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.6 - 1.7 --- Log message: Add ctor that initializes from a range. --- Diffs of the changes: (+6 -0) SmallVector.h |6 ++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-07 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.7 - 1.8 --- Log message: add a new assign method --- Diffs of the changes: (+9 -0) SmallVector.h |9 + 1 files changed, 9 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-07 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.8 - 1.9 --- Log message: capacity is a pointer, not a value --- Diffs of the changes: (+1 -1) SmallVector.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-06 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.4 - 1.5 --- Log message: Add a clear method to SmallVector --- Diffs of the changes: (+0 -0) 0 files changed ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-08-05 Thread Evan Cheng
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.3 - 1.4 --- Log message: This causes some random crashes. --- Diffs of the changes: (+1 -1) SmallVector.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/ADT/SmallVector.h diff -u

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-07-27 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.2 - 1.3 --- Log message: The smallvector dtor should destroy the elements. Implement pop_back. Chage some code to use 'iterator' instead of T*. This unbreaks operators=. --- Diffs of the changes: (+12 -2) SmallVector.h

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-07-26 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h added (r1.1) --- Log message: Add a new llvm::SmallVector template, which is similar to the vector class, but contains optimizations to avoid heap allocation if the vector size is smaller than some threshold. This can significantly

[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h

2006-07-26 Thread Chris Lattner
Changes in directory llvm/include/llvm/ADT: SmallVector.h updated: 1.1 - 1.2 --- Log message: Use std::copy instead of custom loops to take advantage of STL optimizations. Add a new append method for appending a range. --- Diffs of the changes: (+19 -5) SmallVector.h | 24