|
MLIR 22.0.0git
|
This class represents a wrapper around a tablegen TypeDef record. More...
#include "mlir/TableGen/AttrOrTypeDef.h"
Public Member Functions | |
| StringRef | getTypeName () const |
| Get the unique type name "dialect.typename". | |
| AttrOrTypeDef (const llvm::Record *def) | |
| Public Member Functions inherited from mlir::tblgen::AttrOrTypeDef | |
| AttrOrTypeDef (const llvm::Record *def) | |
| Dialect | getDialect () const |
| Get the dialect for which this def belongs. | |
| StringRef | getName () const |
| Returns the name of this AttrOrTypeDef record. | |
| bool | hasDescription () const |
| Query functions for the documentation of the def. | |
| StringRef | getDescription () const |
| bool | hasSummary () const |
| StringRef | getSummary () const |
| StringRef | getCppClassName () const |
| Returns the name of the C++ class to generate. | |
| StringRef | getCppBaseClassName () const |
| Returns the name of the C++ base class to use when generating this def. | |
| StringRef | getStorageClassName () const |
| Returns the name of the storage class for this def. | |
| StringRef | getStorageNamespace () const |
| Returns the C++ namespace for this def's storage class. | |
| bool | genStorageClass () const |
| Returns true if we should generate the storage class. | |
| bool | hasStorageCustomConstructor () const |
| Indicates whether or not to generate the storage class constructor. | |
| ArrayRef< AttrOrTypeParameter > | getParameters () const |
| Get the parameters of this attribute or type. | |
| unsigned | getNumParameters () const |
| Return the number of parameters. | |
| std::optional< StringRef > | getMnemonic () const |
| Return the keyword/mnemonic to use in the printer/parser methods if we are supposed to auto-generate them. | |
| bool | hasCustomAssemblyFormat () const |
| Returns if the attribute or type has a custom assembly format implemented in C++. | |
| std::optional< StringRef > | getAssemblyFormat () const |
| Returns the custom assembly format, if one was specified. | |
| bool | genAccessors () const |
| Returns true if the accessors based on the parameters should be generated. | |
| bool | genVerifyDecl () const |
| Return true if we need to generate the verify declaration and getChecked method. | |
| bool | genVerifyInvariantsImpl () const |
| Return true if we need to generate any type constraint verification and the getChecked method. | |
| std::optional< StringRef > | getExtraDecls () const |
| Returns the def's extra class declaration code. | |
| std::optional< StringRef > | getExtraDefs () const |
| Returns the def's extra class definition code. | |
| bool | genMnemonicAlias () const |
| Returns true if we need to generate a default 'getAlias' implementation using the mnemonic. | |
| ArrayRef< SMLoc > | getLoc () const |
| Get the code location (for error printing). | |
| bool | skipDefaultBuilders () const |
| Returns true if the default get/getChecked methods should be skipped during generation. | |
| ArrayRef< AttrOrTypeBuilder > | getBuilders () const |
| Returns the builders of this def. | |
| ArrayRef< Trait > | getTraits () const |
| Returns the traits of this def. | |
| bool | operator== (const AttrOrTypeDef &other) const |
| Returns whether two AttrOrTypeDefs are equal by checking the equality of the underlying record. | |
| bool | operator< (const AttrOrTypeDef &other) const |
| Compares two AttrOrTypeDefs by comparing the names of the dialects. | |
| operator bool () const | |
| Returns whether the AttrOrTypeDef is defined. | |
| const llvm::Record * | getDef () const |
| Return the underlying def. | |
Static Public Member Functions | |
| static bool | classof (const AttrOrTypeDef *def) |
Additional Inherited Members | |
| Protected Attributes inherited from mlir::tblgen::AttrOrTypeDef | |
| const llvm::Record * | def |
| SmallVector< AttrOrTypeBuilder > | builders |
| The builders of this definition. | |
| SmallVector< Trait > | traits |
| The traits of this definition. | |
| SmallVector< AttrOrTypeParameter > | parameters |
| The parameters of this attribute or type. | |
This class represents a wrapper around a tablegen TypeDef record.
Definition at line 286 of file AttrOrTypeDef.h.
|
explicit |
Definition at line 153 of file AttrOrTypeDef.cpp.
Referenced by classof().
|
static |
Definition at line 246 of file AttrOrTypeDef.cpp.
References AttrOrTypeDef(), and mlir::tblgen::AttrOrTypeDef::def.
| StringRef TypeDef::getTypeName | ( | ) | const |
Get the unique type name "dialect.typename".
Definition at line 250 of file AttrOrTypeDef.cpp.
References mlir::tblgen::AttrOrTypeDef::def.