13 #ifndef MLIR_TABLEGEN_DIALECT_H_
14 #define MLIR_TABLEGEN_DIALECT_H_
30 explicit Dialect(
const llvm::Record *def);
108 explicit operator bool()
const {
return def !=
nullptr; }
111 const llvm::Record *def;
112 std::vector<StringRef> dependentDialects;
StringRef getDescription() const
FolderAPI getFolderAPI() const
Returns the folder API that should be emitted for operations in this dialect.
Dialect(const llvm::Record *def)
StringRef getSummary() const
std::optional< StringRef > getExtraClassDeclaration() const
ArrayRef< StringRef > getDependentDialects() const
bool hasRegionArgAttrVerify() const
Returns true if this dialect has a region argument attribute verifier.
bool hasNonDefaultDestructor() const
Returns true if the destructor definition is provided explicitly or false if a default should be gene...
StringRef getCppNamespace() const
bool useDefaultAttributePrinterParser() const
Returns true if this dialect should generate the default dispatch for attribute printing/parsing.
bool isExtensible() const
Returns true if this dialect can be extended at runtime with new operations or types.
StringRef getName() const
bool hasOperationInterfaceFallback() const
Returns true if this dialect has fallback interfaces for its operations.
bool hasCanonicalizer() const
Returns true if this dialect has a canonicalizer.
bool operator<(const Dialect &other) const
bool hasConstantMaterializer() const
Returns true if this dialect has a constant materializer.
std::string getCppClassName() const
bool hasRegionResultAttrVerify() const
Returns true if this dialect has a region result attribute verifier.
bool useDefaultTypePrinterParser() const
Returns true if this dialect should generate the default dispatch for type printing/parsing.
bool hasOperationAttrVerify() const
Returns true if this dialect has an operation attribute verifier.
@ FolderAdaptor
fold method with ArrayRef<Attribute>.
bool operator==(const Dialect &other) const
bool operator!=(const Dialect &other) const
Include the generated interface declarations.
Include the generated interface declarations.