|
NonTrivialCallbacks * | getNonTrivialCallbacks () const |
|
CallPtrT | getCallPtr () const |
|
void * | getCalleePtr () const |
|
void * | getInlineStorage () const |
|
void * | getOutOfLineStorage () const |
|
size_t | getOutOfLineStorageSize () const |
|
size_t | getOutOfLineStorageAlignment () const |
|
void | setOutOfLineStorage (void *Ptr, size_t Size, size_t Alignment) |
|
| UniqueFunctionBase (CallableT Callable, CalledAs< CalledAsT >) |
|
| UniqueFunctionBase (UniqueFunctionBase &&RHS) noexcept |
|
| UniqueFunctionBase ()=default |
|
| ~UniqueFunctionBase () |
|
UniqueFunctionBase & | operator= (UniqueFunctionBase &&RHS) noexcept |
|
static R | CallImpl (void *CallableAddr, AdjustedParamT< ParamTs >... Params) |
|
static void | MoveImpl (void *LHSCallableAddr, void *RHSCallableAddr) noexcept |
|
static void | DestroyImpl (void *CallableAddr) noexcept |
|
struct IsSizeLessThanThresholdT< T, std::enable_if_t< sizeof(T)<=2 *sizeof(void *)> > :std::true_type {};template< typename T > struct AdjustedParamTBase { static_assert(!std::is_reference< T >::value, "references should be handled by template specialization");using type=std::conditional_t< std::is_trivially_copy_constructible< T >::value &&std::is_trivially_move_constructible< T >::value &&IsSizeLessThanThresholdT< T >::value, T, T & >;};template< typename T > struct AdjustedParamTBase< T & > { using type=T &;};template< typename T > struct AdjustedParamTBase< T && > { using type=T &;};template< typename T > using AdjustedParamT=typename AdjustedParamTBase< T >::type;using CallPtrT=R(*)(void *CallableAddr, AdjustedParamT< ParamTs >... Params);using MovePtrT=void(*)(void *LHSCallableAddr, void *RHSCallableAddr);using DestroyPtrT=void(*)(void *CallableAddr);struct alignas(8) TrivialCallback { CallPtrT CallPtr;};struct alignas(8) NonTrivialCallbacks { CallPtrT CallPtr;MovePtrT MovePtr;DestroyPtrT DestroyPtr;};using CallbackPointerUnionT=PointerUnion< TrivialCallback *, NonTrivialCallbacks * >;union StorageUnionT { struct OutOfLineStorageT { void *StoragePtr;size_t Size;size_t Alignment;} OutOfLineStorage;static_assert(sizeof(OutOfLineStorageT)<=InlineStorageSize, "Should always use all of the out-of-line storage for inline storage!");alignas(InlineStorageAlign) mutable std::byte InlineStorage[InlineStorageSize];} StorageUnion;PointerIntPair< CallbackPointerUnionT, 1, bool > CallbackAndInlineFlag;bool isInlineStorage() const { return CallbackAndInlineFlag.getInt();} bool isTrivialCallback() const { return isa< TrivialCallback * >(CallbackAndInlineFlag.getPointer());} CallPtrT getTrivialCallback() const { return cast< TrivialCallback * >(CallbackAndInlineFlag.getPointer()) -> | CallPtr |
|
static constexpr size_t | InlineStorageSize |
|
static constexpr size_t | InlineStorageAlign |
|
template<typename R, typename... P>
class llvm::unique_function< R(P...)>
Definition at line 367 of file FunctionExtras.h.