[llvm-commits] [llvm] r92730 - in /llvm/trunk: include/llvm/ADT/BitVector.h include/llvm/ADT/SmallBitVector.h unittests/ADT/BitVectorTest.cpp unittests/ADT/SmallBitVectorTest.cpp

Chris Lattner clattner at apple.com
Tue Jan 5 10:00:06 PST 2010


On Jan 5, 2010, at 7:04 AM, Dan Gohman wrote:

> Author: djg
> Date: Tue Jan  5 09:04:49 2010
> New Revision: 92730
>
> URL: http://llvm.org/viewvc/llvm-project?rev=92730&view=rev
> Log:
> 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.

Very nice!  Please mention it here:
http://llvm.org/docs/ProgrammersManual.html#ds_bit

-Chris



More information about the llvm-commits mailing list