clang  5.0.0
Classes | Public Member Functions | Static Public Member Functions | List of all members
clang::CodeGen::CGCallee Class Reference

All available information about a concrete callee. More...

#include "/usr/local/google/work/llvm-www-releases/5.0.0/docsbuild/llvm.src/tools/clang/lib/CodeGen/CGCall.h"

Collaboration diagram for clang::CodeGen::CGCallee:
[legend]

Public Member Functions

 CGCallee ()
 
 CGCallee (const CGCalleeInfo &abstractInfo, llvm::Value *functionPtr)
 Construct a callee. More...
 
bool isBuiltin () const
 
const FunctionDeclgetBuiltinDecl () const
 
unsigned getBuiltinID () const
 
bool isPseudoDestructor () const
 
const CXXPseudoDestructorExprgetPseudoDestructorExpr () const
 
bool isOrdinary () const
 
const CGCalleeInfogetAbstractInfo () const
 
llvm::ValuegetFunctionPointer () const
 
llvm::FunctionType * getFunctionType () const
 
void setFunctionPointer (llvm::Value *functionPtr)
 

Static Public Member Functions

static CGCallee forBuiltin (unsigned builtinID, const FunctionDecl *builtinDecl)
 
static CGCallee forPseudoDestructor (const CXXPseudoDestructorExpr *E)
 
static CGCallee forDirect (llvm::Constant *functionPtr, const CGCalleeInfo &abstractInfo=CGCalleeInfo())
 

Detailed Description

All available information about a concrete callee.

Definition at line 66 of file CGCall.h.

Constructor & Destructor Documentation

clang::CodeGen::CGCallee::CGCallee ( )
inline

Definition at line 99 of file CGCall.h.

Referenced by forDirect().

clang::CodeGen::CGCallee::CGCallee ( const CGCalleeInfo abstractInfo,
llvm::Value functionPtr 
)
inline

Construct a callee.

Call this constructor directly when this isn't a direct call.

Definition at line 103 of file CGCall.h.

References AbstractInfo.

Member Function Documentation

static CGCallee clang::CodeGen::CGCallee::forBuiltin ( unsigned  builtinID,
const FunctionDecl builtinDecl 
)
inlinestatic

Definition at line 111 of file CGCall.h.

References Builtin, and BuiltinInfo.

static CGCallee clang::CodeGen::CGCallee::forDirect ( llvm::Constant *  functionPtr,
const CGCalleeInfo abstractInfo = CGCalleeInfo() 
)
inlinestatic
static CGCallee clang::CodeGen::CGCallee::forPseudoDestructor ( const CXXPseudoDestructorExpr E)
inlinestatic

Definition at line 119 of file CGCall.h.

References E, PseudoDestructor, and PseudoDestructorInfo.

const CGCalleeInfo& clang::CodeGen::CGCallee::getAbstractInfo ( ) const
inline

Definition at line 153 of file CGCall.h.

References AbstractInfo, and isOrdinary().

Referenced by clang::CodeGen::CodeGenFunction::EmitCall().

const FunctionDecl* clang::CodeGen::CGCallee::getBuiltinDecl ( ) const
inline

Definition at line 133 of file CGCall.h.

References BuiltinInfo, and isBuiltin().

Referenced by clang::CodeGen::CodeGenFunction::EmitCallExpr().

unsigned clang::CodeGen::CGCallee::getBuiltinID ( ) const
inline

Definition at line 137 of file CGCall.h.

References BuiltinInfo, and isBuiltin().

Referenced by clang::CodeGen::CodeGenFunction::EmitCallExpr().

llvm::Value* clang::CodeGen::CGCallee::getFunctionPointer ( ) const
inline

Definition at line 157 of file CGCall.h.

References isOrdinary().

Referenced by clang::CodeGen::CodeGenFunction::EmitCall(), and getFunctionType().

llvm::FunctionType* clang::CodeGen::CGCallee::getFunctionType ( ) const
inline

Definition at line 161 of file CGCall.h.

References getFunctionPointer().

Referenced by clang::CodeGen::CodeGenFunction::EmitCall().

const CXXPseudoDestructorExpr* clang::CodeGen::CGCallee::getPseudoDestructorExpr ( ) const
inline

Definition at line 145 of file CGCall.h.

References isPseudoDestructor(), and PseudoDestructorInfo.

Referenced by clang::CodeGen::CodeGenFunction::EmitCallExpr().

bool clang::CodeGen::CGCallee::isBuiltin ( ) const
inline

Definition at line 130 of file CGCall.h.

References Builtin.

Referenced by clang::CodeGen::CodeGenFunction::EmitCallExpr(), getBuiltinDecl(), and getBuiltinID().

bool clang::CodeGen::CGCallee::isOrdinary ( ) const
inline
bool clang::CodeGen::CGCallee::isPseudoDestructor ( ) const
inline

Definition at line 142 of file CGCall.h.

References PseudoDestructor.

Referenced by clang::CodeGen::CodeGenFunction::EmitCallExpr(), and getPseudoDestructorExpr().

void clang::CodeGen::CGCallee::setFunctionPointer ( llvm::Value functionPtr)
inline

Definition at line 165 of file CGCall.h.

References isOrdinary().

Member Data Documentation

CGCalleeInfo clang::CodeGen::CGCallee::AbstractInfo

Definition at line 85 of file CGCall.h.

Referenced by CGCallee(), and getAbstractInfo().

BuiltinInfoStorage clang::CodeGen::CGCallee::BuiltinInfo

Definition at line 86 of file CGCall.h.

Referenced by forBuiltin(), getBuiltinDecl(), and getBuiltinID().

PseudoDestructorInfoStorage clang::CodeGen::CGCallee::PseudoDestructorInfo

Definition at line 87 of file CGCall.h.

Referenced by forPseudoDestructor(), and getPseudoDestructorExpr().


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