History log of /external/llvm/unittests/ADT/BitVectorTest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
de2d8694e25a814696358e95141f4b1aa4d8847e 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r275480

Bug: http://b/31320715

This merges commit 7dcf7f03e005379ef2f06db96aa93f06186b66d5 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: Iaf3738f74312d875e69f61d604ac058f381a2a1a
/external/llvm/unittests/ADT/BitVectorTest.cpp
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/unittests/ADT/BitVectorTest.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/unittests/ADT/BitVectorTest.cpp
496cf2308acf4bb719a015517f27dff10db7de49 27-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc."

This reverts commit r187248. It broke many bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
d063a326b2567c3ca759f069e7680979036b9d5e 26-Jul-2013 Bill Schmidt <wschmidt@linux.vnet.ibm.com> [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc.

Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
all PowerPC targets, whether 32- or 64-bit. They will both implicitly
define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
for 32-bit targets. We cannot be sure that all other possible
compilers used to compile Clang/LLVM define both __ppc__ and
__powerpc__, for example, so it is best to check for both when relying
on either inside the Clang/LLVM code base.

This patch makes sure we always check for both variants. In addition,
it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
(At least one of __ppc__ and __powerpc__ should always be defined when
compiling for a PowerPC target, no matter which compiler is used, so
testing for them is unnecessary.)

There are some places in the compiler that check for other variants,
like __POWERPC__ and _POWER, and I have left those in place. There is
no need to add them elsewhere. This seems to be in Apple-specific
code, and I won't take a chance on breaking it.

There is no intended change in behavior; thus, no test cases are
added.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
459d7bf8f6f1577c67d50c060bff7115d30f9fb9 11-Jul-2013 Benjamin Kramer <benny.kra@googlemail.com> Sync SmallBitVector with BitVector. Add unit tests for the missing methods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186123 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
a77376dae1e26572f94aa52b63f89749b785bc33 07-Jun-2013 Benjamin Kramer <benny.kra@googlemail.com> BitVector: Do the right thing in all() when Size is a multiple of BITWORD_SIZE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183525 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
597253da97ec4fa5fa4a03c2230ed026b1b6aad6 07-Jun-2013 Benjamin Kramer <benny.kra@googlemail.com> Optimize BitVector::all().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183521 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/BitVectorTest.cpp
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