LLVM 17.0.0git
|
A handy container for a FunctionType+Callee-pointer pair, which can be passed around as a single entity. More...
#include "llvm/IR/DerivedTypes.h"
Public Member Functions | |
template<typename T , typename U = decltype(&T::getFunctionType)> | |
FunctionCallee (T *Fn) | |
FunctionCallee (FunctionType *FnTy, Value *Callee) | |
FunctionCallee (std::nullptr_t) | |
FunctionCallee ()=default | |
FunctionType * | getFunctionType () |
Value * | getCallee () |
operator bool () | |
A handy container for a FunctionType+Callee-pointer pair, which can be passed around as a single entity.
This assists in replacing the use of PointerType::getElementType() to access the function's type, since that's slated for removal as part of the [opaque pointer types] project.
Definition at line 165 of file DerivedTypes.h.
|
inline |
Definition at line 170 of file DerivedTypes.h.
|
inline |
Definition at line 173 of file DerivedTypes.h.
|
inline |
Definition at line 178 of file DerivedTypes.h.
|
default |
|
inline |
Definition at line 184 of file DerivedTypes.h.
Referenced by createFree(), CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), createMalloc(), llvm::OpenMPIRBuilder::createParallel(), llvm::createSanitizerCtorAndInitFunctions(), llvm::OpenMPIRBuilder::createTask(), emitBinaryFloatFnCallHelper(), llvm::emitCalloc(), emitLibCall(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), emitUnaryFloatFnCallHelper(), llvm::OpenMPIRBuilder::getOrCreateRuntimeFunctionPtr(), llvm::AArch64TargetLowering::insertSSPDeclarations(), llvm::ARMTargetLowering::insertSSPDeclarations(), llvm::X86TargetLowering::insertSSPDeclarations(), lowerObjCCall(), makeStatepointExplicitImpl(), llvm::EscapeEnumerator::Next(), and llvm::CallBase::setCalledFunction().
|
inline |
Definition at line 182 of file DerivedTypes.h.
Referenced by CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), getAllocationDataForFunction(), llvm::isLegalToPromote(), llvm::promoteCall(), and llvm::CallBase::setCalledFunction().
|
inlineexplicit |
Definition at line 186 of file DerivedTypes.h.