reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/SmallPtrSet.h
   99       if (size() * 4 < CurArraySize && CurArraySize > 32)
   99       if (size() * 4 < CurArraySize && CurArraySize > 32)
  102       memset(CurArray, -1, CurArraySize * sizeof(void *));
  119     return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize;
  147       if (NumNonEmpty < CurArraySize) {
lib/Support/SmallPtrSet.cpp
   30   CurArraySize = Size > 16 ? 1 << (Log2_32_Ceil(Size) + 1) : 32;
   34   CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize);
   36   memset(CurArray, -1, CurArraySize*sizeof(void*));
   41   if (LLVM_UNLIKELY(size() * 4 >= CurArraySize * 3)) {
   43     Grow(CurArraySize < 64 ? 128 : CurArraySize * 2);
   43     Grow(CurArraySize < 64 ? 128 : CurArraySize * 2);
   44   } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) {
   44   } else if (LLVM_UNLIKELY(CurArraySize - NumNonEmpty < CurArraySize / 8)) {
   47     Grow(CurArraySize);
   66   unsigned Bucket = DenseMapInfo<void *>::getHashValue(Ptr) & (CurArraySize-1);
   67   unsigned ArraySize = CurArraySize;
  104   CurArraySize = NewSize;
  130     CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize);
  148     assert(CurArraySize == RHS.CurArraySize &&
  148     assert(CurArraySize == RHS.CurArraySize &&
  157   } else if (CurArraySize != RHS.CurArraySize) {
  157   } else if (CurArraySize != RHS.CurArraySize) {
  159       CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize);
  162                                              sizeof(void*) * RHS.CurArraySize);
  172   CurArraySize = RHS.CurArraySize;
  172   CurArraySize = RHS.CurArraySize;
  202   CurArraySize = RHS.CurArraySize;
  202   CurArraySize = RHS.CurArraySize;
  207   RHS.CurArraySize = SmallSize;
  219     std::swap(this->CurArraySize, RHS.CurArraySize);
  219     std::swap(this->CurArraySize, RHS.CurArraySize);
  232     std::swap(RHS.CurArraySize, this->CurArraySize);
  232     std::swap(RHS.CurArraySize, this->CurArraySize);
  246     std::swap(RHS.CurArraySize, this->CurArraySize);
  246     std::swap(RHS.CurArraySize, this->CurArraySize);
  267   assert(this->CurArraySize == RHS.CurArraySize);
  267   assert(this->CurArraySize == RHS.CurArraySize);