MLIR
17.0.0git
|
#include "mlir/TableGen/Dialect.h"
Public Member Functions | |
Dialect (const llvm::Record *def) | |
StringRef | getName () const |
StringRef | getCppNamespace () const |
std::string | getCppClassName () const |
StringRef | getSummary () const |
StringRef | getDescription () const |
ArrayRef< StringRef > | getDependentDialects () const |
std::optional< StringRef > | getExtraClassDeclaration () const |
bool | hasCanonicalizer () const |
Returns true if this dialect has a canonicalizer. More... | |
bool | hasConstantMaterializer () const |
Returns true if this dialect has a constant materializer. More... | |
bool | hasNonDefaultDestructor () const |
Returns true if the destructor definition is provided explicitly or false if a default should be generated. More... | |
bool | hasOperationAttrVerify () const |
Returns true if this dialect has an operation attribute verifier. More... | |
bool | hasRegionArgAttrVerify () const |
Returns true if this dialect has a region argument attribute verifier. More... | |
bool | hasRegionResultAttrVerify () const |
Returns true if this dialect has a region result attribute verifier. More... | |
bool | hasOperationInterfaceFallback () const |
Returns true if this dialect has fallback interfaces for its operations. More... | |
bool | useDefaultAttributePrinterParser () const |
Returns true if this dialect should generate the default dispatch for attribute printing/parsing. More... | |
bool | useDefaultTypePrinterParser () const |
Returns true if this dialect should generate the default dispatch for type printing/parsing. More... | |
bool | isExtensible () const |
Returns true if this dialect can be extended at runtime with new operations or types. More... | |
bool | usePropertiesForAttributes () const |
Default to use properties for storing Attributes for operations in this dialect. More... | |
bool | operator== (const Dialect &other) const |
bool | operator!= (const Dialect &other) const |
bool | operator< (const Dialect &other) const |
operator bool () const | |
|
explicit |
Definition at line 20 of file Dialect.cpp.
std::string Dialect::getCppClassName | ( | ) | const |
Definition at line 33 of file Dialect.cpp.
StringRef Dialect::getCppNamespace | ( | ) | const |
Definition at line 29 of file Dialect.cpp.
Referenced by mlir::tblgen::TypeConstraint::getCPPClassName(), and mlir::tblgen::NamespaceEmitter::NamespaceEmitter().
ArrayRef< StringRef > Dialect::getDependentDialects | ( | ) | const |
Definition at line 57 of file Dialect.cpp.
StringRef Dialect::getDescription | ( | ) | const |
Definition at line 53 of file Dialect.cpp.
References getAsStringOrEmpty().
std::optional< StringRef > Dialect::getExtraClassDeclaration | ( | ) | const |
Definition at line 61 of file Dialect.cpp.
StringRef mlir::tblgen::Dialect::getName | ( | ) | const |
StringRef Dialect::getSummary | ( | ) | const |
Definition at line 49 of file Dialect.cpp.
References getAsStringOrEmpty().
bool Dialect::hasCanonicalizer | ( | ) | const |
Returns true if this dialect has a canonicalizer.
Definition at line 66 of file Dialect.cpp.
bool Dialect::hasConstantMaterializer | ( | ) | const |
Returns true if this dialect has a constant materializer.
Definition at line 70 of file Dialect.cpp.
bool Dialect::hasNonDefaultDestructor | ( | ) | const |
Returns true if the destructor definition is provided explicitly or false if a default should be generated.
Definition at line 74 of file Dialect.cpp.
bool Dialect::hasOperationAttrVerify | ( | ) | const |
Returns true if this dialect has an operation attribute verifier.
Definition at line 78 of file Dialect.cpp.
bool Dialect::hasOperationInterfaceFallback | ( | ) | const |
Returns true if this dialect has fallback interfaces for its operations.
Definition at line 90 of file Dialect.cpp.
bool Dialect::hasRegionArgAttrVerify | ( | ) | const |
Returns true if this dialect has a region argument attribute verifier.
Definition at line 82 of file Dialect.cpp.
bool Dialect::hasRegionResultAttrVerify | ( | ) | const |
Returns true if this dialect has a region result attribute verifier.
Definition at line 86 of file Dialect.cpp.
bool Dialect::isExtensible | ( | ) | const |
Returns true if this dialect can be extended at runtime with new operations or types.
Definition at line 102 of file Dialect.cpp.
|
inlineexplicit |
|
inline |
bool Dialect::operator< | ( | const Dialect & | other | ) | const |
Definition at line 114 of file Dialect.cpp.
References getName().
bool Dialect::operator== | ( | const Dialect & | other | ) | const |
Definition at line 110 of file Dialect.cpp.
bool Dialect::useDefaultAttributePrinterParser | ( | ) | const |
Returns true if this dialect should generate the default dispatch for attribute printing/parsing.
Definition at line 94 of file Dialect.cpp.
bool Dialect::useDefaultTypePrinterParser | ( | ) | const |
Returns true if this dialect should generate the default dispatch for type printing/parsing.
Definition at line 98 of file Dialect.cpp.
bool Dialect::usePropertiesForAttributes | ( | ) | const |
Default to use properties for storing Attributes for operations in this dialect.
Definition at line 106 of file Dialect.cpp.