LLVM: llvm::FunctionCallee Class Reference (original) (raw)
A handy container for a FunctionType+Callee-pointer pair, which can be passed around as a single entity. More...
#include "[llvm/IR/DerivedTypes.h](DerivedTypes%5F8h%5Fsource.html)"
| 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 () |
Detailed Description
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.
Constructor & Destructor Documentation
template<typename T, typename U = decltype(&T::getFunctionType)>
| llvm::FunctionCallee::FunctionCallee ( T * Fn) | inline |
|---|
◆ FunctionCallee() [2/4]
◆ FunctionCallee() [3/4]
| llvm::FunctionCallee::FunctionCallee ( std::nullptr_t ) | inline |
|---|
◆ FunctionCallee() [4/4]
| llvm::FunctionCallee::FunctionCallee ( ) | default |
|---|
Member Function Documentation
◆ getCallee()
| Value * llvm::FunctionCallee::getCallee ( ) | inline |
|---|
Definition at line 189 of file DerivedTypes.h.
Referenced by llvm::IRBuilderBase::CreateFree(), CreateGCStatepointCallCommon(), CreateGCStatepointInvokeCommon(), llvm::IRBuilderBase::CreateMalloc(), llvm::createSanitizerCtorAndInitFunctions(), llvm::emitCalloc(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), hostParallelCallback(), llvm::AArch64TargetLowering::insertSSPDeclarations(), llvm::ARMTargetLowering::insertSSPDeclarations(), llvm::X86TargetLowering::insertSSPDeclarations(), lowerObjCCall(), makeStatepointExplicitImpl(), llvm::EscapeEnumerator::Next(), runImpl(), and llvm::CallBase::setCalledFunction().
◆ getFunctionType()
| FunctionType * llvm::FunctionCallee::getFunctionType ( ) | inline |
|---|
◆ operator bool()
| llvm::FunctionCallee::operator bool ( ) | inlineexplicit |
|---|
The documentation for this class was generated from the following file:
- include/llvm/IR/DerivedTypes.h