clang
3.9.0
|
A class for recording the number of arguments that a function signature requires. More...
#include <CGFunctionInfo.h>
Public Types | |
enum | All_t { All } |
Public Member Functions | |
RequiredArgs (All_t _) | |
RequiredArgs (unsigned n) | |
bool | allowsOptionalArgs () const |
unsigned | getNumRequiredArgs () const |
unsigned | getOpaqueData () const |
Static Public Member Functions | |
static RequiredArgs | forPrototypePlus (const FunctionProtoType *prototype, unsigned additional, const FunctionDecl *FD) |
Compute the arguments required by the given formal prototype, given that there may be some additional, non-formal arguments in play. More... | |
static RequiredArgs | forPrototype (const FunctionProtoType *prototype, const FunctionDecl *FD) |
static RequiredArgs | forPrototype (CanQual< FunctionProtoType > prototype, const FunctionDecl *FD) |
static RequiredArgs | forPrototypePlus (CanQual< FunctionProtoType > prototype, unsigned additional, const FunctionDecl *FD) |
static RequiredArgs | getFromOpaqueData (unsigned value) |
A class for recording the number of arguments that a function signature requires.
Definition at line 381 of file CGFunctionInfo.h.
Enumerator | |
---|---|
All |
Definition at line 386 of file CGFunctionInfo.h.
|
inline |
Definition at line 388 of file CGFunctionInfo.h.
Referenced by forPrototypePlus(), and getFromOpaqueData().
|
inlineexplicit |
Definition at line 389 of file CGFunctionInfo.h.
|
inline |
Definition at line 426 of file CGFunctionInfo.h.
Referenced by clang::CodeGen::CodeGenTypes::arrangeCall(), getNumRequiredArgs(), and clang::CodeGen::CGFunctionInfo::isVariadic().
|
inlinestatic |
Definition at line 410 of file CGFunctionInfo.h.
References forPrototypePlus().
Referenced by forPrototype().
|
inlinestatic |
Definition at line 415 of file CGFunctionInfo.h.
References forPrototype(), and clang::CanQual< T >::getTypePtr().
|
inlinestatic |
Compute the arguments required by the given formal prototype, given that there may be some additional, non-formal arguments in play.
If FD is not null, this will consider pass_object_size params in FD.
Definition at line 398 of file CGFunctionInfo.h.
References All, clang::FunctionProtoType::getNumParams(), clang::FunctionProtoType::isVariadic(), clang::FunctionDecl::parameters(), and RequiredArgs().
Referenced by clang::CodeGen::CodeGenTypes::arrangeBlockFunctionDeclaration(), clang::CodeGen::CodeGenTypes::arrangeCXXConstructorCall(), arrangeLLVMFunctionInfo(), commonEmitCXXMemberOrOperatorCall(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), clang::CodeGen::CodeGenFunction::EmitCXXMemberPointerCallExpr(), forPrototype(), and forPrototypePlus().
|
inlinestatic |
Definition at line 420 of file CGFunctionInfo.h.
References forPrototypePlus(), and clang::CanQual< T >::getTypePtr().
|
inlinestatic |
Definition at line 433 of file CGFunctionInfo.h.
References All, and RequiredArgs().
|
inline |
Definition at line 427 of file CGFunctionInfo.h.
References allowsOptionalArgs().
Referenced by clang::CodeGen::CodeGenTypes::arrangeCXXMethodCall(), and clang::CodeGen::CGFunctionInfo::getNumRequiredArgs().
|
inline |
Definition at line 432 of file CGFunctionInfo.h.
Referenced by clang::CodeGen::CGFunctionInfo::Profile().