LLVM  16.0.0git
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Compiler.h"
#include <ciso646>
#include <optional>
#include <mutex>
Include dependency graph for Threading.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes

This tells how a thread pool will be used. More...

## Namespaces

llvm
This is an optimization pass for GlobalISel generic memory operations.

## Typedefs

typedef std::once_flag llvm::once_flag

## Functions

constexpr bool llvm::llvm_is_multithreaded ()
Returns true if LLVM is compiled with support for multi-threading, and false otherwise. More...

template<typename Function , typename... Args>
void llvm::call_once (once_flag &flag, Function &&F, Args &&... ArgList)
Execute the function specified as a parameter once. More...

Build a strategy from a number of threads as a string provided in Num. More...

Returns a thread strategy for tasks requiring significant memory or other resources. More...

ThreadPoolStrategy llvm::heavyweight_hardware_concurrency (StringRef Num)
Like heavyweight_hardware_concurrency() above, but builds a strategy based on the rules described for get_threadpool_strategy(). More...

Returns a default thread strategy where all available hardware resources are to be used, except for those initially excluded by an affinity mask. More...

Returns an optimal thread strategy to execute specified amount of tasks. More...

Return the current thread id, as used in various OS system calls. More...

Get the maximum length of a thread name on this platform. More...

void llvm::set_thread_name (const Twine &Name)
Set the name of the current thread. More...

void llvm::get_thread_name (SmallVectorImpl< char > &Name)
Get the name of the current thread. More...

Returns a mask that represents on which hardware thread, core, CPU, NUMA group, the calling thread can be executed. More...

unsigned llvm::get_cpus ()
Returns how many physical CPUs or NUMA groups the system has. More...

int llvm::get_physical_cores ()
Returns how many physical cores (as opposed to logical cores returned from thread::hardware_concurrency(), which includes hyperthreads). More...