Home
last modified time | relevance | path

Searched refs:ThreadCount (Results 1 – 24 of 24) sorted by relevance

/llvm-project-15.0.7/clang/lib/Tooling/
H A DAllTUsExecution.cpp65 const CompilationDatabase &Compilations, unsigned ThreadCount, in AllTUsToolExecutor() argument
68 Context(Results.get()), ThreadCount(ThreadCount) {} in AllTUsToolExecutor()
71 CommonOptionsParser Options, unsigned ThreadCount, in AllTUsToolExecutor() argument
76 ThreadCount(ThreadCount) {} in AllTUsToolExecutor()
118 llvm::ThreadPool Pool(llvm::hardware_concurrency(ThreadCount)); in execute()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DParallelCG.cpp56 int ThreadCount = 0; in splitCodeGen() local
72 BCOSs[ThreadCount]->write(BC.begin(), BC.size()); in splitCodeGen()
73 BCOSs[ThreadCount]->flush(); in splitCodeGen()
76 llvm::raw_pwrite_stream *ThreadOS = OSs[ThreadCount++]; in splitCodeGen()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DThreading.h162 heavyweight_hardware_concurrency(unsigned ThreadCount = 0) {
165 S.ThreadsRequested = ThreadCount;
185 inline ThreadPoolStrategy hardware_concurrency(unsigned ThreadCount = 0) {
187 S.ThreadsRequested = ThreadCount;
/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DAllTUsExecution.h33 unsigned ThreadCount,
41 AllTUsToolExecutor(CommonOptionsParser Options, unsigned ThreadCount,
69 unsigned ThreadCount; variable
/llvm-project-15.0.7/llvm/lib/Support/
H A DParallel.cpp44 unsigned ThreadCount = S.compute_thread_count(); in ThreadPoolExecutor() local
47 Threads.reserve(ThreadCount); in ThreadPoolExecutor()
50 Threads[0] = std::thread([this, ThreadCount, S] { in ThreadPoolExecutor()
51 for (unsigned I = 1; I < ThreadCount; ++I) { in ThreadPoolExecutor()
H A DThreadPool.cpp193 int ThreadCount = S.compute_thread_count(); in ThreadPool() local
194 if (ThreadCount != 1) { in ThreadPool()
195 errs() << "Warning: request a ThreadPool with " << ThreadCount in ThreadPool()
/llvm-project-15.0.7/bolt/lib/Core/
H A DParallelUtilities.cpp27 ThreadCount("thread-count", variable
109 llvm::hardware_concurrency(opts::ThreadCount)); in getThreadPool()
142 const unsigned BlocksCount = TasksPerThread * opts::ThreadCount; in runOnEachFunction()
199 const unsigned BlocksCount = TasksPerThread * opts::ThreadCount; in runOnEachFunctionWithUniqueAllocId()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_mac.cpp36 uptr ThreadCount() const override;
75 uptr num_suspended = suspended_threads_list.ThreadCount(); in RunThread()
121 uptr SuspendedThreadsListMac::ThreadCount() const { in ThreadCount() function in __sanitizer::SuspendedThreadsListMac
H A Dsanitizer_stoptheworld_linux_libcdep.cpp93 uptr ThreadCount() const override;
188 for (uptr i = 0; i < suspended_threads_list_.ThreadCount(); i++) { in ResumeAllThreads()
204 for (uptr i = 0; i < suspended_threads_list_.ThreadCount(); i++) in KillAllThreads()
231 return suspended_threads_list_.ThreadCount(); in SuspendAllThreads()
540 uptr SuspendedThreadsListLinux::ThreadCount() const { in ThreadCount() function in __sanitizer::SuspendedThreadsListLinux
H A Dsanitizer_stoptheworld_win.cpp42 uptr ThreadCount() const override;
74 uptr SuspendedThreadsListWindows::ThreadCount() const { in ThreadCount() function in __sanitizer::__anonfe3ecff70111::SuspendedThreadsListWindows
H A Dsanitizer_stoptheworld.h40 virtual uptr ThreadCount() const { UNIMPLEMENTED(); } in ThreadCount() function
H A Dsanitizer_stoptheworld_netbsd_libcdep.cpp56 uptr ThreadCount() const;
321 uptr SuspendedThreadsListNetBSD::ThreadCount() const { in ThreadCount() function in __sanitizer::SuspendedThreadsListNetBSD
/llvm-project-15.0.7/llvm/unittests/DebugInfo/GSYM/
H A DGSYMTest.cpp1337 const uint32_t ThreadCount = 1; in TEST() local
1338 ASSERT_THAT_ERROR(DT.convert(ThreadCount), Succeeded()); in TEST()
1414 const uint32_t ThreadCount = 1; in TEST() local
1415 ASSERT_THAT_ERROR(DT.convert(ThreadCount), Succeeded()); in TEST()
1521 const uint32_t ThreadCount = 1; in TEST() local
1522 ASSERT_THAT_ERROR(DT.convert(ThreadCount), Succeeded()); in TEST()
1626 const uint32_t ThreadCount = 1; in TEST() local
1824 const uint32_t ThreadCount = 1; in TEST() local
2084 const uint32_t ThreadCount = 1; in TEST() local
2263 const uint32_t ThreadCount = 1; in TEST() local
[all …]
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DParallelUtilities.h25 extern cl::opt<unsigned> ThreadCount;
/llvm-project-15.0.7/llvm/tools/llvm-gsymutil/
H A Dllvm-gsymutil.cpp256 auto ThreadCount = in handleObjectFile() local
297 if (auto Err = DT.convert(ThreadCount)) in handleObjectFile()
/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_common.cpp370 for (uptr i = 0; i < suspended_threads.ThreadCount(); i++) { in ProcessThreads()
662 InternalMmapVector<tid_t> threads(suspended_threads.ThreadCount()); in ReportUnsuspendedThreads()
663 for (uptr i = 0; i < suspended_threads.ThreadCount(); ++i) in ReportUnsuspendedThreads()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOBackend.cpp423 unsigned ThreadCount = 0; in splitCodeGen() local
458 std::move(BC), ThreadCount++); in splitCodeGen()
H A DThinLTOCodeGenerator.cpp91 static cl::opt<int> ThreadCount("threads", cl::init(0)); variable
1128 ThreadPool Pool(heavyweight_hardware_concurrency(ThreadCount)); in run()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_rtl_thread.cpp108 int ThreadCount(ThreadState *thr) { in ThreadCount() function
H A Dtsan_rtl.cpp492 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1) in Finalize()
H A Dtsan_rtl.h541 int ThreadCount(ThreadState *thr);
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_thread.cpp104 int ThreadCount(ThreadState *thr) { in ThreadCount() function
H A Dtsan_rtl.h564 int ThreadCount(ThreadState *thr);
H A Dtsan_rtl.cpp772 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1) in Finalize()