Searched refs:NumNonEmpty (Results 1 – 2 of 2) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SmallPtrSet.cpp | 31 NumNonEmpty = NumTombstones = 0; in shrink_and_clear() 44 } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) { in insert_imp_big() 59 ++NumNonEmpty; // Track density. in insert_imp_big() 135 NumNonEmpty -= NumTombstones; in Grow() 198 NumNonEmpty = RHS.NumNonEmpty; in copyHelper() 220 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, CurArray); in moveHelper() 228 NumNonEmpty = RHS.NumNonEmpty; in moveHelper() 234 RHS.NumNonEmpty = 0; in moveHelper() 248 std::swap(this->NumNonEmpty, RHS.NumNonEmpty); in swap() 258 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, SmallStorage); in swap() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | SmallPtrSet.h | 67 unsigned NumNonEmpty; variable 81 : CurArray(SmallStorage), CurArraySize(SmallSize), NumNonEmpty(0), in SmallPtrSetImplBase() 98 size_type size() const { return NumNonEmpty - NumTombstones; } in size() 112 NumNonEmpty = 0; in clear() 147 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; in EndPointer() 156 for (const void **APtr = CurArray, **E = CurArray + NumNonEmpty; in insert_imp() 164 if (NumNonEmpty < CurArraySize) { in insert_imp() 165 CurArray[NumNonEmpty++] = Ptr; in insert_imp() 167 return std::make_pair(CurArray + (NumNonEmpty - 1), true); in insert_imp() 180 for (const void **APtr = CurArray, **E = CurArray + NumNonEmpty; in erase_imp() [all …]
|