Lines Matching defs:Property
1 //===- Property.cpp - Property wrapper class ----------------------------===//
9 // Property wrapper to simplify using TableGen Record defining a MLIR
10 // Property.
14 #include "mlir/TableGen/Property.h"
36 Property::Property(const Record *def)
37 : Property(
55 assert((def->isSubClassOf("Property") || def->isSubClassOf("Attr")) &&
56 "must be subclass of TableGen 'Property' class");
59 Property::Property(const DefInit *init) : Property(init->getDef()) {}
61 Property::Property(StringRef summary, StringRef description,
85 storageType = "Property";
88 StringRef Property::getPropertyDefName() const {
95 Pred Property::getPredicate() const {
104 Property Property::getBaseProperty() const {
107 return Property(defInit).getBaseProperty();