Lines Matching defs:attribute
127 Operation *op, NamedAttribute attribute) {
128 if (attribute.getName().getValue() == kWithNamedSequenceAttrName) {
130 return emitError(op->getLoc()) << attribute.getName()
131 << " attribute can only be attached to "
164 if (attribute.getName().getValue() == kTargetTagAttrName) {
165 if (!llvm::isa<StringAttr>(attribute.getValue())) {
167 << attribute.getName() << " attribute must be a string";
171 if (attribute.getName().getValue() == kArgConsumedAttrName ||
172 attribute.getName().getValue() == kArgReadOnlyAttrName) {
173 if (!llvm::isa<UnitAttr>(attribute.getValue())) {
175 << attribute.getName() << " must be a unit attribute";
179 if (attribute.getName().getValue() ==
181 if (!llvm::isa<UnitAttr>(attribute.getValue())) {
183 << attribute.getName() << " must be a unit attribute";
188 << "unknown attribute: " << attribute.getName();