ΒΆOptional<llvm::ThreadPoolStrategy>
get_threadpool_strategy(
    llvm::StringRef Num,
    llvm::ThreadPoolStrategy Default = {})

Description

Build a strategy from a number of threads as a string provided in \p Num. When Num is above the max number of threads specified by the \p Default strategy, we attempt to equally allocate the threads on all CPU sockets. "0" or an empty string will return the \p Default strategy. "all" for using all hardware threads.

Declared at: llvm/include/llvm/Support/Threading.h:153

Parameters

llvm::StringRef Num
llvm::ThreadPoolStrategy Default = {}