Generator for attribute/type C header files.
More...
#include <CommonAttrOrTypeCAPIGen.h>
|
| virtual | ~AttrOrTypeHeaderGenerator ()=default |
| void | setParamName (mlir::StringRef name) |
| | Set the parameter name for code generation.
|
| virtual void | genParameterGetterDecl (mlir::StringRef cppType) const |
| | Generate regular getter for non-ArrayRef type parameter.
|
| virtual void | genArrayRefParameterGetterDecls (mlir::StringRef cppType) const |
| | Generate accessor function for ArrayRef parameter elements.
|
| virtual void | genDefaultGetBuilderDecl (const mlir::tblgen::AttrOrTypeDef &def) const |
| | Generate default Get builder declaration.
|
| void | genCompleteRecord (const mlir::tblgen::AttrOrTypeDef def) |
| | 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
|
Generator for attribute/type C header files.
This class extends HeaderGenerator to provide attribute and type-specific header generation capabilities, including parameter getters and builders.
Definition at line 24 of file CommonAttrOrTypeCAPIGen.h.
◆ ~AttrOrTypeHeaderGenerator()
| virtual AttrOrTypeHeaderGenerator::~AttrOrTypeHeaderGenerator |
( |
| ) |
|
|
virtualdefault |
◆ genArrayRefParameterGetterDecls()
| virtual void AttrOrTypeHeaderGenerator::genArrayRefParameterGetterDecls |
( |
mlir::StringRef | cppType | ) |
const |
|
inlinevirtual |
◆ genCompleteRecord()
| void AttrOrTypeHeaderGenerator::genCompleteRecord |
( |
const mlir::tblgen::AttrOrTypeDef | def | ) |
|
|
inline |
◆ genDefaultGetBuilderDecl()
| virtual void AttrOrTypeHeaderGenerator::genDefaultGetBuilderDecl |
( |
const mlir::tblgen::AttrOrTypeDef & | def | ) |
const |
|
inlinevirtual |
◆ genParameterGetterDecl()
| virtual void AttrOrTypeHeaderGenerator::genParameterGetterDecl |
( |
mlir::StringRef | cppType | ) |
const |
|
inlinevirtual |
◆ setParamName()
| void AttrOrTypeHeaderGenerator::setParamName |
( |
mlir::StringRef | name | ) |
|
|
inline |
Set the parameter name for code generation.
- Parameters
-
| name | The parameter name from the TableGen definition |
Definition at line 30 of file CommonAttrOrTypeCAPIGen.h.
◆ paramName
| mlir::StringRef AttrOrTypeHeaderGenerator::paramName |
|
protected |
◆ paramNameCapitalized
| std::string AttrOrTypeHeaderGenerator::paramNameCapitalized |
|
protected |
The documentation for this struct was generated from the following file: