MLIR  18.0.0git
Public Types | Public Member Functions | List of all members
mlir::tblgen::ClassDeclaration Class Referenceabstract

A class declaration is a class element that appears as part of its declaration. More...

#include "mlir/TableGen/Class.h"

+ Inheritance diagram for mlir::tblgen::ClassDeclaration:

Public Types

enum  Kind {
  Method , UsingDeclaration , VisibilityDeclaration , Field ,
 Kinds for LLVM-style RTTI. More...

Public Member Functions

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 writeDeclTo (raw_indented_ostream &os) const =0
 Write the declaration. More...
virtual void writeDefTo (raw_indented_ostream &os, StringRef namePrefix) const
 Write the definition, if any. More...

Detailed Description

A class declaration is a class element that appears as part of its declaration.

Definition at line 261 of file Class.h.

Member Enumeration Documentation

◆ Kind

Kinds for LLVM-style RTTI.


Definition at line 266 of file Class.h.

Constructor & Destructor Documentation

◆ ~ClassDeclaration()

virtual mlir::tblgen::ClassDeclaration::~ClassDeclaration ( )

◆ ClassDeclaration()

mlir::tblgen::ClassDeclaration::ClassDeclaration ( Kind  kind)

Create a class declaration with a given kind.

Definition at line 274 of file Class.h.

Member Function Documentation

◆ getKind()

Kind mlir::tblgen::ClassDeclaration::getKind ( ) const

Get the class declaration kind.

Definition at line 277 of file Class.h.

Referenced by mlir::tblgen::ClassDeclarationBase< DeclKind >::classof().

◆ writeDeclTo()

virtual void mlir::tblgen::ClassDeclaration::writeDeclTo ( raw_indented_ostream os) const
pure virtual

◆ writeDefTo()

virtual void mlir::tblgen::ClassDeclaration::writeDefTo ( raw_indented_ostream os,
StringRef  namePrefix 
) const

Write the definition, if any.

namePrefix is the namespace prefix, which may contains a class name.

Reimplemented in mlir::tblgen::ExtraClassDeclaration, mlir::tblgen::Constructor, and mlir::tblgen::Method.

Definition at line 284 of file Class.h.

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