| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | StringMap.cpp | 41 unsigned NumBuckets) { in getHashTable() argument 42 return reinterpret_cast<unsigned *>(TheTable + NumBuckets + 1); in getHashTable() 59 NumBuckets = 0; in StringMapImpl() 75 NumBuckets = NewNumBuckets; in init() 85 if (NumBuckets == 0) in LookupBucketFor() 88 unsigned BucketNo = FullHashValue & (NumBuckets - 1); in LookupBucketFor() 89 unsigned *HashTable = getHashTable(TheTable, NumBuckets); in LookupBucketFor() 128 BucketNo = (BucketNo + ProbeAmt) & (NumBuckets - 1); in LookupBucketFor() 140 if (NumBuckets == 0) in FindKey() 143 unsigned BucketNo = FullHashValue & (NumBuckets - 1); in FindKey() [all …]
|
| H A D | FoldingSet.cpp | 165 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) { in GetBucketFor() argument 167 unsigned BucketNum = Hash & (NumBuckets-1); in GetBucketFor() 172 static void **AllocateBuckets(unsigned NumBuckets) { in AllocateBuckets() argument 173 void **Buckets = static_cast<void**>(safe_calloc(NumBuckets + 1, in AllocateBuckets() 176 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in AllocateBuckets() 186 NumBuckets = 1 << Log2InitSize; in FoldingSetBase() 187 Buckets = AllocateBuckets(NumBuckets); in FoldingSetBase() 192 : Buckets(Arg.Buckets), NumBuckets(Arg.NumBuckets), NumNodes(Arg.NumNodes) { in FoldingSetBase() 194 Arg.NumBuckets = 0; in FoldingSetBase() 201 NumBuckets = RHS.NumBuckets; in operator =() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | HeaderMap.cpp | 91 uint32_t NumBuckets = NeedsByteSwap in checkHeader() local 92 ? llvm::sys::getSwappedBytes(Header->NumBuckets) in checkHeader() 93 : Header->NumBuckets; in checkHeader() 94 if (!llvm::isPowerOf2_32(NumBuckets)) in checkHeader() 97 sizeof(HMapHeader) + sizeof(HMapBucket) * NumBuckets) in checkHeader() 175 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets); in dump() local 177 llvm::dbgs() << "Header Map " << getFileName() << ":\n " << NumBuckets in dump() 186 for (unsigned i = 0; i != NumBuckets; ++i) { in dump() 201 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets); in lookupFilename() local 204 assert(llvm::isPowerOf2_32(NumBuckets) && "Expected power of 2"); in lookupFilename() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_dense_map.h | 41 auto NumBuckets = getMinBucketToReserveForEntries(NumEntries); in reserve() local 42 if (NumBuckets > getNumBuckets()) in reserve() 43 grow(NumBuckets); in reserve() 428 unsigned NumBuckets = getNumBuckets(); in InsertIntoBucketImpl() local 429 if (UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) { in InsertIntoBucketImpl() 430 this->grow(NumBuckets * 2); in InsertIntoBucketImpl() 432 NumBuckets = getNumBuckets(); in InsertIntoBucketImpl() 433 } else if (UNLIKELY(NumBuckets - (NewNumEntries + getNumTombstones()) <= in InsertIntoBucketImpl() 434 NumBuckets / 8)) { in InsertIntoBucketImpl() 435 this->grow(NumBuckets); in InsertIntoBucketImpl() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | OnDiskHashTable.h | 73 offset_type NumBuckets; variable 100 for (size_t I = 0; I < NumBuckets; ++I) in resize() 109 NumBuckets = NewSize; in resize() 127 if (4 * NumEntries >= 3 * NumBuckets) in insert() 128 resize(NumBuckets * 2); in insert() 129 insert(Buckets, NumBuckets, new (BA.Allocate()) Item(Key, Data, InfoObj)); in insert() 135 for (Item *I = Buckets[Hash & (NumBuckets - 1)].Head; I; I = I->Next) in contains() 167 if (TargetNumBuckets != NumBuckets) in Emit() 171 for (offset_type I = 0; I < NumBuckets; ++I) { in Emit() 216 LE.write<offset_type>(NumBuckets); in Emit() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | StringMap.h | 38 unsigned NumBuckets = 0; variable 46 : TheTable(RHS.TheTable), NumBuckets(RHS.NumBuckets), in StringMapImpl() 50 RHS.NumBuckets = 0; in StringMapImpl() 91 unsigned getNumBuckets() const { return NumBuckets; } in getNumBuckets() 99 std::swap(NumBuckets, Other.NumBuckets); in swap() 145 init(RHS.NumBuckets); in StringMap() 146 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1), in StringMap() 147 *RHSHashTable = (unsigned *)(RHS.TheTable + NumBuckets + 1); in StringMap() 151 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { in StringMap() 183 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { in ~StringMap() [all …]
|
| H A D | DenseMap.h | 104 auto NumBuckets = getMinBucketToReserveForEntries(NumEntries); in reserve() local 106 if (NumBuckets > getNumBuckets()) in reserve() 107 grow(NumBuckets); in reserve() 579 unsigned NumBuckets = getNumBuckets(); in InsertIntoBucketImpl() local 580 if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) { in InsertIntoBucketImpl() 581 this->grow(NumBuckets * 2); in InsertIntoBucketImpl() 583 NumBuckets = getNumBuckets(); in InsertIntoBucketImpl() 584 } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <= in InsertIntoBucketImpl() 585 NumBuckets/8)) { in InsertIntoBucketImpl() 586 this->grow(NumBuckets); in InsertIntoBucketImpl() [all …]
|
| H A D | FoldingSet.h | 121 unsigned NumBuckets; variable 163 return NumBuckets * 2; in capacity() 448 iterator end() { return iterator(Buckets+NumBuckets); } in end() 453 const_iterator end() const { return const_iterator(Buckets+NumBuckets); } in end() 458 return bucket_iterator(Buckets + (hash & (NumBuckets-1))); in bucket_begin() 462 return bucket_iterator(Buckets + (hash & (NumBuckets-1)), true); in bucket_end()
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFUnitIndex.cpp | 111 NumBuckets = IndexData.getU32(OffsetPtr); in parse() 116 OS << format("version = %u, units = %u, slots = %u\n\n", Version, NumUnits, NumBuckets); in dump() 123 Header.NumBuckets = 0; in parse() 141 Offset, Header.NumBuckets * (8 + 4) + in parseImpl() 145 Rows = std::make_unique<Entry[]>(Header.NumBuckets); in parseImpl() 152 for (unsigned i = 0; i != Header.NumBuckets; ++i) in parseImpl() 156 for (unsigned i = 0; i != Header.NumBuckets; ++i) { in parseImpl() 241 for (unsigned i = 0; i != Header.NumBuckets; ++i) { in dump() 285 for (uint32_t i = 0; i != Header.NumBuckets; ++i) in getFromOffset() 307 uint64_t Mask = Header.NumBuckets - 1; in getFromHash()
|
| H A D | DWARFVerifier.cpp | 991 uint32_t NumBuckets = AccelTable.getNumBuckets(); in verifyAppleAccelTable() local 996 uint64_t HashesBase = BucketsOffset + NumBuckets * 4; in verifyAppleAccelTable() 998 for (uint32_t BucketIdx = 0; BucketIdx < NumBuckets; ++BucketIdx) { in verifyAppleAccelTable() 1043 NumBuckets ? (Hash % NumBuckets) : UINT32_MAX; in verifyAppleAccelTable()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFUnitIndex.h | 104 uint32_t NumBuckets = 0; member 171 explicit operator bool() const { return Header.NumBuckets; } 186 return ArrayRef(Rows.get(), Header.NumBuckets); in getRows() 190 return MutableArrayRef(Rows.get(), Header.NumBuckets); in getMutableRows()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Lex/ |
| H A D | HeaderMap.h | 46 unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets); in forEachKey() local 48 for (unsigned Bucket = 0; Bucket < NumBuckets; ++Bucket) { in forEachKey()
|
| H A D | HeaderMapTypes.h | 34 uint32_t NumBuckets; // Number of buckets (always a power of 2). member
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | GlobalsStream.cpp | 157 uint32_t NumBuckets = 0; in readGSIHashBuckets() local 159 NumBuckets += llvm::popcount(B); in readGSIHashBuckets() 162 if (auto EC = Reader.readArray(HashBuckets, NumBuckets)) in readGSIHashBuckets()
|
| H A D | GSIStreamBuilder.cpp | 136 Header.NumBuckets = HashBitmap.size() * 4 + HashBuckets.size() * 4; in commit()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | GlobalsStream.h | 63 uint32_t getNumBuckets() const { return HashHdr->NumBuckets; } in getNumBuckets()
|
| H A D | RawTypes.h | 36 support::ulittle32_t NumBuckets; member
|
| /openbsd-src/gnu/llvm/clang/lib/Serialization/ |
| H A D | MultiOnDiskHashTable.h | 66 OnDiskTable(file_type File, unsigned NumBuckets, unsigned NumEntries, in OnDiskTable() 70 Table(NumBuckets, NumEntries, Buckets, Payload, Base, InfoObj) {} in OnDiskTable()
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/ |
| H A D | IdentifierTable.cpp | 455 unsigned NumBuckets = HashTable.getNumBuckets(); in PrintStats() local 457 unsigned NumEmptyBuckets = NumBuckets-NumIdentifiers; in PrintStats() 474 NumIdentifiers/(double)NumBuckets); in PrintStats()
|