History log of /external/llvm/unittests/ADT/SmallVectorTest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/unittests/ADT/SmallVectorTest.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/unittests/ADT/SmallVectorTest.cpp
5a88dda4be791426ab4d20a6a6c9c65d66614a27 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Sort the #include lines for unittest/...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
ba1f580f338e12c47a600050f7a77fae579acf93 31-Jul-2012 Chandler Carruth <chandlerc@gmail.com> Move the SmallVector unit tests to be type-parameterized so that we can
test more than a single instantiation of SmallVector.

Add testing for 0, 1, 2, and 4 element sized "small" buffers. These
appear to be essentially untested in the unit tests until now.

Fix several tests to be robust in the face of a '0' small buffer. As
a consequence of this size buffer, the growth patterns are actually
observable in the test -- yes this means that many tests never caused
a grow to occur before. For some tests I've merely added a reserve call
to normalize behavior. For others, the growth is actually interesting,
and so I captured the fact that growth would occur and adjusted the
assertions to not assume how rapidly growth occured.

Also update the specialization for a '0' small buffer length to have all
the same interface points as the normal small vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
d45f7b6b5dd36b4732dff82ab7c8a856a7b36ae0 17-Jun-2012 Benjamin Kramer <benny.kra@googlemail.com> Bring the return value of SmallVector::insert in line with std::vector::insert.

It always returns the iterator for the first inserted element, or the passed in
iterator if the inserted range was empty. Flesh out the unit test more and fix
all the cases it uncovered so far.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
5f6c7cfa931a9f9a154c67927f5dec7e928c23d6 17-Jun-2012 Benjamin Kramer <benny.kra@googlemail.com> SmallVector: return a valid iterator for the rare case of inserting an empty range into a SmallVector.

Patch by Johannes Schaub!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158643 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
3703baacf5c17425a07d57583148086a746c5f98 29-Apr-2012 Benjamin Kramer <benny.kra@googlemail.com> SmallVector: Don't rely on having an assignment operator around in push_back for POD-like types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
db125cfaf57cc83e7dd7453de2d509bc8efd0e5e 18-Jul-2011 Chris Lattner <sabre@nondot.org> land David Blaikie's patch to de-constify Type, with a few tweaks.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
9cbd7afb76f20ce874464c238764c54f86b3ce3b 07-Jul-2011 Owen Anderson <resistor@mac.com> Fix a subtle issue in SmallVector. The following code did not work as expected:
vec.insert(vec.begin(), vec[3]);
The issue was that vec[3] returns a reference into the vector, which is invalidated when insert() memmove's the elements down to make space. The method needs to specifically detect and handle this case to correctly match std::vector's semantics.

Thanks to Howard Hinnant for clarifying the correct behavior, and explaining how std::vector solves this problem.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134554 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
100c267249d1d03c4f96eede9877a4f9f54f2247 23-Oct-2010 Chandler Carruth <chandlerc@gmail.com> Switch attribute macros to use 'LLVM_' as a prefix. We retain the old names
until other LLVM projects using these are cleaned up.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
d400850101b304376b21b053a8445100715ebc10 19-Aug-2010 Bill Wendling <isanbard@gmail.com> Silence 'unused' warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111539 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
a7a33fd95f15428b7030ef1b764fcf924d5199c8 26-Mar-2010 Dan Gohman <gohman@apple.com> Fix SmallVector's insert to handle non-random-access iterators.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99633 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
5ffc72e7ced7b9187fdbbae4f0606c3b518fa34e 18-Mar-2010 Dan Gohman <gohman@apple.com> Make this test more lenient; with SmallVector now using actually
aligned storage, the capacity may be more than what is explicitly
requested.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
c2da6fb3e50902daf670fe83b8b017a2bcba05df 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> Add SmallVector::{capacity,set_size}.
- These allow clients to make use of the extra elements in the vector which
have already been allocated, without requiring them to be value initialized.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
614be08dd6ae0755d8a4c32ad49f5f580602cc78 12-Jul-2009 Daniel Dunbar <daniel@zuster.org> Clarify a FIXME.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
3f7c72ab548b534cd0c4efa070c6de07dbed69f9 23-Apr-2009 Owen Anderson <resistor@mac.com> Use the testcase from PR2791.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
3d9fbee0df683ade125b1cbed98df1e561fec83a 11-Jan-2009 Bill Wendling <isanbard@gmail.com> Fix naming of file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62035 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp
f2850d9e2785341e099da5f5f50e1673660da2b8 10-Jan-2009 Bill Wendling <isanbard@gmail.com> Adding unittests for SmallVector. Test by Talin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/SmallVectorTest.cpp