13 #ifndef MLIR_TABLEGEN_DIALECT_H_
14 #define MLIR_TABLEGEN_DIALECT_H_
17 #include "llvm/TableGen/Record.h"
32 explicit Dialect(
const llvm::Record *def);
97 const llvm::Record *
getDef()
const {
return def; }
109 explicit operator bool()
const {
return def !=
nullptr; }
112 const llvm::Record *def;
113 std::vector<StringRef> dependentDialects;
StringRef getDescription() const
const llvm::Record * getDef() const
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.
llvm::DagInit * getDiscardableAttributes() const
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.
bool operator==(const Dialect &other) const
bool usePropertiesForAttributes() const
Default to use properties for storing Attributes for operations in this dialect.
bool operator!=(const Dialect &other) const
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.