reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
83 free(CurArray); 102 memset(CurArray, -1, CurArraySize * sizeof(void *)); 119 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; 119 return isSmall() ? CurArray + NumNonEmpty : CurArray + CurArraySize; 194 bool isSmall() const { return CurArray == SmallArray; } 399 return makeIterator(CurArray); 407 return iterator(P == EndPointer() ? CurArray : P + 1, CurArray, *this); 407 return iterator(P == EndPointer() ? CurArray : P + 1, CurArray, *this);lib/Support/SmallPtrSet.cpp
26 free(CurArray); 34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); 36 memset(CurArray, -1, CurArraySize*sizeof(void*)); 69 const void *const *Array = CurArray; 95 const void **OldBuckets = CurArray; 103 CurArray = NewBuckets; 105 memset(CurArray, -1, NewSize*sizeof(void*)); 127 CurArray = SmallArray; 130 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); 154 free(CurArray); 155 CurArray = SmallArray; 159 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); 161 const void **T = (const void**)safe_realloc(CurArray, 163 CurArray = T; 175 std::copy(RHS.CurArray, RHS.EndPointer(), CurArray); 175 std::copy(RHS.CurArray, RHS.EndPointer(), CurArray); 184 free(CurArray); 194 CurArray = SmallArray; 195 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, CurArray); 195 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, CurArray); 195 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, CurArray); 197 CurArray = RHS.CurArray; 197 CurArray = RHS.CurArray; 198 RHS.CurArray = RHS.SmallArray; 208 assert(RHS.CurArray == RHS.SmallArray); 218 std::swap(this->CurArray, RHS.CurArray); 218 std::swap(this->CurArray, RHS.CurArray); 230 assert(RHS.CurArray == RHS.SmallArray); 231 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, this->SmallArray); 231 std::copy(RHS.CurArray, RHS.CurArray + RHS.NumNonEmpty, this->SmallArray); 235 RHS.CurArray = this->CurArray; 235 RHS.CurArray = this->CurArray; 236 this->CurArray = this->SmallArray; 243 assert(this->CurArray == this->SmallArray); 244 std::copy(this->CurArray, this->CurArray + this->NumNonEmpty, 244 std::copy(this->CurArray, this->CurArray + this->NumNonEmpty, 249 this->CurArray = RHS.CurArray; 249 this->CurArray = RHS.CurArray; 250 RHS.CurArray = RHS.SmallArray;