|
MLIR 22.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. | |
| Kind | getKind () const |
| Get the class declaration kind. | |
| virtual void | writeDeclTo (raw_indented_ostream &os) const =0 |
| Write the declaration. | |
| virtual void | writeDefTo (raw_indented_ostream &os, StringRef namePrefix) const |
| Write the definition, if any. | |
A class declaration is a class element that appears as part of its declaration.
|
virtualdefault |
|
inline |
Create a class declaration with a given kind.
Definition at line 279 of file Class.h.
Referenced by mlir::tblgen::ClassDeclarationBase< DeclKind >::ClassDeclarationBase(), and mlir::tblgen::ClassDeclarationBase< DeclKind >::classof().
|
inline |
Get the class declaration kind.
Definition at line 282 of file Class.h.
Referenced by mlir::tblgen::ClassDeclarationBase< DeclKind >::classof().
|
pure virtual |
Write the declaration.
Implemented in 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::Constructor, and mlir::tblgen::Method.