llvm::function_ref

An efficient, type-erasing, non-owning reference to a callable.

Synopsis

Declared in <llvm/ADT/STLFunctionalExtras.h>

template<typename Fn>
class function_ref;

Description

This is intended for use as the type of a function parameter that is not used after the function in question returns.

This class does not own the callable, so it is not in general safe to store a function_ref.

Specializations

NameDescription
function_ref<Ret(Params...)> Partial specialization of function_ref for a given function signature.

Non-Member Functions

NameDescription
PrintErrorPrint an error diagnostic by writing into a colored error stream.
PrintFatalErrorPrint an error via PrintMsg and then exit the process.
PrintNotePrint a note diagnostic by writing into a colored note stream.
PatternMatch::m_CheckedFpMatch a float or vector where CheckFn(ele) for each element is true. For vectors, poison elements are assumed to match.
PatternMatch::m_CheckedIntMatch an integer or vector where CheckFn(ele) for each element is true. For vectors, poison elements are assumed to match.
dwarf_linker::finiteLoopCall Iteration until it returns false, or fail if the limit is hit.