/llvm-project/libcxx/test/std/thread/thread.jthread/ |
H A D | hardware_concurrency.pass.cpp | 13 // [[nodiscard]] static unsigned int hardware_concurrency() noexcept; 22 static_assert(noexcept(std::jthread::hardware_concurrency())); 25 std::same_as<unsigned int> decltype(auto) result = std::jthread::hardware_concurrency(); in main() 26 assert(result == std::thread::hardware_concurrency()); in main()
|
H A D | nodiscard.verify.cpp | 18 // [[nodiscard]] static unsigned int hardware_concurrency() noexcept; 29 jt.hardware_concurrency(); // expected-warning {{ignoring return value of function}} in test()
|
/llvm-project/llvm/unittests/Debuginfod/ |
H A D | HTTPServerTests.cpp | 95 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 119 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 138 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 170 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 206 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 223 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 260 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F() 292 DefaultThreadPool Pool(hardware_concurrency(1)); in TEST_F()
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | thread.h | 103 static unsigned hardware_concurrency() { in hardware_concurrency() function 104 return std::thread::hardware_concurrency(); in hardware_concurrency() 191 static unsigned hardware_concurrency() { 192 return std::thread::hardware_concurrency(); 237 static unsigned hardware_concurrency() { return 1; }; in hardware_concurrency() function
|
H A D | raw_socket_stream.h | 113 int MaxBacklog = llvm::hardware_concurrency().compute_thread_count());
|
H A D | Threading.h | 155 /// resources. To be used for workloads where hardware_concurrency() proves to 158 /// back to hardware_concurrency(). Returns 1 when LLVM is configured with 184 inline ThreadPoolStrategy hardware_concurrency(unsigned ThreadCount = 0) { 190 /// Like hardware_concurrency() above, but builds a strategy 194 inline ThreadPoolStrategy hardware_concurrency(StringRef Num) { 196 get_threadpool_strategy(Num, hardware_concurrency()); 199 return hardware_concurrency(); 247 /// thread::hardware_concurrency(), which includes hyperthreads).
|
H A D | ThreadPool.h | 130 StdThreadPool(ThreadPoolStrategy S = hardware_concurrency());
|
/llvm-project/llvm/unittests/Support/ |
H A D | ThreadPool.cpp | 188 DefaultThreadPool Pool(hardware_concurrency(2)); in TYPED_TEST() 204 DefaultThreadPool Pool(hardware_concurrency(2)); in TYPED_TEST() 216 DefaultThreadPool Pool(hardware_concurrency(2)); in TYPED_TEST() 250 ThreadPoolStrategy S = hardware_concurrency(2); in TYPED_TEST() 323 ThreadPoolStrategy S = hardware_concurrency(2); in TYPED_TEST() 443 if (llvm::hardware_concurrency().compute_thread_count() < 4) in TYPED_TEST()
|
H A D | Threading.cpp | 44 hardware_concurrency().compute_thread_count()); in TEST()
|
/llvm-project/llvm/lib/Support/ |
H A D | Threading.cpp | 99 return llvm::hardware_concurrency(); in get_threadpool_strategy() 111 ThreadPoolStrategy S = llvm::hardware_concurrency(); in get_threadpool_strategy()
|
H A D | Parallel.cpp |
|
/llvm-project/libcxx/include/__thread/ |
H A D | jthread.h | 112 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static unsigned int hardware_concurrency() noexcept { in hardware_concurrency() 113 return thread::hardware_concurrency(); 110 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static unsigned int hardware_concurrency() noexcept { hardware_concurrency() function
|
H A D | thread.h | 192 static unsigned hardware_concurrency() _NOEXCEPT;
|
/llvm-project/libcxx/src/ |
H A D | thread.cpp | 64 unsigned thread::hardware_concurrency() noexcept { in hardware_concurrency() function in thread 84 # warning hardware_concurrency not yet implemented in hardware_concurrency()
|
/llvm-project/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.static/ |
H A D | hardware_concurrency.pass.cpp | 24 assert(std::thread::hardware_concurrency() > 0); in main()
|
/llvm-project/bolt/lib/Core/ |
H A D | ParallelUtilities.cpp | 29 cl::init(hardware_concurrency().compute_thread_count()), 111 llvm::hardware_concurrency(ThreadsCount)); in getThreadPool()
|
/llvm-project/libcxxabi/test/ |
H A D | test_exception_storage.threads.pass.cpp | 56 int num_threads = std::thread::hardware_concurrency(); in main()
|
/llvm-project/llvm/tools/llvm-debuginfod/ |
H A D | llvm-debuginfod.cpp | 132 DefaultThreadPool Pool(hardware_concurrency(MaxConcurrency)); in llvm_debuginfod_main()
|
/llvm-project/clang/lib/Tooling/ |
H A D | AllTUsExecution.cpp | 118 llvm::DefaultThreadPool Pool(llvm::hardware_concurrency(ThreadCount)); in execute()
|
/llvm-project/libcxx/include/ |
H A D | thread | 44 static unsigned hardware_concurrency() noexcept;
|
/llvm-project/llvm/examples/SpeculativeJIT/ |
H A D | SpeculativeJIT.cpp | 135 DefaultThreadPool CompileThreads{llvm::hardware_concurrency(NumThreads)};
|
/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerUtil.cpp | 220 unsigned N = std::thread::hardware_concurrency(); in NumberOfCpuCores()
|
/llvm-project/llvm/tools/llvm-reduce/deltas/ |
H A D | Delta.cpp | 226 std::make_unique<DefaultThreadPool>(hardware_concurrency(NumJobs)); in runDeltaPass()
|
/llvm-project/llvm/lib/Support/Unix/ |
H A D | Threading.inc | 322 // Guard against std::thread::hardware_concurrency() returning 0. 323 if (unsigned Val = std::thread::hardware_concurrency())
|
/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageReport.cpp | 478 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in prepareFileReports() 595 ThreadPoolStrategy PoolS = hardware_concurrency(Options.NumThreads); in prepareDirectoryReports()
|