| /openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/tests/ |
| H A D | thread_contention.cpp | 45 void runThreadContentionTest(unsigned NumThreads, unsigned NumIterations, in runThreadContentionTest() argument 50 if (std::thread::hardware_concurrency() < NumThreads) { in runThreadContentionTest() 51 NumThreads = std::thread::hardware_concurrency(); in runThreadContentionTest() 54 for (unsigned i = 0; i < NumThreads; ++i) { in runThreadContentionTest() 65 unsigned NumThreads = 4; in TEST_F() local 67 InitNumSlots(NumThreads); in TEST_F() 68 runThreadContentionTest(NumThreads, NumIterations, &GPA); in TEST_F()
|
| H A D | mutex_test.cpp | 66 static void runSynchronisedTest(unsigned NumThreads, unsigned CounterMax) { in runSynchronisedTest() argument 69 ASSERT_TRUE(CounterMax % NumThreads == 0); in runSynchronisedTest() 75 for (unsigned i = 0; i < NumThreads; ++i) in runSynchronisedTest() 77 CounterMax / NumThreads); in runSynchronisedTest()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/ |
| H A D | DXILMetadata.cpp | 95 unsigned NumThreads[3]; member 111 SmallVector<StringRef> NumThreads; in EntryProps() local 112 NumThreadsStr.split(NumThreads, ','); in EntryProps() 113 assert(NumThreads.size() == 3 && "invalid numthreads"); in EntryProps() 115 llvm::zip(NumThreads, MutableArrayRef<unsigned>(CS.NumThreads)); in EntryProps() 181 for (auto Num : ArrayRef<unsigned>(CS.NumThreads)) in appendNumThreads()
|
| /openbsd-src/gnu/llvm/llvm/examples/SpeculativeJIT/ |
| H A D | SpeculativeJIT.cpp | 34 static cl::opt<unsigned> NumThreads("num-threads", cl::Optional, variable 139 ThreadPool CompileThreads{llvm::hardware_concurrency(NumThreads)}; 163 if (NumThreads < 1) { in main()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-dwarfutil/ |
| H A D | llvm-dwarfutil.cpp | 105 if (opt::Arg *NumThreads = Args.getLastArg(OPT_threads)) in validateAndSetOptions() local 106 Options.NumThreads = atoi(NumThreads->getValue()); in validateAndSetOptions() 108 Options.NumThreads = 0; // Use all available hardware threads in validateAndSetOptions() 140 if (Options.NumThreads != 1 && Args.hasArg(OPT_threads)) in validateAndSetOptions() 143 Options.NumThreads = 1; in validateAndSetOptions()
|
| H A D | Options.h | 41 int NumThreads = 0; member
|
| H A D | DebugInfoLinker.cpp | 351 DebugInfoLinker.setNumThreads(Options.NumThreads); in linkDebugInfo()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | DwarfTransformer.h | 52 llvm::Error convert(uint32_t NumThreads);
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-gsymutil/ |
| H A D | llvm-gsymutil.cpp | 104 NumThreads("num-threads", variable 258 NumThreads > 0 ? NumThreads : std::thread::hardware_concurrency(); in handleObjectFile()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-cov/ |
| H A D | CoverageViewOptions.h | 52 unsigned NumThreads; member
|
| H A D | CoverageExporterJson.cpp | 232 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in renderFiles() 233 if (Options.NumThreads == 0) { in renderFiles()
|
| H A D | CodeCoverage.cpp | 753 cl::opt<unsigned> NumThreads( in run() local 757 cl::aliasopt(NumThreads)); in run() 911 ViewOpts.NumThreads = NumThreads; in run() 1134 ThreadPoolStrategy S = hardware_concurrency(ViewOpts.NumThreads); in doShow() 1135 if (ViewOpts.NumThreads == 0) { in doShow()
|
| H A D | CoverageReport.cpp | 391 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in prepareFileReports() 392 if (Options.NumThreads == 0) { in prepareFileReports()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntimeGPU.h | 185 void emitNumThreadsClause(CodeGenFunction &CGF, llvm::Value *NumThreads, 253 const Expr *IfCond, llvm::Value *NumThreads) override;
|
| H A D | CGOpenMPRuntime.h | 796 const Expr *IfCond, llvm::Value *NumThreads); 1049 llvm::Value *NumThreads, 1730 const Expr *IfCond, llvm::Value *NumThreads) override; 1893 void emitNumThreadsClause(CodeGenFunction &CGF, llvm::Value *NumThreads,
|
| H A D | CGOpenMPRuntime.cpp | 2040 llvm::Value *NumThreads) { in emitParallelCall() argument 2879 llvm::Value *NumThreads, in emitNumThreadsClause() argument 2886 CGF.Builder.CreateIntCast(NumThreads, CGF.Int32Ty, /*isSigned*/ true)}; in emitNumThreadsClause() 6353 llvm::Value *NumThreads = nullptr; in getNumThreads() local 6413 NumThreads = CGF.EmitScalarExpr(NumThreadsClause->getNumThreads()); in getNumThreads() 6414 NumThreads = CGF.Builder.CreateIntCast(NumThreads, CGF.Int32Ty, in getNumThreads() 6417 NumThreads = CGF.Builder.CreateSelect( in getNumThreads() 6418 CGF.Builder.CreateICmpULT(DefaultThreadLimitVal, NumThreads), in getNumThreads() 6419 DefaultThreadLimitVal, NumThreads); in getNumThreads() 6421 NumThreads = DefaultThreadLimitVal ? DefaultThreadLimitVal in getNumThreads() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/GSYM/ |
| H A D | DwarfTransformer.cpp | 428 Error DwarfTransformer::convert(uint32_t NumThreads) { in convert() argument 447 if (NumThreads == 1) { in convert() 468 ThreadPool pool(hardware_concurrency(NumThreads)); in convert()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.h | 359 Value *NumThreads, omp::ProcBindKind ProcBind, 993 Value *NumThreads, Value *HostPtr, 1473 int32_t NumThreads); 1525 int32_t NumTeams, int32_t NumThreads, 1544 int32_t NumTeams, int32_t NumThreads);
|
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/ |
| H A D | MachThreadList.h | 62 nub_size_t NumThreads() const;
|
| H A D | Genealogy.cpp | 178 const nub_size_t num_threads = thread_list.NumThreads(); in GetActivities()
|
| /openbsd-src/gnu/llvm/llvm/tools/dsymutil/ |
| H A D | dsymutil.cpp | 115 unsigned NumThreads; member 356 if (opt::Arg *NumThreads = Args.getLastArg(OPT_threads)) in getOptions() local 357 Options.LinkOpts.Threads = atoi(NumThreads->getValue()); in getOptions()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 396 unsigned NumThreads, FailureMode FailMode, in mergeInstrProfile() argument 415 if (NumThreads == 0) in mergeInstrProfile() 416 NumThreads = std::min(hardware_concurrency().compute_thread_count(), in mergeInstrProfile() 421 for (unsigned I = 0; I < NumThreads; ++I) in mergeInstrProfile() 425 if (NumThreads == 1) { in mergeInstrProfile() 430 ThreadPool Pool(hardware_concurrency(NumThreads)); in mergeInstrProfile() 437 Ctx = (Ctx + 1) % NumThreads; in mergeInstrProfile() 1176 cl::opt<unsigned> NumThreads( in merge_main() local 1180 cl::aliasopt(NumThreads)); in merge_main() 1284 OutputFilename, OutputFormat, OutputSparse, NumThreads, in merge_main()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinker.h | 298 void setNumThreads(unsigned NumThreads) { Options.Threads = NumThreads; } in setNumThreads() argument
|
| /openbsd-src/gnu/llvm/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 817 Value *DeviceID, Value *NumTeams, Value *NumThreads, Value *HostPtr, in emitTargetKernel() argument 833 NumThreads, HostPtr, KernelArgsPtr}; in emitTargetKernel() 884 FinalizeCallbackTy FiniCB, Value *IfCondition, Value *NumThreads, in createParallel() argument 896 if (NumThreads) { in createParallel() 900 Builder.CreateIntCast(NumThreads, Int32, /*isSigned*/ false)}; in createParallel() 3940 Function *OutlinedFn, int32_t NumTeams, int32_t NumThreads) { in setOutlinedTargetRegionFunctionAttributes() argument 3952 if (NumThreads > 0) in setOutlinedTargetRegionFunctionAttributes() 3954 std::to_string(NumThreads)); in setOutlinedTargetRegionFunctionAttributes() 3984 int32_t NumThreads, bool IsOffloadEntry, Function *&OutlinedFn, in emitTargetRegionFunction() argument 4007 NumThreads); in emitTargetRegionFunction() [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/clang-scan-deps/ |
| H A D | ClangScanDeps.cpp | 166 NumThreads("j", llvm::cl::Optional, variable 716 llvm::ThreadPool Pool(llvm::hardware_concurrency(NumThreads)); in main()
|