MLIR
20.0.0git
|
A class declaration is a class element that appears as part of its declaration. More...
#include "mlir/TableGen/Class.h"
Public Types | |
enum | Kind { Method , UsingDeclaration , VisibilityDeclaration , Field , ExtraClassDeclaration } |
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... | |
A class declaration is a class element that appears as part of its declaration.
|
virtualdefault |
|
inline |
|
inline |
Get the class declaration kind.
Definition at line 278 of file Class.h.
Referenced by mlir::tblgen::ClassDeclarationBase< DeclKind >::classof().
|
pure virtual |
Write the declaration.
Implemented in mlir::tblgen::ExtraClassDeclaration, mlir::tblgen::VisibilityDeclaration, mlir::tblgen::Field, mlir::tblgen::UsingDeclaration, mlir::tblgen::Constructor, and mlir::tblgen::Method.
|
inlinevirtual |
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.