LLVM  12.0.0git
Classes | Functions | Variables
llvm::parallel::detail Namespace Reference

Classes

class  Latch
 
class  TaskGroup
 

Functions

template<class RandomAccessIterator , class Comparator >
RandomAccessIterator medianOf3 (RandomAccessIterator Start, RandomAccessIterator End, const Comparator &Comp)
 Inclusive median. More...
 
template<class RandomAccessIterator , class Comparator >
void parallel_quick_sort (RandomAccessIterator Start, RandomAccessIterator End, const Comparator &Comp, TaskGroup &TG, size_t Depth)
 
template<class RandomAccessIterator , class Comparator >
void parallel_sort (RandomAccessIterator Start, RandomAccessIterator End, const Comparator &Comp)
 
template<class IterTy , class FuncTy >
void parallel_for_each (IterTy Begin, IterTy End, FuncTy Fn)
 
template<class IndexTy , class FuncTy >
void parallel_for_each_n (IndexTy Begin, IndexTy End, FuncTy Fn)
 

Variables

const ptrdiff_t MinParallelSize = 1024
 
static std::atomic< int > TaskGroupInstances
 

Function Documentation

◆ medianOf3()

template<class RandomAccessIterator , class Comparator >
RandomAccessIterator llvm::parallel::detail::medianOf3 ( RandomAccessIterator  Start,
RandomAccessIterator  End,
const Comparator &  Comp 
)

Inclusive median.

Definition at line 78 of file Parallel.h.

◆ parallel_for_each()

template<class IterTy , class FuncTy >
void llvm::parallel::detail::parallel_for_each ( IterTy  Begin,
IterTy  End,
FuncTy  Fn 
)

Definition at line 124 of file Parallel.h.

Referenced by llvm::parallelForEach().

◆ parallel_for_each_n()

template<class IndexTy , class FuncTy >
void llvm::parallel::detail::parallel_for_each_n ( IndexTy  Begin,
IndexTy  End,
FuncTy  Fn 
)

Definition at line 142 of file Parallel.h.

Referenced by llvm::parallelForEachN().

◆ parallel_quick_sort()

template<class RandomAccessIterator , class Comparator >
void llvm::parallel::detail::parallel_quick_sort ( RandomAccessIterator  Start,
RandomAccessIterator  End,
const Comparator &  Comp,
TaskGroup TG,
size_t  Depth 
)

Definition at line 90 of file Parallel.h.

◆ parallel_sort()

template<class RandomAccessIterator , class Comparator >
void llvm::parallel::detail::parallel_sort ( RandomAccessIterator  Start,
RandomAccessIterator  End,
const Comparator &  Comp 
)

Definition at line 116 of file Parallel.h.

Variable Documentation

◆ MinParallelSize

const ptrdiff_t llvm::parallel::detail::MinParallelSize = 1024

Definition at line 74 of file Parallel.h.

◆ TaskGroupInstances

std::atomic<int> llvm::parallel::detail::TaskGroupInstances
static

Definition at line 147 of file Parallel.cpp.

Referenced by llvm::parallel::detail::TaskGroup::~TaskGroup().