clang 20.0.0git
|
A class for recording the number of arguments that a function signature requires. More...
#include "clang/CodeGen/CGFunctionInfo.h"
Public Types | |
enum | All_t { All } |
Public Member Functions | |
RequiredArgs (All_t _) | |
RequiredArgs (unsigned n) | |
bool | allowsOptionalArgs () const |
unsigned | getNumRequiredArgs () const |
bool | isRequiredArg (unsigned argIdx) const |
Return true if the argument at a given index is required. | |
unsigned | getOpaqueData () const |
Static Public Member Functions | |
static RequiredArgs | forPrototypePlus (const FunctionProtoType *prototype, unsigned additional) |
Compute the arguments required by the given formal prototype, given that there may be some additional, non-formal arguments in play. | |
static RequiredArgs | forPrototypePlus (CanQual< FunctionProtoType > prototype, unsigned additional) |
static RequiredArgs | forPrototype (const FunctionProtoType *prototype) |
static RequiredArgs | forPrototype (CanQual< FunctionProtoType > prototype) |
static RequiredArgs | getFromOpaqueData (unsigned value) |
A class for recording the number of arguments that a function signature requires.
Definition at line 480 of file CGFunctionInfo.h.
Enumerator | |
---|---|
All |
Definition at line 485 of file CGFunctionInfo.h.
|
inline |
Definition at line 487 of file CGFunctionInfo.h.
|
inlineexplicit |
Definition at line 488 of file CGFunctionInfo.h.
|
inline |
Definition at line 524 of file CGFunctionInfo.h.
Referenced by clang::CodeGen::CodeGenTypes::arrangeCall(), clang::CodeGen::CGFunctionInfo::create(), and getNumRequiredArgs().
|
inlinestatic |
Definition at line 520 of file CGFunctionInfo.h.
References forPrototypePlus(), and clang::CanQual< T >::getTypePtr().
|
inlinestatic |
Definition at line 516 of file CGFunctionInfo.h.
References forPrototypePlus().
|
inlinestatic |
Definition at line 511 of file CGFunctionInfo.h.
References forPrototypePlus(), 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 497 of file CGFunctionInfo.h.
References All, clang::FunctionProtoType::getExtParameterInfos(), clang::FunctionProtoType::getNumParams(), clang::FunctionProtoType::hasExtParameterInfos(), and clang::FunctionProtoType::isVariadic().
Referenced by clang::CodeGen::CodeGenTypes::arrangeBlockFunctionDeclaration(), clang::CodeGen::CodeGenTypes::arrangeCXXConstructorCall(), arrangeFreeFunctionLikeCall(), arrangeLLVMFunctionInfo(), commonEmitCXXMemberOrOperatorCall(), forPrototype(), and forPrototypePlus().
|
inlinestatic |
Definition at line 536 of file CGFunctionInfo.h.
References All.
|
inline |
Definition at line 525 of file CGFunctionInfo.h.
References allowsOptionalArgs().
Referenced by clang::CodeGen::CGFunctionInfo::create(), and clang::CodeGen::CGFunctionInfo::getNumRequiredArgs().
|
inline |
Definition at line 535 of file CGFunctionInfo.h.
Referenced by clang::CodeGen::CGFunctionInfo::Profile().
Return true if the argument at a given index is required.
Definition at line 531 of file CGFunctionInfo.h.