Base class for attribute and type test generators.
More...
#include <CommonAttrOrTypeCAPITestGen.h>
|
| virtual | ~AttrOrTypeTestGenerator ()=default |
| void | setParamName (mlir::StringRef name) |
| | Set the parameter name for code generation.
|
| virtual void | genGetBuilderTest (const std::string &dummyParams, const std::string ¶mList) const |
| | Generate Get builder test for a definition.
|
| virtual void | genParamGetterTest () const |
| | Generate parameter getter test.
|
| virtual void | genArrayRefParamCountTest () const |
| | Generate ArrayRef parameter count getter test.
|
| virtual void | genArrayRefParamAtTest () const |
| | Generate ArrayRef parameter element getter test.
|
| void | genCompleteRecord (const mlir::tblgen::AttrOrTypeDef def, bool isType) |
| virtual | ~TestGenerator ()=default |
| virtual void | genTestClassPrologue () const |
| | Generate the test class prologue.
|
| virtual void | genIsATest () const |
| | Generate IsA test for a class.
|
| virtual void | genExtraMethod (const ExtraMethod &method) const override |
| | Generate test for an extra method from extraClassDeclaration.
|
| virtual std::string | genCleanup () const |
| | Generate cleanup code for test methods.
|
| | Generator (std::string_view recordKind, llvm::raw_ostream &outputStream) |
| | 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
|
Base class for attribute and type test generators.
This class provides common functionality for generating unit tests for attributes and types. It extends the base TestGenerator class.
Definition at line 78 of file CommonAttrOrTypeCAPITestGen.h.
◆ ~AttrOrTypeTestGenerator()
| virtual AttrOrTypeTestGenerator::~AttrOrTypeTestGenerator |
( |
| ) |
|
|
virtualdefault |
◆ genArrayRefParamAtTest()
| virtual void AttrOrTypeTestGenerator::genArrayRefParamAtTest |
( |
| ) |
const |
|
inlinevirtual |
◆ genArrayRefParamCountTest()
| virtual void AttrOrTypeTestGenerator::genArrayRefParamCountTest |
( |
| ) |
const |
|
inlinevirtual |
◆ genCompleteRecord()
| void AttrOrTypeTestGenerator::genCompleteRecord |
( |
const mlir::tblgen::AttrOrTypeDef | def, |
|
|
bool | isType ) |
|
inline |
◆ genGetBuilderTest()
| virtual void AttrOrTypeTestGenerator::genGetBuilderTest |
( |
const std::string & | dummyParams, |
|
|
const std::string & | paramList ) const |
|
inlinevirtual |
Generate Get builder test for a definition.
- Parameters
-
| dummyParams | Dummy parameter declarations |
| paramList | Parameter list for the call |
Definition at line 94 of file CommonAttrOrTypeCAPITestGen.h.
◆ genParamGetterTest()
| virtual void AttrOrTypeTestGenerator::genParamGetterTest |
( |
| ) |
const |
|
inlinevirtual |
◆ setParamName()
| void AttrOrTypeTestGenerator::setParamName |
( |
mlir::StringRef | name | ) |
|
|
inline |
Set the parameter name for code generation.
- Parameters
-
| name | The parameter name from the TableGen definition |
Definition at line 85 of file CommonAttrOrTypeCAPITestGen.h.
◆ paramName
| mlir::StringRef AttrOrTypeTestGenerator::paramName |
|
protected |
◆ paramNameCapitalized
| std::string AttrOrTypeTestGenerator::paramNameCapitalized |
|
protected |
The documentation for this struct was generated from the following file: