Add a new bit-vector implementation optimized for

IRGen's needs.

Swift SVN r24295
This commit is contained in:
John McCall
2015-01-09 03:02:39 +00:00
parent 94d907543a
commit 05c67279fb
8 changed files with 1189 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#include "swift/Basic/ClusteredBitVector.h"
using namespace swift;
int main() {
ClusteredBitVector cbvs[16];
cbvs[7].appendSetBits(65);
cbvs[3].appendClearBits(118);
cbvs[7] = std::move(cbvs[3]);
assert(cbvs[7][64] == false);
}