Home
last modified time | relevance | path

Searched refs:NumBuckets (Results 1 – 16 of 16) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DStringMap.cpp47 NumBuckets = 0; in StringMapImpl()
55 NumBuckets = InitSize ? InitSize : 16; in init()
59 TheTable = (StringMapEntryBase **)calloc(NumBuckets+1, in init()
65 TheTable[NumBuckets] = (StringMapEntryBase*)2; in init()
74 unsigned HTSize = NumBuckets; in LookupBucketFor()
77 HTSize = NumBuckets; in LookupBucketFor()
81 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); in LookupBucketFor()
131 unsigned HTSize = NumBuckets; in FindKey()
135 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); in FindKey()
189 assert(NumItems + NumTombstones <= NumBuckets); in RemoveKey()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DStringMap.cpp47 NumBuckets = 0; in StringMapImpl()
65 NumBuckets = NewNumBuckets; in init()
69 TheTable[NumBuckets] = (StringMapEntryBase*)2; in init()
78 unsigned HTSize = NumBuckets; in LookupBucketFor()
81 HTSize = NumBuckets; in LookupBucketFor()
85 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); in LookupBucketFor()
135 unsigned HTSize = NumBuckets; in FindKey()
139 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); in FindKey()
193 assert(NumItems + NumTombstones <= NumBuckets); in RemoveKey()
202 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1); in RehashTable()
[all …]
DFoldingSet.cpp208 static void **GetBucketFor(unsigned Hash, void **Buckets, unsigned NumBuckets) { in GetBucketFor() argument
210 unsigned BucketNum = Hash & (NumBuckets-1); in GetBucketFor()
215 static void **AllocateBuckets(unsigned NumBuckets) { in AllocateBuckets() argument
216 void **Buckets = static_cast<void**>(safe_calloc(NumBuckets + 1, in AllocateBuckets()
219 Buckets[NumBuckets] = reinterpret_cast<void*>(-1); in AllocateBuckets()
231 NumBuckets = 1 << Log2InitSize; in FoldingSetBase()
232 Buckets = AllocateBuckets(NumBuckets); in FoldingSetBase()
237 : Buckets(Arg.Buckets), NumBuckets(Arg.NumBuckets), NumNodes(Arg.NumNodes) { in FoldingSetBase()
239 Arg.NumBuckets = 0; in FoldingSetBase()
246 NumBuckets = RHS.NumBuckets; in operator =()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringMap.h56 unsigned NumBuckets; variable
65 NumBuckets(0), NumItems(0), NumTombstones(0), ItemSize(itemSize) {} in StringMapImpl()
67 : TheTable(RHS.TheTable), NumBuckets(RHS.NumBuckets), in StringMapImpl()
71 RHS.NumBuckets = 0; in StringMapImpl()
110 unsigned getNumBuckets() const { return NumBuckets; } in getNumBuckets()
118 std::swap(NumBuckets, Other.NumBuckets); in swap()
264 init(RHS.NumBuckets); in StringMap()
265 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1), in StringMap()
266 *RHSHashTable = (unsigned *)(RHS.TheTable + NumBuckets + 1); in StringMap()
270 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { in StringMap()
[all …]
DDenseMap.h88 auto NumBuckets = getMinBucketToReserveForEntries(NumEntries); in reserve() local
90 if (NumBuckets > getNumBuckets()) in reserve()
91 grow(NumBuckets); in reserve()
482 unsigned NumBuckets = getNumBuckets(); in InsertIntoBucketImpl() local
483 if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) { in InsertIntoBucketImpl()
484 this->grow(NumBuckets * 2); in InsertIntoBucketImpl()
486 NumBuckets = getNumBuckets(); in InsertIntoBucketImpl()
487 } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <= in InsertIntoBucketImpl()
488 NumBuckets/8)) { in InsertIntoBucketImpl()
489 this->grow(NumBuckets); in InsertIntoBucketImpl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DOnDiskHashTable.h74 offset_type NumBuckets; variable
101 for (size_t I = 0; I < NumBuckets; ++I) in resize()
110 NumBuckets = NewSize; in resize()
128 if (4 * NumEntries >= 3 * NumBuckets) in insert()
129 resize(NumBuckets * 2); in insert()
130 insert(Buckets, NumBuckets, new (BA.Allocate()) Item(Key, Data, InfoObj)); in insert()
136 for (Item *I = Buckets[Hash & (NumBuckets - 1)].Head; I; I = I->Next) in contains()
168 if (TargetNumBuckets != NumBuckets) in Emit()
172 for (offset_type I = 0; I < NumBuckets; ++I) { in Emit()
217 LE.write<offset_type>(NumBuckets); in Emit()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
DDWARFUnitIndex.cpp27 NumBuckets = IndexData.getU32(OffsetPtr); in parse()
32 OS << format("version = %u slots = %u\n\n", Version, NumBuckets); in dump()
39 Header.NumBuckets = 0; in parse()
53 Offset, Header.NumBuckets * (8 + 4) + in parseImpl()
57 Rows = std::make_unique<Entry[]>(Header.NumBuckets); in parseImpl()
63 for (unsigned i = 0; i != Header.NumBuckets; ++i) in parseImpl()
67 for (unsigned i = 0; i != Header.NumBuckets; ++i) { in parseImpl()
136 for (unsigned i = 0; i != Header.NumBuckets; ++i) { in dump()
167 for (uint32_t i = 0; i != Header.NumBuckets; ++i) in getFromOffset()
189 uint64_t Mask = Header.NumBuckets - 1; in getFromHash()
DDWARFVerifier.cpp833 uint32_t NumBuckets = AccelTable.getNumBuckets(); in verifyAppleAccelTable() local
838 uint64_t HashesBase = BucketsOffset + NumBuckets * 4; in verifyAppleAccelTable()
840 for (uint32_t BucketIdx = 0; BucketIdx < NumBuckets; ++BucketIdx) { in verifyAppleAccelTable()
885 NumBuckets ? (Hash % NumBuckets) : UINT32_MAX; in verifyAppleAccelTable()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringMap.h55 unsigned NumBuckets = 0; variable
64 : TheTable(RHS.TheTable), NumBuckets(RHS.NumBuckets), in StringMapImpl()
68 RHS.NumBuckets = 0; in StringMapImpl()
107 unsigned getNumBuckets() const { return NumBuckets; } in getNumBuckets()
115 std::swap(NumBuckets, Other.NumBuckets); in swap()
278 init(RHS.NumBuckets); in StringMap()
279 unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1), in StringMap()
280 *RHSHashTable = (unsigned *)(RHS.TheTable + NumBuckets + 1); in StringMap()
284 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { in StringMap()
316 for (unsigned I = 0, E = NumBuckets; I != E; ++I) { in ~StringMap()
[all …]
DDenseMap.h104 auto NumBuckets = getMinBucketToReserveForEntries(NumEntries); in reserve() local
106 if (NumBuckets > getNumBuckets()) in reserve()
107 grow(NumBuckets); in reserve()
549 unsigned NumBuckets = getNumBuckets(); in InsertIntoBucketImpl() local
550 if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) { in InsertIntoBucketImpl()
551 this->grow(NumBuckets * 2); in InsertIntoBucketImpl()
553 NumBuckets = getNumBuckets(); in InsertIntoBucketImpl()
554 } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <= in InsertIntoBucketImpl()
555 NumBuckets/8)) { in InsertIntoBucketImpl()
556 this->grow(NumBuckets); in InsertIntoBucketImpl()
[all …]
DFoldingSet.h120 unsigned NumBuckets; variable
167 return NumBuckets * 2; in capacity()
413 iterator end() { return iterator(Buckets+NumBuckets); } in end()
418 const_iterator end() const { return const_iterator(Buckets+NumBuckets); } in end()
423 return bucket_iterator(Buckets + (hash & (NumBuckets-1))); in bucket_begin()
427 return bucket_iterator(Buckets + (hash & (NumBuckets-1)), true); in bucket_end()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFUnitIndex.h38 uint32_t NumBuckets = 0; member
86 explicit operator bool() const { return Header.NumBuckets; }
99 return makeArrayRef(Rows.get(), Header.NumBuckets); in getRows()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DGlobalsStream.cpp158 uint32_t NumBuckets = 0; in readGSIHashBuckets() local
160 NumBuckets += countPopulation(B); in readGSIHashBuckets()
163 if (auto EC = Reader.readArray(HashBuckets, NumBuckets)) in readGSIHashBuckets()
DGSIStreamBuilder.cpp99 Header.NumBuckets = HashBitmap.size() * 4 + HashBuckets.size() * 4; in commit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/Native/
DGlobalsStream.h63 uint32_t getNumBuckets() const { return HashHdr->NumBuckets; } in getNumBuckets()
DRawTypes.h36 support::ulittle32_t NumBuckets; member