|
LLVM 24.0.0git
|
Whether a signature accepts arguments beyond its declared parameters, and where the declared ones end when it does. More...
#include "llvm/ABI/FunctionInfo.h"
Public Types | |
| enum | All_t { All } |
Public Member Functions | |
| RequiredArgs (All_t) | |
| A signature with no ellipsis, where every argument is declared. | |
| RequiredArgs (unsigned N) | |
A signature whose leading N arguments are declared and whose remaining arguments pass through an ellipsis. | |
| bool | allowsOptionalArgs () const |
| unsigned | getNumRequiredArgs () const |
Whether a signature accepts arguments beyond its declared parameters, and where the declared ones end when it does.
An argument past an ellipsis is unnamed, and some ABI rules pass an unnamed type differently.
A count and All are not interchangeable when the count equals the number of arguments. FunctionInfo::isVariadic() is true whenever a count was given, so a signature with no ellipsis has to be spelled All.
Definition at line 217 of file FunctionInfo.h.
| Enumerator | |
|---|---|
| All | |
Definition at line 223 of file FunctionInfo.h.
|
inline |
A signature with no ellipsis, where every argument is declared.
Definition at line 226 of file FunctionInfo.h.
|
inlineexplicit |
A signature whose leading N arguments are declared and whose remaining arguments pass through an ellipsis.
Definition at line 230 of file FunctionInfo.h.
|
inline |
Definition at line 234 of file FunctionInfo.h.
Referenced by getNumRequiredArgs().
|
inline |
Definition at line 236 of file FunctionInfo.h.
References allowsOptionalArgs(), and assert().