Home
last modified time | relevance | path

Searched refs:Pool (Results 1 – 25 of 69) sorted by relevance

123

/llvm-project/llvm/unittests/Support/
H A DThreadPool.cpp143 DefaultThreadPool Pool; in TYPED_TEST() local
145 Pool.async([this, &checked_in] { in TYPED_TEST()
152 Pool.wait(); in TYPED_TEST()
163 DefaultThreadPool Pool; in TYPED_TEST() local
165 Pool.async(TestFunc, std::ref(checked_in), i); in TYPED_TEST()
167 Pool.wait(); in TYPED_TEST()
173 DefaultThreadPool Pool; in TYPED_TEST() local
175 Pool.async([this, &i] { in TYPED_TEST()
179 Pool.async([&i] { ++i; }); in TYPED_TEST()
182 Pool in TYPED_TEST()
188 DefaultThreadPool Pool(hardware_concurrency(2)); TYPED_TEST() local
204 DefaultThreadPool Pool(hardware_concurrency(2)); TYPED_TEST() local
216 DefaultThreadPool Pool(hardware_concurrency(2)); TYPED_TEST() local
232 DefaultThreadPool Pool; TYPED_TEST() local
253 DefaultThreadPool Pool(S); TYPED_TEST() local
291 DefaultThreadPool Pool; TYPED_TEST() local
326 DefaultThreadPool Pool(S); TYPED_TEST() local
381 DefaultThreadPool Pool(S); RunOnAllSockets() local
[all...]
H A DParallelTest.cpp154 DefaultThreadPool Pool; in TEST()
156 Pool.async(Fn); in TEST()
157 Pool.async(Fn); in TEST()
158 Pool.async(Fn); in TEST()
159 Pool.async(Fn); in TEST()
160 Pool.async(Fn); in TEST()
161 Pool.async(Fn); in TEST()
163 Pool.wait(); in TEST() local
/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DCXXPredicates.cpp19 CXXPredicateCode::getSorted(const CXXPredicateCodePool &Pool) { in getSorted() argument
21 std::transform(Pool.begin(), Pool.end(), std::back_inserter(Out), in getSorted()
27 const CXXPredicateCode &CXXPredicateCode::get(CXXPredicateCodePool &Pool, in get() argument
32 if (auto It = Pool.find(CodeHash); It != Pool.end()) in get()
35 const auto ID = Pool.size(); in get()
39 Pool[CodeHash] = std::move(OwnedData); in get()
H A DCombinerUtils.cpp18 static StringSet<> Pool; in insertStrRef() local
19 auto [It, Inserted] = Pool.insert(S); in insertStrRef()
H A DCXXPredicates.h44 getSorted(const CXXPredicateCodePool &Pool);
48 static const CXXPredicateCode &get(CXXPredicateCodePool &Pool,
/llvm-project/llvm/unittests/Debuginfod/
H A DHTTPServerTests.cpp95 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() local
96 Pool.async([&]() { EXPECT_THAT_ERROR(Server.listen(), Succeeded()); }); in TEST_F()
119 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() local
120 Pool.async([&]() { EXPECT_THAT_ERROR(Server.listen(), Succeeded()); }); in TEST_F()
138 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() local
139 Pool.async([&]() { EXPECT_THAT_ERROR(Server.listen(), Succeeded()); }); in TEST_F()
170 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() local
171 Pool.async([&]() { EXPECT_THAT_ERROR(Server.listen(), Succeeded()); }); in TEST_F()
206 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() local
207 Pool.async([&]() { EXPECT_THAT_ERROR(Server.listen(), Succeeded()); }); in TEST_F()
[all …]
/llvm-project/compiler-rt/lib/orc/
H A Dstring_pool.h51 PoolMap Pool; variable
133 assert(Pool.empty() && "Dangling references at pool destruction time");
141 std::tie(I, Added) = Pool.try_emplace(std::move(S), 0);
147 for (auto I = Pool.begin(), E = Pool.end(); I != E;) {
150 Pool.erase(Tmp);
156 return Pool.empty();
/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfStringPool.cpp22 : Pool(A), Prefix(Prefix), in DwarfStringPool()
27 auto I = Pool.insert(std::make_pair(Str, EntryTy())); in getEntryImpl()
77 if (Pool.empty()) in emit()
85 Entries.reserve(Pool.size()); in emit()
87 for (const auto &E : Pool) in emit()
115 for (const auto &Entry : Pool) { in emit()
H A DAddressPool.cpp22 Pool.insert(std::make_pair(Sym, AddressPoolEntry(Pool.size(), TLS))); in getIndex()
59 SmallVector<const MCExpr *, 64> Entries(Pool.size()); in emit()
61 for (const auto &I : Pool) in emit()
H A DDwarfStringPool.h29 StringMap<EntryTy, BumpPtrAllocator &> Pool; variable
49 bool empty() const { return Pool.empty(); } in empty()
51 unsigned size() const { return Pool.size(); } in size()
H A DAddressPool.h30 DenseMap<const MCSymbol *, AddressPoolEntry> Pool; variable
47 bool isEmpty() { return Pool.empty(); } in isEmpty()
/llvm-project/bolt/lib/Core/
H A DParallelUtilities.cpp151 ThreadPoolInterface &Pool = getThreadPool(); in runOnEachFunction()
161 Pool.async(runBlock, BlockBegin, std::next(It)); in runOnEachFunction()
166 Pool.async(runBlock, BlockBegin, BC.getBinaryFunctions().end());
167 Pool.wait(); in runOnEachFunctionWithUniqueAllocId()
220 ThreadPoolInterface &Pool = getThreadPool(); in runOnEachFunctionWithUniqueAllocId()
230 Pool.async(runBlock, BlockBegin, std::next(It), AllocId); in runOnEachFunctionWithUniqueAllocId()
239 Pool.async(runBlock, BlockBegin, BC.getBinaryFunctions().end(), AllocId); in runOnEachFunctionWithUniqueAllocId()
241 Pool.wait();
148 ThreadPoolInterface &Pool = getThreadPool(); runOnEachFunction() local
217 ThreadPoolInterface &Pool = getThreadPool(); runOnEachFunctionWithUniqueAllocId() local
/llvm-project/clang/tools/libclang/
H A DCXString.cpp137 for (std::vector<CXStringBuf *>::iterator I = Pool.begin(), E = Pool.end(); in ~CXStringPool()
144 if (Pool.empty()) in getCXStringBuf()
147 CXStringBuf *Buf = Pool.back(); in getCXStringBuf()
149 Pool.pop_back(); in getCXStringBuf()
158 TU->StringPool->Pool.push_back(this); in dispose()
/llvm-project/llvm/include/llvm/Support/
H A DThreadPool.h267 ThreadPoolTaskGroup(ThreadPoolInterface &Pool) : Pool(Pool) {} in ThreadPoolTaskGroup() argument
276 return Pool.async(*this, std::forward<Function>(F), in async()
281 void wait() { Pool.wait(*this); } in wait()
284 ThreadPoolInterface &Pool;
/llvm-project/llvm/include/llvm/CodeGen/PBQP/
H A DCostAllocator.h36 PoolEntry(ValuePool &Pool, ValueKeyT Value) in PoolEntry() argument
37 : Pool(Pool), Value(std::move(Value)) {} in PoolEntry()
39 ~PoolEntry() { Pool.removeEntry(this); } in ~PoolEntry()
44 ValuePool &Pool;
/llvm-project/llvm/tools/llvm-debuginfod/
H A Dllvm-debuginfod.cpp132 DefaultThreadPool Pool(hardware_concurrency(MaxConcurrency)); in llvm_debuginfod_main()
134 DebuginfodCollection Collection(Paths, Log, Pool, MinInterval); in llvm_debuginfod_main()
144 Pool.async([&]() { ExitOnErr(Server.Server.listen()); }); in llvm_debuginfod_main()
145 Pool.async([&]() { in llvm_debuginfod_main()
156 Pool.wait(); in llvm_debuginfod_main()
130 DefaultThreadPool Pool(hardware_concurrency(MaxConcurrency)); llvm_debuginfod_main() local
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DSymbolStringPool.h60 PoolMap Pool; variable
285 assert(Pool.empty() && "Dangling references at pool destruction time");
293 std::tie(I, Added) = Pool.try_emplace(S, 0);
299 for (auto I = Pool.begin(), E = Pool.end(); I != E;) {
302 Pool.erase(Tmp);
308 return Pool.empty();
/llvm-project/lldb/source/Utility/
H A DConstString.cpp30 class Pool { class
201 static Pool &StringPool() { in StringPool()
203 static Pool *g_string_pool = nullptr; in StringPool()
206 []() { g_string_pool = new Pool(); }); in StringPool()
244 return Pool::GetConstCStringLength(m_string); in GetLength()
/llvm-project/llvm/include/llvm/DWP/
H A DDWPStringPool.h35 DenseMap<const char *, uint32_t, CStrDenseMapInfo> Pool; variable
44 auto Pair = Pool.insert(std::make_pair(Str, Offset)); in getOffset()
/llvm-project/clang/lib/Sema/
H A DParsedAttr.cpp101 void AttributePool::takeFrom(ParsedAttributesView &List, AttributePool &Pool) { in takePool()
102 assert(&Pool != this && "AttributePool can't take attributes from itself");
103 llvm::for_each(List.AttrList, [&Pool](ParsedAttr *A) { Pool.remove(A); }); in takeFrom() argument
/llvm-project/clang/lib/Tooling/
H A DAllTUsExecution.cpp118 llvm::DefaultThreadPool Pool(llvm::hardware_concurrency(ThreadCount)); in execute() local
120 Pool.async( in execute()
142 Pool.wait(); in execute()
/llvm-project/lldb/scripts/
H A Dreproducer-replay.py3 from multiprocessing import Pool
118 pool = Pool(args.threads)
/llvm-project/compiler-rt/lib/scudo/standalone/tests/
H A Drelease_test.cpp638 std::unique_ptr<BufferPool> Pool(new BufferPool()); in TEST() local
642 BufferPool::Buffer Buffer = Pool->getBuffer(StaticBufferNumElements); in TEST()
643 EXPECT_TRUE(Pool->isStaticBufferTestOnly(Buffer)); in TEST()
648 BufferPool::Buffer Buffer = Pool->getBuffer(StaticBufferNumElements); in TEST()
649 EXPECT_FALSE(Pool->isStaticBufferTestOnly(Buffer)); in TEST()
651 Pool->releaseBuffer(Buffer); in TEST()
653 Pool->releaseBuffer(Buffer); in TEST()
/llvm-project/llvm/include/llvm/Debuginfod/
H A DDebuginfod.h138 ThreadPoolInterface &Pool; variable
148 ThreadPoolInterface &Pool, double MinInterval);
/llvm-project/offload/plugins-nextgen/amdgpu/src/
H A Drtl.cpp1765 for (AMDGPUMemoryPoolTy *Pool : AllMemoryPools) in AMDHostDeviceTy()
1766 delete Pool; in AMDHostDeviceTy()
2670 for (AMDGPUMemoryPoolTy *Pool : AllMemoryPools) { in obtainInfoImpl()
2673 if (Pool->isGlobal()) in obtainInfoImpl()
2675 else if (Pool->isReadOnly()) in obtainInfoImpl()
2677 else if (Pool->isPrivate()) in obtainInfoImpl()
2679 else if (Pool->isGroup()) in obtainInfoImpl()
2684 Info.add<InfoLevel2>(std::string("Pool ") + TmpStr); in obtainInfoImpl()
2686 if (Pool->isGlobal()) { in obtainInfoImpl()
2687 if (Pool in obtainInfoImpl()
[all...]

123