Lines Matching defs:NamedAttribute
203 // NamedAttribute
206 /// NamedAttribute represents a combination of a name and an Attribute value.
207 class NamedAttribute {
209 NamedAttribute(StringAttr name, Attribute value);
210 NamedAttribute(StringRef name, Attribute value);
234 bool operator<(const NamedAttribute &rhs) const;
238 bool operator==(const NamedAttribute &rhs) const {
241 bool operator!=(const NamedAttribute &rhs) const { return !(*this == rhs); }
244 NamedAttribute(Attribute name, Attribute value) : name(name), value(value) {}
247 friend ::llvm::hash_code hash_value(const NamedAttribute &arg);
248 friend DenseMapInfo<NamedAttribute>;
257 inline ::llvm::hash_code hash_value(const NamedAttribute &arg) {
262 /// Allow walking and replacing the subelements of a NamedAttribute.
264 struct AttrTypeSubElementHandler<NamedAttribute> {
392 struct DenseMapInfo<mlir::NamedAttribute> {
393 static mlir::NamedAttribute getEmptyKey() {
395 return mlir::NamedAttribute(emptyAttr, emptyAttr);
397 static mlir::NamedAttribute getTombstoneKey() {
399 return mlir::NamedAttribute(tombAttr, tombAttr);
401 static unsigned getHashValue(mlir::NamedAttribute val) {
404 static bool isEqual(mlir::NamedAttribute lhs, mlir::NamedAttribute rhs) {