MLIR
20.0.0git
|
This class contains a list of method parameters for constructor, class methods, and method signatures. More...
#include "mlir/TableGen/Class.h"
Public Member Functions | |
MethodParameters (std::initializer_list< MethodParameter > parameters) | |
Create a list of method parameters. More... | |
MethodParameters (SmallVector< MethodParameter > parameters) | |
void | writeDeclTo (raw_indented_ostream &os) const |
Write the parameters as part of a method declaration. More... | |
void | writeDefTo (raw_indented_ostream &os) const |
Write the parameters as part of a method definition. More... | |
bool | subsumes (const MethodParameters &other) const |
Determine whether this list of parameters "subsumes" another, which occurs when this parameter list is identical to the other and has zero or more additional default-valued parameters. More... | |
unsigned | getNumParameters () const |
Return the number of parameters. More... | |
This class contains a list of method parameters for constructor, class methods, and method signatures.
|
inline |
|
inline |
|
inline |
Return the number of parameters.
Definition at line 108 of file Class.h.
Referenced by mlir::tblgen::MethodSignature::getNumParameters().
bool MethodParameters::subsumes | ( | const MethodParameters & | other | ) | const |
Determine whether this list of parameters "subsumes" another, which occurs when this parameter list is identical to the other and has zero or more additional default-valued parameters.
Definition at line 56 of file Class.cpp.
Referenced by mlir::tblgen::MethodSignature::makesRedundant().
void MethodParameters::writeDeclTo | ( | raw_indented_ostream & | os | ) | const |
Write the parameters as part of a method declaration.
Definition at line 47 of file Class.cpp.
Referenced by mlir::tblgen::MethodSignature::writeDeclTo().
void MethodParameters::writeDefTo | ( | raw_indented_ostream & | os | ) | const |
Write the parameters as part of a method definition.
Definition at line 51 of file Class.cpp.
Referenced by mlir::tblgen::MethodSignature::writeDefTo().