reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
64 : TheTable(RHS.TheTable), NumBuckets(RHS.NumBuckets), 68 RHS.NumBuckets = 0; 107 unsigned getNumBuckets() const { return NumBuckets; } 115 std::swap(NumBuckets, Other.NumBuckets); 115 std::swap(NumBuckets, Other.NumBuckets); 278 init(RHS.NumBuckets); 279 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1), 280 *RHSHashTable = (unsigned *)(RHS.TheTable + NumBuckets + 1); 284 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { 316 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { 338 return iterator(TheTable, NumBuckets == 0); 341 return iterator(TheTable+NumBuckets, true); 344 return const_iterator(TheTable, NumBuckets == 0); 347 return const_iterator(TheTable+NumBuckets, true); 403 assert(NumItems + NumTombstones <= NumBuckets); 443 assert(NumItems + NumTombstones <= NumBuckets); 455 for (unsigned I = 0, E = NumBuckets; I != E; ++I) {lib/Support/StringMap.cpp
47 NumBuckets = 0; 65 NumBuckets = NewNumBuckets; 69 TheTable[NumBuckets] = (StringMapEntryBase*)2; 78 unsigned HTSize = NumBuckets; 81 HTSize = NumBuckets; 85 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); 135 unsigned HTSize = NumBuckets; 139 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); 193 assert(NumItems + NumTombstones <= NumBuckets); 202 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); 207 if (LLVM_UNLIKELY(NumItems * 4 > NumBuckets * 3)) { 208 NewSize = NumBuckets*2; 209 } else if (LLVM_UNLIKELY(NumBuckets - (NumItems + NumTombstones) <= 210 NumBuckets / 8)) { 211 NewSize = NumBuckets; 227 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { 258 NumBuckets = NewSize;