Home
last modified time | relevance | path

Searched refs:numShards (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/mlir/lib/Support/
DStorageUniquer.cpp107 ParametricStorageUniquer(size_t numShards = 8) in ParametricStorageUniquer() argument
108 : shards(new std::atomic<Shard *>[numShards]), numShards(numShards) { in ParametricStorageUniquer()
109 assert(llvm::isPowerOf2_64(numShards) && in ParametricStorageUniquer()
111 for (size_t i = 0; i < numShards; i++) in ParametricStorageUniquer()
116 for (size_t i = 0; i != numShards; ++i) in ~ParametricStorageUniquer()
166 unsigned shardNum = hashValue & (numShards - 1); in getShard()
185 for (size_t i = 0; i != numShards; ++i) { in getShardFor()
205 size_t numShards; member in __anonb14bee2a0111::ParametricStorageUniquer
210 ParametricStorageUniquer(size_t numShards = 0) {}
/external/llvm-project/lld/COFF/
DICF.cpp227 const size_t numShards = 256; in forEachClass() local
228 size_t step = chunks.size() / numShards; in forEachClass()
229 size_t boundaries[numShards + 1]; in forEachClass()
231 boundaries[numShards] = chunks.size(); in forEachClass()
232 parallelForEachN(1, numShards, [&](size_t i) { in forEachClass()
235 parallelForEachN(1, numShards + 1, [&](size_t i) { in forEachClass()
/external/llvm-project/llvm/utils/lit/lit/
Dcl_arguments.py198 if opts.numShards or opts.runShard:
199 if not opts.numShards or not opts.runShard:
201 if opts.runShard > opts.numShards:
203 opts.shard = (opts.runShard, opts.numShards)
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java218 private static List<Shard> generateFourByteShards(int numShards, long[] expected) {
219 assertEquals(numShards, expected.length);
220 List<Shard> shards = new ArrayList<Shard>(numShards);
222 long increment = lim / numShards;
223 assertTrue(lim % numShards == 0);
224 for (int i = 0; i < numShards; i++) {
/external/llvm-project/lld/ELF/
DICF.cpp419 const size_t numShards = 256; in forEachClass() local
420 size_t step = sections.size() / numShards; in forEachClass()
421 size_t boundaries[numShards + 1]; in forEachClass()
423 boundaries[numShards] = sections.size(); in forEachClass()
425 parallelForEachN(1, numShards, [&](size_t i) { in forEachClass()
429 parallelForEachN(1, numShards + 1, [&](size_t i) { in forEachClass()
DSyntheticSections.h926 return hash >> (31 - llvm::countTrailingZeros(numShards)); in getShardId()
933 constexpr static size_t numShards = 32; variable
935 size_t shardOffsets[numShards];
DSyntheticSections.cpp56 constexpr size_t MergeNoTailSection::numShards; member in MergeNoTailSection
2791 constexpr size_t numShards = 32; in createSymbols() local
2795 numShards)); in createSymbols()
2798 std::vector<DenseMap<CachedHashStringRef, size_t>> map(numShards); in createSymbols()
2799 size_t shift = 32 - countTrailingZeros(numShards); in createSymbols()
2802 std::vector<std::vector<GdbSymbol>> symbols(numShards); in createSymbols()
3230 for (size_t i = 0; i < numShards; ++i) in writeTo()
3244 for (size_t i = 0; i < numShards; ++i) in finalizeContents()
3252 numShards)); in finalizeContents()
3269 for (size_t i = 0; i < numShards; ++i) { in finalizeContents()
/external/boringssl/src/util/
Dall_tests.go60 shard, numShards int member
283 if t.numShards == 0 {
287 return fmt.Sprintf(" [shard %d/%d]", t.shard+1, t.numShards)
379 shards[i].numShards = len(shards)