clang 22.0.0git
clang::CIRGen::RequiredArgs Class Reference

A class for recording the number of arguments that a function signature requires. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h"

Public Types

enum  All_t { All }

Public Member Functions

 RequiredArgs (All_t _)
 RequiredArgs (unsigned n)
unsigned getOpaqueData () const
bool allowsOptionalArgs () const
unsigned getNumRequiredArgs () const

Static Public Member Functions

static RequiredArgs getFromProtoWithExtraSlots (const clang::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 getFromProtoWithExtraSlots (clang::CanQual< clang::FunctionProtoType > prototype, unsigned additional)

Detailed Description

A class for recording the number of arguments that a function signature requires.

Definition at line 27 of file CIRGenFunctionInfo.h.

Member Enumeration Documentation

◆ All_t

Enumerator
All 

Definition at line 33 of file CIRGenFunctionInfo.h.

Constructor & Destructor Documentation

◆ RequiredArgs() [1/2]

clang::CIRGen::RequiredArgs::RequiredArgs ( All_t _)
inline

Definition at line 35 of file CIRGenFunctionInfo.h.

Referenced by getFromProtoWithExtraSlots().

◆ RequiredArgs() [2/2]

clang::CIRGen::RequiredArgs::RequiredArgs ( unsigned n)
inlineexplicit

Definition at line 36 of file CIRGenFunctionInfo.h.

Member Function Documentation

◆ allowsOptionalArgs()

bool clang::CIRGen::RequiredArgs::allowsOptionalArgs ( ) const
inline

Definition at line 40 of file CIRGenFunctionInfo.h.

Referenced by getNumRequiredArgs().

◆ getFromProtoWithExtraSlots() [1/2]

RequiredArgs clang::CIRGen::RequiredArgs::getFromProtoWithExtraSlots ( clang::CanQual< clang::FunctionProtoType > prototype,
unsigned additional )
inlinestatic

◆ getFromProtoWithExtraSlots() [2/2]

RequiredArgs clang::CIRGen::RequiredArgs::getFromProtoWithExtraSlots ( const clang::FunctionProtoType * prototype,
unsigned additional )
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 47 of file CIRGenFunctionInfo.h.

References All, clang::FunctionProtoType::getNumParams(), clang::FunctionProtoType::hasExtParameterInfos(), clang::FunctionProtoType::isVariadic(), and RequiredArgs().

Referenced by arrangeCIRFunctionInfo(), clang::CIRGen::CIRGenTypes::arrangeCXXConstructorCall(), arrangeFreeFunctionLikeCall(), commonBuildCXXMemberOrOperatorCall(), and getFromProtoWithExtraSlots().

◆ getNumRequiredArgs()

unsigned clang::CIRGen::RequiredArgs::getNumRequiredArgs ( ) const
inline

◆ getOpaqueData()

unsigned clang::CIRGen::RequiredArgs::getOpaqueData ( ) const
inline

Definition at line 38 of file CIRGenFunctionInfo.h.


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