Lines Matching defs:Dialect
1 //===- Dialect.cpp - Dialect wrapper class --------------------------------===//
9 // Dialect wrapper to simplify using TableGen Record defining a MLIR dialect.
13 #include "mlir/TableGen/Dialect.h"
19 Dialect::Dialect(const llvm::Record *def) : def(def) {
26 StringRef Dialect::getName() const { return def->getValueAsString("name"); }
28 StringRef Dialect::getCppNamespace() const {
32 std::string Dialect::getCppClassName() const {
48 StringRef Dialect::getSummary() const {
52 StringRef Dialect::getDescription() const {
56 ArrayRef<StringRef> Dialect::getDependentDialects() const {
60 std::optional<StringRef> Dialect::getExtraClassDeclaration() const {
65 bool Dialect::hasCanonicalizer() const {
69 bool Dialect::hasConstantMaterializer() const {
73 bool Dialect::hasNonDefaultDestructor() const {
77 bool Dialect::hasOperationAttrVerify() const {
81 bool Dialect::hasRegionArgAttrVerify() const {
85 bool Dialect::hasRegionResultAttrVerify() const {
89 bool Dialect::hasOperationInterfaceFallback() const {
93 bool Dialect::useDefaultAttributePrinterParser() const {
97 bool Dialect::useDefaultTypePrinterParser() const {
101 bool Dialect::isExtensible() const {
105 bool Dialect::usePropertiesForAttributes() const {
109 const llvm::DagInit *Dialect::getDiscardableAttributes() const {
113 bool Dialect::operator==(const Dialect &other) const {
117 bool Dialect::operator<(const Dialect &other) const {