| /llvm-project/llvm/unittests/Support/ |
| H A D | ThreadPool.cpp | 143 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 D | ParallelTest.cpp | 154 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 D | CXXPredicates.cpp | 19 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 D | CombinerUtils.cpp | 18 static StringSet<> Pool; in insertStrRef() local 19 auto [It, Inserted] = Pool.insert(S); in insertStrRef()
|
| H A D | CXXPredicates.h | 44 getSorted(const CXXPredicateCodePool &Pool); 48 static const CXXPredicateCode &get(CXXPredicateCodePool &Pool,
|
| /llvm-project/llvm/unittests/Debuginfod/ |
| H A D | HTTPServerTests.cpp | 95 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 D | string_pool.h | 51 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 D | DwarfStringPool.cpp | 22 : 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 D | AddressPool.cpp | 22 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 D | DwarfStringPool.h | 29 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 D | AddressPool.h | 30 DenseMap<const MCSymbol *, AddressPoolEntry> Pool; variable 47 bool isEmpty() { return Pool.empty(); } in isEmpty()
|
| /llvm-project/bolt/lib/Core/ |
| H A D | ParallelUtilities.cpp | 151 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 D | CXString.cpp | 137 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 D | ThreadPool.h | 267 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 D | CostAllocator.h | 36 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 D | llvm-debuginfod.cpp | 132 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 D | SymbolStringPool.h | 60 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 D | ConstString.cpp | 30 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 D | DWPStringPool.h | 35 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 D | ParsedAttr.cpp | 101 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 D | AllTUsExecution.cpp | 118 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 D | reproducer-replay.py | 3 from multiprocessing import Pool 118 pool = Pool(args.threads)
|
| /llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | release_test.cpp | 638 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 D | Debuginfod.h | 138 ThreadPoolInterface &Pool; variable 148 ThreadPoolInterface &Pool, double MinInterval);
|
| /llvm-project/offload/plugins-nextgen/amdgpu/src/ |
| H A D | rtl.cpp | 1765 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...] |