Base class for C API generators.
More...
#include <CommonCAPIGen.h>
|
| | Generator (std::string_view recordKind, llvm::raw_ostream &outputStream) |
| virtual | ~Generator ()=default |
| virtual void | setDialectAndClassName (const mlir::tblgen::Dialect *d, mlir::StringRef cppClassName) |
| | Set the dialect and class name for code generation.
|
| virtual void | genExtraMethods (mlir::StringRef extraDecl) const |
| | Generate code for extra methods from an extraClassDeclaration
|
| virtual void | genExtraMethod (const ExtraMethod &method) const =0 |
| | Generate code for an extra method.
|
Base class for C API generators.
Definition at line 323 of file CommonCAPIGen.h.
◆ Generator()
| Generator::Generator |
( |
std::string_view | recordKind, |
|
|
llvm::raw_ostream & | outputStream ) |
|
inline |
◆ ~Generator()
| virtual Generator::~Generator |
( |
| ) |
|
|
virtualdefault |
◆ genExtraMethod()
| virtual void Generator::genExtraMethod |
( |
const ExtraMethod & | method | ) |
const |
|
pure virtual |
◆ genExtraMethods()
| virtual void Generator::genExtraMethods |
( |
mlir::StringRef | extraDecl | ) |
const |
|
inlinevirtual |
Generate code for extra methods from an extraClassDeclaration
- Parameters
-
| extraDecl | The extra class declaration string |
Definition at line 339 of file CommonCAPIGen.h.
◆ setDialectAndClassName()
| virtual void Generator::setDialectAndClassName |
( |
const mlir::tblgen::Dialect * | d, |
|
|
mlir::StringRef | cppClassName ) |
|
inlinevirtual |
Set the dialect and class name for code generation.
- Parameters
-
| d | Pointer to the dialect definition |
| cppClassName | The C++ class name of the entity being generated |
Definition at line 332 of file CommonCAPIGen.h.
◆ className
| mlir::StringRef Generator::className |
|
protected |
◆ dialect
| const mlir::tblgen::Dialect* Generator::dialect |
|
protected |
◆ dialectNameCapitalized
| std::string Generator::dialectNameCapitalized |
|
protected |
◆ kind
| std::string Generator::kind |
|
protected |
◆ os
| llvm::raw_ostream& Generator::os |
|
protected |
The documentation for this struct was generated from the following file: