clang  14.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::CodeGen::RequiredArgs Class Reference

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
 
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. More...
 
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)
 

Detailed Description

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

Definition at line 480 of file CGFunctionInfo.h.

Member Enumeration Documentation

◆ All_t

Enumerator
All 

Definition at line 485 of file CGFunctionInfo.h.

Constructor & Destructor Documentation

◆ RequiredArgs() [1/2]

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

Definition at line 487 of file CGFunctionInfo.h.

Referenced by forPrototypePlus(), and getFromOpaqueData().

◆ RequiredArgs() [2/2]

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

Definition at line 488 of file CGFunctionInfo.h.

Member Function Documentation

◆ allowsOptionalArgs()

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

◆ forPrototype() [1/2]

static RequiredArgs clang::CodeGen::RequiredArgs::forPrototype ( CanQual< FunctionProtoType prototype)
inlinestatic

Definition at line 520 of file CGFunctionInfo.h.

References forPrototypePlus(), and clang::CanQual< T >::getTypePtr().

◆ forPrototype() [2/2]

static RequiredArgs clang::CodeGen::RequiredArgs::forPrototype ( const FunctionProtoType prototype)
inlinestatic

Definition at line 516 of file CGFunctionInfo.h.

References forPrototypePlus().

◆ forPrototypePlus() [1/2]

static RequiredArgs clang::CodeGen::RequiredArgs::forPrototypePlus ( CanQual< FunctionProtoType prototype,
unsigned  additional 
)
inlinestatic

Definition at line 511 of file CGFunctionInfo.h.

References forPrototypePlus(), and clang::CanQual< T >::getTypePtr().

◆ forPrototypePlus() [2/2]

static RequiredArgs clang::CodeGen::RequiredArgs::forPrototypePlus ( const FunctionProtoType prototype,
unsigned  additional 
)
inlinestatic

◆ getFromOpaqueData()

static RequiredArgs clang::CodeGen::RequiredArgs::getFromOpaqueData ( unsigned  value)
inlinestatic

Definition at line 531 of file CGFunctionInfo.h.

References All, and RequiredArgs().

◆ getNumRequiredArgs()

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

◆ getOpaqueData()

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

Definition at line 530 of file CGFunctionInfo.h.

Referenced by clang::CodeGen::CGFunctionInfo::Profile().


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