MLIR  20.0.0git
Public Member Functions | List of all members
mlir::tblgen::MethodParameters Class Reference

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

Detailed Description

This class contains a list of method parameters for constructor, class methods, and method signatures.

Definition at line 89 of file Class.h.

Constructor & Destructor Documentation

◆ MethodParameters() [1/2]

mlir::tblgen::MethodParameters::MethodParameters ( std::initializer_list< MethodParameter parameters)
inline

Create a list of method parameters.

Definition at line 92 of file Class.h.

◆ MethodParameters() [2/2]

mlir::tblgen::MethodParameters::MethodParameters ( SmallVector< MethodParameter parameters)
inline

Definition at line 94 of file Class.h.

Member Function Documentation

◆ getNumParameters()

unsigned mlir::tblgen::MethodParameters::getNumParameters ( ) const
inline

Return the number of parameters.

Definition at line 108 of file Class.h.

Referenced by mlir::tblgen::MethodSignature::getNumParameters().

◆ subsumes()

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

◆ writeDeclTo()

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

◆ writeDefTo()

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


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