LLVM 20.0.0git
Public Member Functions | List of all members
llvm::FunctionCallee Class Reference

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
 
FunctionTypegetFunctionType ()
 
ValuegetCallee ()
 
 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 168 of file DerivedTypes.h.

Constructor & Destructor Documentation

◆ FunctionCallee() [1/4]

template<typename T , typename U = decltype(&T::getFunctionType)>
llvm::FunctionCallee::FunctionCallee ( T Fn)
inline

Definition at line 173 of file DerivedTypes.h.

◆ FunctionCallee() [2/4]

llvm::FunctionCallee::FunctionCallee ( FunctionType FnTy,
Value Callee 
)
inline

Definition at line 176 of file DerivedTypes.h.

References assert().

◆ FunctionCallee() [3/4]

llvm::FunctionCallee::FunctionCallee ( std::nullptr_t  )
inline

Definition at line 181 of file DerivedTypes.h.

◆ FunctionCallee() [4/4]

llvm::FunctionCallee::FunctionCallee ( )
default

Member Function Documentation

◆ getCallee()

Value * llvm::FunctionCallee::getCallee ( )
inline

◆ getFunctionType()

FunctionType * llvm::FunctionCallee::getFunctionType ( )
inline

◆ operator bool()

llvm::FunctionCallee::operator bool ( )
inlineexplicit

Definition at line 189 of file DerivedTypes.h.


The documentation for this class was generated from the following file: