Build a strategy that prefers physical cores over SMT.
Synopsis
Declared in <llvm/Support/Threading.h>
ThreadPoolStrategy
heavyweight_hardware_concurrency(unsigned int ThreadCount = 0);
Description
Use for memory‐heavy work where hardware_concurrency() is too aggressive. Avoid for I/O‐bound work. Falls back to hardware_concurrency() when physical core count is unknown, and returns 1 when threads are disabled.
Return Value
This tells how a thread pool will be used
Created with MrDocs