LLVM 20.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 170 of file DerivedTypes.h.
|
inline |
Definition at line 175 of file DerivedTypes.h.
|
inline |
Definition at line 178 of file DerivedTypes.h.
References assert().
|
inline |
Definition at line 183 of file DerivedTypes.h.
|
default |
|
inline |
Definition at line 189 of file DerivedTypes.h.
Referenced by CreateFailBB(), llvm::IRBuilderBase::CreateFree(), CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), llvm::IRBuilderBase::CreateMalloc(), llvm::OpenMPIRBuilder::createParallel(), llvm::createSanitizerCtorAndInitFunctions(), llvm::emitCalloc(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), llvm::OpenMPIRBuilder::getOrCreateRuntimeFunctionPtr(), hostParallelCallback(), llvm::AArch64TargetLowering::insertSSPDeclarations(), llvm::ARMTargetLowering::insertSSPDeclarations(), llvm::X86TargetLowering::insertSSPDeclarations(), lowerObjCCall(), makeStatepointExplicitImpl(), llvm::EscapeEnumerator::Next(), runImpl(), and llvm::CallBase::setCalledFunction().
|
inline |
Definition at line 187 of file DerivedTypes.h.
Referenced by CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), and llvm::CallBase::setCalledFunction().
|
inlineexplicit |
Definition at line 191 of file DerivedTypes.h.