Lines Matching defs:emitError

50         return parser.emitError(parser.getCurrentLocation())
78 return parser.emitError(parser.getCurrentLocation())
100 parser.emitError(parser.getNameLoc()) << "no DLTI entries provided";
104 return Attr::getChecked([&] { return parser.emitError(parser.getNameLoc()); },
136 static LogicalResult verifyEntries(function_ref<InFlightDiagnostic()> emitError,
142 return emitError() << "contained invalid DLTI entry";
145 return emitError() << "contained invalid DLTI key";
147 return emitError() << "type as DLTI key is not allowed";
150 return emitError() << "empty string as DLTI key is not allowed";
152 return emitError() << "repeated DLTI key: " << keyToStr(key);
154 return emitError() << "value associated to DLTI key " << keyToStr(key)
218 parser.emitError(idLoc) << "expected a type or a quoted string";
253 LogicalResult MapAttr::verify(function_ref<InFlightDiagnostic()> emitError,
255 return verifyEntries(emitError, entries);
263 DataLayoutSpecAttr::verify(function_ref<InFlightDiagnostic()> emitError,
265 return verifyEntries(emitError, entries);
425 TargetDeviceSpecAttr::verify(function_ref<InFlightDiagnostic()> emitError,
427 return verifyEntries(emitError, entries, /*allowTypes=*/false);
447 TargetSystemSpecAttr::verify(function_ref<InFlightDiagnostic()> emitError,
455 return emitError() << "non-string key of DLTI system spec";
459 if (failed(TargetDeviceSpecAttr::verify(emitError,
463 return emitError() << "value associated with key " << deviceId
469 return emitError() << "repeated device ID in dlti.target_system_spec: "
510 dlti::query(Operation *op, ArrayRef<DataLayoutEntryKey> keys, bool emitError) {
512 if (emitError) {
513 auto diag = op->emitError() << "target op of failed DLTI query";
523 if (emitError) {
524 auto diag = op->emitError() << "target op of failed DLTI query";
536 if (emitError) {
537 auto diag = op->emitError() << "target op of failed DLTI query";
546 if (emitError) {
553 auto diag = op->emitError() << "target op of failed DLTI query";
584 return emitError(loc) << "'" << entryName
594 return emitError(loc) << "unknown data layout entry name: " << entryName;
611 return op->emitError() << "'" << DLTIDialect::kDataLayoutAttrName
621 return op->emitError()
630 return op->emitError() << "'" << DLTIDialect::kMapAttrName
636 return op->emitError() << "attribute '" << attr.getName().getValue()