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

This class describes a using-declaration for a class. More...

#include "mlir/TableGen/Class.h"

+ Inheritance diagram for mlir::tblgen::UsingDeclaration:

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...
 
- Public Member Functions inherited from mlir::tblgen::ClassDeclarationBase< ClassDeclaration::UsingDeclaration >
 ClassDeclarationBase ()
 
- Public Member Functions inherited from mlir::tblgen::ClassDeclaration
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

- Public Types inherited from mlir::tblgen::ClassDeclarationBase< ClassDeclaration::UsingDeclaration >
using Base = ClassDeclarationBase< DeclKind >
 
- Public Types inherited from mlir::tblgen::ClassDeclaration
enum  Kind {
  Method , UsingDeclaration , VisibilityDeclaration , Field ,
  ExtraClassDeclaration
}
 Kinds for LLVM-style RTTI. More...
 
- Static Public Member Functions inherited from mlir::tblgen::ClassDeclarationBase< ClassDeclaration::UsingDeclaration >
static bool classof (const ClassDeclaration *other)
 

Detailed Description

This class describes a using-declaration for a class.

E.g.

using Op::Op; using Adaptor = OpAdaptor;

Definition at line 538 of file Class.h.

Constructor & Destructor Documentation

◆ UsingDeclaration()

template<typename NameT , typename ValueT = std::string>
mlir::tblgen::UsingDeclaration::UsingDeclaration ( NameT &&  name,
ValueT &&  value = "" 
)
inline

Create a using declaration that either aliases name to value or inherits the parent methods `name.

Definition at line 544 of file Class.h.

Member Function Documentation

◆ addTemplateParam()

template<typename ParamT >
void mlir::tblgen::UsingDeclaration::addTemplateParam ( ParamT  param)
inline

Add a template parameter.

Definition at line 553 of file Class.h.

References mlir::tblgen::stringify().

◆ addTemplateParams()

template<typename ContainerT >
void mlir::tblgen::UsingDeclaration::addTemplateParams ( ContainerT &&  container)
inline

Add a list of template parameters.

Definition at line 559 of file Class.h.

◆ writeDeclTo()

void mlir::tblgen::UsingDeclaration::writeDeclTo ( raw_indented_ostream os) const
overridevirtual

Write the using declaration.

Implements mlir::tblgen::ClassDeclaration.


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