MLIR
20.0.0git
|
This class describes a using-declaration for a class. More...
#include "mlir/TableGen/Class.h"
Public Member Functions | |
template<typename NameT , typename ValueT = std::string> | |
UsingDeclaration (NameT &&name, ValueT &&value="") | |
Create a using declaration that either aliases name to value or inherits the parent methods `name. More... | |
void | writeDeclTo (raw_indented_ostream &os) const override |
Write the using declaration. More... | |
template<typename ParamT > | |
void | addTemplateParam (ParamT param) |
Add a template parameter. More... | |
template<typename ContainerT > | |
void | addTemplateParams (ContainerT &&container) |
Add a list of template parameters. More... | |
![]() | |
ClassDeclarationBase () | |
![]() | |
virtual | ~ClassDeclaration ()=default |
ClassDeclaration (Kind kind) | |
Create a class declaration with a given kind. More... | |
Kind | getKind () const |
Get the class declaration kind. More... | |
virtual void | writeDefTo (raw_indented_ostream &os, StringRef namePrefix) const |
Write the definition, if any. More... | |
Additional Inherited Members | |
![]() | |
using | Base = ClassDeclarationBase< DeclKind > |
![]() | |
enum | Kind { Method , UsingDeclaration , VisibilityDeclaration , Field , ExtraClassDeclaration } |
Kinds for LLVM-style RTTI. More... | |
![]() | |
static bool | classof (const ClassDeclaration *other) |
|
inline |
|
inline |
Add a template parameter.
Definition at line 553 of file Class.h.
References mlir::tblgen::stringify().
|
inline |
|
overridevirtual |
Write the using declaration.
Implements mlir::tblgen::ClassDeclaration.