History log of /external/llvm/unittests/ADT/BitVectorTest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e3f7be36c75ddcafb24b52c36c55c3dc17215db3 16-Oct-2012 Owen Anderson <resistor@mac.com> Fix a bug in the set(I,E)/reset(I,E) methods that I recently added. The boundary condition for checking if I and E were in the same word were incorrect, and, beyond that, the mask computation was not using a wide enough constant.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166015 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
3a1c35afbd02b012690c35ec827424c27792ec3f 16-Oct-2012 Owen Anderson <resistor@mac.com> Add range-based set()/reset() to BitVector. These allow fast setting/resetting of ranges of bits, particularly useful when dealing with very large BitVector's.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165984 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
904cf82f270b9d7bd26df2261f8776efdc9e2fa2 16-Jun-2012 Benjamin Kramer <benny.kra@googlemail.com> Merge the SmallBitVector and BitVector unit tests with gtest's typed test magic and bring SmallBitVector up to date.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
00570224891da83c5066b8d135232f96786dbd56 14-May-2012 Jakob Stoklund Olesen <stoklund@2pi.dk> Remove the expensive BitVector::operator~().

Returning a temporary BitVector is very expensive. If you must, create
the temporary explicitly: Use BitVector(A).flip() instead of ~A.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
03a3811ab48139f45cf47f1168788e630af0d40b 14-May-2012 Jakob Stoklund Olesen <stoklund@2pi.dk> Add BitVector::anyCommon().

The existing operation (A & B).any() is very slow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
ff5bad078782b6472d6cd0974bf08fe3473050e6 17-Jan-2012 Jakob Stoklund Olesen <stoklund@2pi.dk> Add portable bit mask operations to BitVector.

BitVector uses the native word size for its internal representation.
That doesn't work well for literal bit masks in source code.

This patch adds BitVector operations to efficiently apply literal bit
masks specified as arrays of uint32_t. Since each array entry always
holds exactly 32 bits, these portable bit masks can be source code
literals, probably produced by TableGen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
fab4c9e9df1aeb33b55cfcfa174fac8d61df96fd 27-Sep-2010 Dan Gohman <gohman@apple.com> Add an all() method to BitVector, for testing whether all bits are set.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
3f5e91565273e3f4639d37ee5a5b856699e8c9e5 30-Apr-2010 Dan Gohman <gohman@apple.com> Update BitVectorTest.cpp to stay in sync with SmallBitVectorTest.cpp,
and fix a bug in BitVector's reference proxy class which this exposed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
c9e31cc8232892b30dac38f97c90ebc41428f59a 10-Feb-2010 Benjamin Kramer <benny.kra@googlemail.com> Silence GCC warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
e7962c9897cf3ac5fc731702d5e5d8963fc5c723 10-Feb-2010 Dan Gohman <gohman@apple.com> Implement operators |=, &=, and ^= for SmallBitVector, and remove the
restriction in BitVector for |= and ^= that the operand must be the
same length.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
ce97b75c1d507808abcb67635cfcdce2f48e53c9 09-Feb-2010 Dale Johannesen <dalej@apple.com> Disable unittests/ADT/BitVectorTest on PPC Darwin.
It fails with a release build only, for reasons
as yet unknown. (If there's a better way to Xfail
things here let me know, doesn't seem to be any
prior art in unittests.)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95700 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
cb89afc965c66029ae38712d1c52f5bbe4dee942 05-Jan-2010 Dan Gohman <gohman@apple.com> Add a SmallBitVector class, which mimics BitVector but uses only
a single pointer (PointerIntPair) member. In "small" mode, the
pointer field is reinterpreted as a set of bits. In "large" mode,
the pointer points to a heap-allocated object.

Also, give BitVector empty and swap functions.

And, add some simple unittests for BitVector and SmallBitVector.


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