Home
last modified time | relevance | path

Searched refs:threadPool (Results 1 – 9 of 9) sorted by relevance

/llvm-project/mlir/include/mlir/IR/
H A DThreading.h69 llvm::ThreadPoolInterface &threadPool = context->getThreadPool(); in failableParallelForEach() local
70 llvm::ThreadPoolTaskGroup tasksGroup(threadPool); in failableParallelForEach()
71 size_t numActions = std::min(numElements, threadPool.getMaxConcurrency()); in failableParallelForEach()
/llvm-project/mlir/lib/CAPI/IR/
H A DSupport.cpp31 void mlirLlvmThreadPoolDestroy(MlirLlvmThreadPool threadPool) { in mlirLlvmThreadPoolDestroy() argument
32 delete unwrap(threadPool); in mlirLlvmThreadPoolDestroy()
H A DIR.cpp112 MlirLlvmThreadPool threadPool) { in mlirContextSetThreadPool()
113 unwrap(context)->setThreadPool(*unwrap(threadPool)); in mlirContextSetThreadPool()
111 mlirContextSetThreadPool(MlirContext context,MlirLlvmThreadPool threadPool) mlirContextSetThreadPool() argument
/llvm-project/mlir/lib/Tools/mlir-opt/
H A DMlirOptMain.cpp512 llvm::ThreadPoolInterface *threadPool) { in registerAndParseCLIOptions()
520 if (threadPool) in printRegisteredDialects()
521 context.setThreadPool(*threadPool); in printRegisteredDialects()
613 ThreadPoolInterface *threadPool = nullptr;
621 threadPool = &threadPoolCtx.getThreadPool();
626 threadPool);
446 processBuffer(raw_ostream & os,std::unique_ptr<MemoryBuffer> ownedBuffer,const MlirOptMainConfig & config,DialectRegistry & registry,llvm::ThreadPoolInterface * threadPool) processBuffer() argument
536 ThreadPoolInterface *threadPool = nullptr; MlirOptMain() local
/llvm-project/mlir/lib/IR/
H A DMLIRContext.cpp173 llvm::ThreadPoolInterface *threadPool = nullptr; member in mlir::MLIRContextImpl
274 threadPool = ownedThreadPool.get();
608 assert(impl->threadPool); in disableMultithreading()
609 impl->threadPool = nullptr; in disableMultithreading()
612 } else if (!impl->threadPool) { in disableMultithreading()
616 impl->threadPool = impl->ownedThreadPool.get(); in disableMultithreading()
623 impl->threadPool = &pool; in disableMultithreading()
630 assert(impl->threadPool && in setThreadPool()
632 return impl->threadPool->getMaxConcurrency(); in setThreadPool()
641 assert(impl->threadPool in getNumThreads()
[all...]
/llvm-project/mlir/lib/ExecutionEngine/
H A DAsyncRuntime.cpp51 threadPool.wait(); // wait for the completion of all async tasks in ~AsyncRuntime()
60 llvm::ThreadPoolInterface &getThreadPool() { return threadPool; } in getThreadPool()
75 llvm::DefaultThreadPool threadPool; member in mlir::runtime::__anone5fff9370111::AsyncRuntime
/llvm-project/lld/MachO/
H A DWriter.cpp69 DefaultThreadPool threadPool; global() member in __anonf2ed8e120111::Writer
/llvm-project/mlir/include/mlir-c/
H A DIR.h163 MlirLlvmThreadPool threadPool);
/llvm-project/mlir/test/CAPI/
H A Dir.c2368 MlirLlvmThreadPool threadPool = mlirLlvmThreadPoolCreate(); in testExplicitThreadPools() local
2373 mlirContextSetThreadPool(context, threadPool); in testExplicitThreadPools()
2376 mlirLlvmThreadPoolDestroy(threadPool); in testExplicitThreadPools()