Home
last modified time | relevance | path

Searched refs:ThreadPool (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Support/
H A DThreadPool.cpp35 ThreadPool::ThreadPool(ThreadPoolStrategy S) in ThreadPool() function in ThreadPool
38 void ThreadPool::grow(int requested) { in grow()
143 void ThreadPool::wait() { in wait()
151 void ThreadPool::wait(ThreadPoolTaskGroup &Group) { in wait()
168 bool ThreadPool::isWorkerThread() const { in isWorkerThread()
178 ThreadPool::~ThreadPool() { in ~ThreadPool()
192 ThreadPool::ThreadPool(ThreadPoolStrategy S) : MaxThreadCount(1) { in ThreadPool() function in ThreadPool
200 void ThreadPool::wait() { in wait()
209 void ThreadPool::wait(ThreadPoolTaskGroup &) { in wait()
215 bool ThreadPool::isWorkerThread() const { in isWorkerThread()
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DThreadPool.cpp117 ThreadPool Pool; in TEST_F()
137 ThreadPool Pool; in TEST_F()
147 ThreadPool Pool; in TEST_F()
162 ThreadPool Pool(hardware_concurrency(2)); in TEST_F()
178 ThreadPool Pool(hardware_concurrency(2)); in TEST_F()
190 ThreadPool Pool(hardware_concurrency(2)); in TEST_F()
206 ThreadPool Pool; in TEST_F()
227 ThreadPool Pool(S); in TEST_F()
265 ThreadPool Pool; in TEST_F()
300 ThreadPool Pool(S); in TEST_F()
[all …]
H A DTaskQueueTest.cpp25 ThreadPool TP(hardware_concurrency(1)); in TEST_F()
69 ThreadPool TP(hardware_concurrency(1)); in TEST_F()
99 ThreadPool TP(hardware_concurrency(1)); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DThreadPool.h52 class ThreadPool {
58 ThreadPool(ThreadPoolStrategy S = hardware_concurrency());
61 ~ThreadPool();
227 ThreadPoolTaskGroup(ThreadPool &Pool) : Pool(Pool) {} in ThreadPoolTaskGroup()
244 ThreadPool &Pool;
H A DTaskQueue.h69 TaskQueue(ThreadPool &Scheduler) : Scheduler(Scheduler) { (void)Scheduler; } in TaskQueue()
124 ThreadPool &Scheduler;
/llvm-project-15.0.7/llvm/unittests/Debuginfod/
H A DHTTPServerTests.cpp94 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
118 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
137 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
169 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
205 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
222 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
259 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
291 ThreadPool Pool(hardware_concurrency(1)); in TEST_F()
/llvm-project-15.0.7/bolt/lib/Core/
H A DParallelUtilities.cpp52 std::unique_ptr<ThreadPool> ThreadPoolPtr;
104 ThreadPool &getThreadPool() { in getThreadPool()
108 ThreadPoolPtr = std::make_unique<ThreadPool>( in getThreadPool()
147 ThreadPool &Pool = getThreadPool(); in runOnEachFunction()
204 ThreadPool &Pool = getThreadPool(); in runOnEachFunctionWithUniqueAllocId()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DMLIRContext.h19 class ThreadPool; variable
148 void setThreadPool(llvm::ThreadPool &pool);
161 llvm::ThreadPool &getThreadPool();
H A DThreading.h69 llvm::ThreadPool &threadPool = context->getThreadPool(); in failableParallelForEach()
/llvm-project-15.0.7/llvm/include/llvm/Debuginfod/
H A DDebuginfod.h80 class ThreadPool; variable
118 ThreadPool &Pool;
128 ThreadPool &Pool, double MinInterval);
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DParallelUtilities.h31 class ThreadPool; variable
54 ThreadPool &getThreadPool();
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DDelta.cpp277 std::unique_ptr<ThreadPool> ChunkThreadPoolPtr; in runDeltaPass()
280 std::make_unique<ThreadPool>(hardware_concurrency(NumJobs)); in runDeltaPass()
309 ThreadPool &ChunkThreadPool = *ChunkThreadPoolPtr; in runDeltaPass()
/llvm-project-15.0.7/mlir/lib/IR/
H A DMLIRContext.cpp167 llvm::ThreadPool *threadPool = nullptr;
171 std::unique_ptr<llvm::ThreadPool> ownedThreadPool;
243 ownedThreadPool = std::make_unique<llvm::ThreadPool>(); in MLIRContextImpl()
521 impl->ownedThreadPool = std::make_unique<llvm::ThreadPool>(); in disableMultithreading()
526 void MLIRContext::setThreadPool(llvm::ThreadPool &pool) { in setThreadPool()
544 llvm::ThreadPool &MLIRContext::getThreadPool() { in getThreadPool()
/llvm-project-15.0.7/mlir/lib/Tools/mlir-opt/
H A DMlirOptMain.cpp101 llvm::ThreadPool *threadPool) { in processBuffer()
152 ThreadPool *threadPool = nullptr; in MlirOptMain()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DBackgroundIndexTests.cpp776 AsyncTaskRunner ThreadPool; in TEST() local
778 ThreadPool.runAsync("worker", [&] { Q.work(); }); in TEST()
785 ThreadPool.wait(); in TEST()
883 AsyncTaskRunner ThreadPool; in TEST() local
885 ThreadPool.runAsync("worker", [&] { Q.work([&] { Q.stop(); }); }); in TEST()
886 ThreadPool.wait(); in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DParallelCG.cpp55 ThreadPool CodegenThreadPool(hardware_concurrency(OSs.size())); in splitCodeGen()
/llvm-project-15.0.7/llvm/tools/llvm-debuginfod/
H A Dllvm-debuginfod.cpp77 ThreadPool Pool(hardware_concurrency(MaxConcurrency)); in main()
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DDebugger.h52 class ThreadPool; variable
387 static llvm::ThreadPool &GetThreadPool();
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/unittests/Support/
H A DBUILD.gn89 "ThreadPool.cpp",
/llvm-project-15.0.7/mlir/lib/ExecutionEngine/
H A DAsyncRuntime.cpp62 llvm::ThreadPool &getThreadPool() { return threadPool; } in getThreadPool()
77 llvm::ThreadPool threadPool;
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/
H A DFindAllSymbolsMain.cpp92 llvm::ThreadPool Pool; in Merge()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DBackground.h224 AsyncTaskRunner ThreadPool; variable
H A DBackground.cpp108 ThreadPool.runAsync("background-worker-" + llvm::Twine(I + 1),
118 ThreadPool.wait(); in ~BackgroundIndex()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DAllTUsExecution.cpp118 llvm::ThreadPool Pool(llvm::hardware_concurrency(ThreadCount)); in execute()
/llvm-project-15.0.7/llvm/examples/SpeculativeJIT/
H A DSpeculativeJIT.cpp139 ThreadPool CompileThreads{llvm::hardware_concurrency(NumThreads)};

12