Home
last modified time | relevance | path

Searched refs:emitError (Results 1 – 25 of 272) sorted by relevance

1234567891011

/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/
H A DSparseTensorDialect.cpp58 parser.emitError(parser.getNameLoc(), in parse()
65 parser.emitError(parser.getNameLoc(), in parse()
77 parser.emitError(parser.getNameLoc(), in parse()
86 parser.emitError(parser.getNameLoc(), in parse()
94 parser.emitError(parser.getNameLoc(), in parse()
102 parser.emitError(parser.getNameLoc(), in parse()
144 function_ref<InFlightDiagnostic()> emitError, in verify() argument
153 return emitError() in verify()
227 return emitError("unexpected type in convert"); in verify()
250 return emitError("unexpected type for indices"); in verify()
[all …]
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp170 return emitError( in processExtension()
232 return emitError( in processDecoration()
404 return emitError( in processFunction()
410 return emitError( in processFunction()
551 return emitError( in processGlobalVariable()
675 return emitError( in processType()
712 return emitError( in processType()
1031 return emitError( in processImageType()
1525 return emitError( in processSelectionMerge()
1536 return emitError( in processSelectionMerge()
[all …]
H A DDeserializeOps.cpp225 return emitError(unknownLoc, in processOpWithoutGrammarAttr()
239 return emitError(unknownLoc, in processOpWithoutGrammarAttr()
259 return emitError( in processOpWithoutGrammarAttr()
266 return emitError( in processOpWithoutGrammarAttr()
310 return emitError(unknownLoc, in processExtInst()
332 return emitError(unknownLoc, in processOp()
354 return emitError(unknownLoc, in processOp()
381 return emitError(unknownLoc, in processOp()
413 return emitError( in processOp()
442 return emitError(unknownLoc, in processOp()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/
H A DQuantTypes.cpp32 QuantizedType::verify(function_ref<InFlightDiagnostic()> emitError, in verify() argument
40 return emitError() << "storage type must be integral"; in verify()
57 return emitError() << "illegal storage min and storage max: (" in verify()
247 return emitError() << "expressed type must be floating point"; in verify()
262 function_ref<InFlightDiagnostic()> emitError, unsigned flags, in getChecked() argument
271 function_ref<InFlightDiagnostic()> emitError, unsigned flags, in verify() argument
288 return emitError() << "expressed type must be floating point"; in verify()
292 return emitError() << "illegal scale: " << scale; in verify()
314 function_ref<InFlightDiagnostic()> emitError, unsigned flags, in getChecked() argument
324 function_ref<InFlightDiagnostic()> emitError, unsigned flags, in verify() argument
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/
H A DBufferizationDialect.cpp69 return op->emitError() << "'" << kWritableAttrName in verifyOperationAttribute()
73 return op->emitError() << "expected " << attr.getName() in verifyOperationAttribute()
79 return op->emitError() << "'" << kBufferLayoutAttrName in verifyOperationAttribute()
83 return op->emitError() << "expected " << attr.getName() in verifyOperationAttribute()
90 return op->emitError() << "'" << kEscapeAttrName in verifyOperationAttribute()
93 return op->emitError() in verifyOperationAttribute()
99 return op->emitError() in verifyOperationAttribute()
105 return op->emitError() << "'" << kEscapeAttrName in verifyOperationAttribute()
110 return op->emitError() in verifyOperationAttribute()
113 return op->emitError() << "'" << kEscapeAttrName in verifyOperationAttribute()
[all …]
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DFormatGen.cpp42 return emitError(SMLoc::getFromPointer(loc), msg); in emitError()
92 return emitError(tokStart, "unexpected character"); in lexToken()
221 return emitError(curToken.getLoc(), in parseElement()
231 return emitError( in parseLiteral()
280 return emitError(loc, in parseOptionalGroup()
401 if (emitError) in canFormatStringAsKeyword()
408 if (emitError) in canFormatStringAsKeyword()
409 emitError( in canFormatStringAsKeyword()
419 if (emitError) in isValidLiteral()
420 emitError("literal can't be empty"); in isValidLiteral()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DLLVMTypes.h100 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
152 getChecked(function_ref<InFlightDiagnostic()> emitError, Type result,
177 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
212 getChecked(function_ref<InFlightDiagnostic()> emitError, Type pointee,
229 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
231 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError, in verify() argument
302 getIdentifiedChecked(function_ref<InFlightDiagnostic()> emitError,
318 getLiteralChecked(function_ref<InFlightDiagnostic()> emitError,
330 getOpaqueChecked(function_ref<InFlightDiagnostic()> emitError,
360 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/NVGPU/IR/
H A DNVGPUDialect.cpp44 parser.emitError(parser.getNameLoc(), "unknown nvgpu type: " + keyword); in parseType()
73 return emitError("source memref most minor dim must have unit stride"); in verify()
75 return emitError("destination memref most minor dim must have unit stride"); in verify()
77 return emitError("destination memref must have memory space ") in verify()
80 return emitError("source and destination must have the same element type"); in verify()
143 return emitError() << "expected input data type (i4,i8,f16,bf16,tf32,f64) " in verify()
226 return emitError() in verify()
230 return emitError() << "nvgpu.ldmatrix works for 32b or lower"; in verify()
232 return emitError() in verify()
235 return emitError() << "expected vector register shape[1] = " in verify()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypes.cpp45 LLVMArrayType::getChecked(function_ref<InFlightDiagnostic()> emitError, in getChecked() argument
59 LLVMArrayType::verify(function_ref<InFlightDiagnostic()> emitError, in verify() argument
158 return emitError() << "invalid function result type: " << result; in verify()
206 return Base::getChecked(emitError, pointee.getContext(), pointee, in getChecked()
213 return Base::getChecked(emitError, context, Type(), addressSpace); in getChecked()
363 return emitError(loc) in verifyEntries()
438 return Base::getChecked(emitError, context, types, isPacked); in getLiteralChecked()
607 return emitError(loc) in verifyEntries()
655 return emitError() << "invalid vector element type"; in verifyVectorConstructionInvariants()
690 emitError, elementType, numElements); in verify()
[all …]
H A DLLVMTypeSyntax.cpp274 parser.emitError(dimPos) in parseVectorType()
283 parser.emitError(typePos) in parseVectorType()
303 parser.emitError(sizePos) << "expected ? x <type>"; in parseArrayType()
317 parser.emitError(subtypesLoc) in trySetStructBody()
326 parser.emitError(subtypesLoc) in trySetStructBody()
367 [loc] { return emitError(loc); }, loc.getContext(), name); in parseStructType()
382 [loc] { return emitError(loc); }, loc.getContext(), name); in parseStructType()
403 [loc] { return emitError(loc); }, loc.getContext(), name); in parseStructType()
430 [loc] { return emitError(loc); }, loc.getContext(), name); in parseStructType()
473 parser.emitError(keyLoc) << "unknown LLVM type: " << key; in dispatchParse()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVDialect.cpp174 parser.emitError(typeLoc, in parseAndVerifyType()
185 parser.emitError( in parseAndVerifyType()
212 parser.emitError(typeLoc, in parseAndVerifyMatrixType()
243 parser.emitError(typeLoc, in parseAndVerifySampledImageType()
295 parser.emitError(countLoc, in parseArrayType()
581 return parser.emitError(offsetLoc, in parseStructMemberDecorations()
664 parser.emitError( in parseStructType()
720 parser.emitError(parser.getNameLoc(), in parseStructType()
899 return op->emitError("'") in verifyOperationAttribute()
926 return emitError(loc, "'") in verifyRegionAttribute()
[all …]
H A DSPIRVAttributes.cpp167 return emitError() << "expected 32-bit integer for binding"; in verify()
174 return emitError() << "unknown storage class"; in verify()
176 return emitError() << "expected valid storage class"; in verify()
260 return emitError() << "expected 32-bit integer for version"; in verify()
268 return emitError() << "unknown capability in capability list"; in verify()
276 return emitError() << "unknown extension in extension list"; in verify()
392 parser.emitError(loc, "missing descriptor set"); in parseInterfaceVarABIAttr()
408 parser.emitError(loc, "missing binding"); in parseInterfaceVarABIAttr()
460 parser.emitError(loc, "unknown version: ") << version; in parseVerCapExtAttr()
537 parser.emitError(loc, "unknown vendor: ") << vendorStr; in parseTargetEnvAttr()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/OpenMP/IR/
H A DOpenMPDialect.cpp481 return emitError( in verify()
492 return emitError( in verify()
512 return emitError( in verify()
696 return emitError( in verify()
713 return emitError( in verify()
807 return emitError( in verify()
812 return emitError( in verify()
825 return emitError( in verify()
843 return emitError( in verify()
912 return emitError() in verifyRegions()
[all …]
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestAttributes.cpp104 TestI64ElementsAttr::verify(function_ref<InFlightDiagnostic()> emitError, in verify() argument
107 return emitError() in verify()
112 return emitError() << "expected single rank 64-bit shape type, but got: " in verify()
118 function_ref<InFlightDiagnostic()> emitError, int64_t one, std::string two, in verify() argument
122 return emitError() << "expected 'one' to equal 'four.size()'"; in verify()
208 [](function_ref<InFlightDiagnostic()> emitError, in getDynamicSingletonAttr()
211 emitError() << "expected 0 attribute arguments, but had " in getDynamicSingletonAttr()
224 [](function_ref<InFlightDiagnostic()> emitError, in getDynamicPairAttr() argument
227 emitError() << "expected 2 attribute arguments, but had " in getDynamicPairAttr()
237 auto verifier = [](function_ref<InFlightDiagnostic()> emitError, in getDynamicCustomAssemblyFormatAttr() argument
[all …]
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DTypeParser.cpp127 return emitError(elementTypeLoc, "invalid element type for complex"), in parseComplexType()
222 return emitError(typeLoc, "invalid memref element type"), nullptr; in parseMemRefType()
313 return (emitError("invalid integer width"), nullptr); in parseNonFunctionType()
315 emitError(getToken().getLoc(), "integer bitwidth is limited to ") in parseNonFunctionType()
407 [&] { return emitError(); }))) in parseTensorType()
466 return emitError(getToken().getLoc(), in parseVectorType()
548 return emitError(loc, "expected static shape"); in parseDimensionListRanked()
597 return emitError("invalid dimension"); in parseIntegerInDimensionList()
633 return emitError("invalid integer value: ") in parseStrideList()
637 return emitError("invalid integer value: ") in parseStrideList()
[all …]
H A DParser.cpp160 return emitError(loc, message); in emitError()
331 return emitError(nameLoc) in parseResourceHandle()
853 return emitError(useInfo.location) in addDefinition()
860 return emitError(useInfo.location) in addDefinition()
1019 return emitError("expected ") in parseOptionalSSAUseAndTypeList()
1099 return emitError( in parseOperation()
1904 return emitError(tok.getLoc()) in parseLocationAlias()
1913 return emitError(tok.getLoc()) in parseLocationAlias()
2324 InFlightDiagnostic emitError() const final { return p.emitError(keyLoc); } in emitError() function in __anon220499431411::ParsedResourceEntry
2331 return p.emitError(value.getLoc(), in parseAsBool()
[all …]
H A DAttributeParser.cpp295 return emitError("expected valid attribute name"); in parseAttributeDict()
298 return emitError("duplicate key '") in parseAttributeDict()
420 emitError(loc, in parseDecOrHexAttr()
444 return parser.emitError( in parseElementAttrHexValues()
603 return p.emitError(tokenLoc) in getIntAttrElements()
609 return p.emitError(tokenLoc) in getIntAttrElements()
617 return p.emitError(tokenLoc) in getIntAttrElements()
658 return p.emitError() in getFloatAttrElements()
702 p.emitError(loc) in getHexAttr()
900 emitError("expected ']' to close an array attribute"); in parseDenseArrayAttr()
[all …]
H A DAffineParser.cpp127 emitError(opLoc, "non-affine expression: right operand of ceildiv " in getAffineBinaryOpExpr()
134 emitError(opLoc, "non-affine expression: right operand of mod " in getAffineBinaryOpExpr()
241 return emitError("no expression inside parentheses"), nullptr; in parseParentheticalExpr()
264 return emitError("missing operand of negation"), nullptr; in parseNegateExpression()
336 return emitError("constant too large for index"), nullptr; in parseIntegerExpr()
371 emitError("missing right operand of binary operator"); in parseAffineOperandExpr()
373 emitError("missing left operand of binary operator"); in parseAffineOperandExpr()
381 emitError("missing right operand of binary operator"); in parseAffineOperandExpr()
383 emitError("expected affine expression"); in parseAffineOperandExpr()
479 return emitError("redefinition of identifier '" + name + "'"); in parseIdentifierDefinition()
[all …]
H A DLexer.cpp61 Token Lexer::emitError(const char *loc, const Twine &message) { in emitError() function in Lexer
62 mlir::emitError(getEncodedSourceLocation(SMLoc::getFromPointer(loc)), in emitError()
83 return emitError(tokStart, "unexpected character"); in lexToken()
154 return emitError(tokStart, "unexpected character"); in lexToken()
204 return emitError(curPtr - 1, in lexAtIdentifier()
284 return emitError(curPtr, "expected three consecutive dots for an ellipsis"); in lexEllipsis()
381 return emitError(curPtr - 1, errorKind); in lexPrefixedIdentifier()
422 return emitError(curPtr - 1, "expected '\"' in string literal"); in lexString()
431 return emitError(curPtr - 1, "unknown escape in string literal"); in lexString()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DQuantTypes.h60 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
213 getChecked(function_ref<InFlightDiagnostic()> emitError, unsigned flags,
218 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
273 getChecked(function_ref<InFlightDiagnostic()> emitError, unsigned flags,
278 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
332 getChecked(function_ref<InFlightDiagnostic()> emitError, unsigned flags,
338 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
398 getChecked(function_ref<InFlightDiagnostic()> emitError, Type expressedType,
402 static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTensorSpec.cpp51 Ctx.emitError("Unable to parse JSON Value as spec (" + Message + "): " + S); in getTensorSpecFromJSON()
94 Ctx.emitError("Error opening output specs file: " + FileName + " : " + in loadOutputSpecs()
100 Ctx.emitError("Could not parse specs file: " + FileName); in loadOutputSpecs()
105 Ctx.emitError("Expected an array of {tensor_spec:<TensorSpec>, " in loadOutputSpecs()
118 Ctx.emitError( in loadOutputSpecs()
128 Ctx.emitError( in loadOutputSpecs()
137 Ctx.emitError("The first output spec must describe the decision tensor, " in loadOutputSpecs()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DLexer.cpp121 Token Lexer::emitError(SMRange loc, const Twine &msg) { in emitError() function in Lexer
122 diagEngine.emitError(loc, msg); in emitError()
127 diagEngine.emitError(loc, msg)->attachNote(note, noteLoc); in emitErrorAndNote()
130 Token Lexer::emitError(const char *loc, const Twine &msg) { in emitError() function in Lexer
131 return emitError( in emitError()
178 return emitError(tokStart, "unexpected character"); in lexToken()
200 return emitError(tokStart, "unexpected character"); in lexToken()
241 return emitError(tokStart, "unexpected character"); in lexToken()
381 return emitError(curPtr - 1, in lexString()
390 return emitError(curPtr - 1, "expected '\"' in string literal"); in lexString()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/DLTI/
H A DDLTI.cpp81 parser.emitError(idLoc) << "expected a type or a quoted string"; in parse()
139 DataLayoutSpecAttr::getChecked(function_ref<InFlightDiagnostic()> emitError, in getChecked() argument
142 return Base::getChecked(emitError, context, entries); in getChecked()
146 DataLayoutSpecAttr::verify(function_ref<InFlightDiagnostic()> emitError, in verify() argument
153 return emitError() << "repeated layout entry key: " << type; in verify()
157 return emitError() << "repeated layout entry key: " << id.getValue(); in verify()
294 return getChecked([&] { return parser.emitError(parser.getNameLoc()); }, in parse()
327 return emitError(loc) << "'" << entryName in verifyEntry()
353 parser.emitError(parser.getNameLoc(), "unknown attrribute type: ") in parseAttribute()
369 return op->emitError() << "'" << DLTIDialect::kDataLayoutAttrName in verifyOperationAttribute()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRType.cpp85 parser.emitError(loc, "cannot redefine record type members"); in verifyDerived()
90 parser.emitError(loc, "LEN parameter must be integral type"); in verifyDerived()
95 parser.emitError(loc, "field parameter has invalid type"); in verifyDerived()
106 parser.emitError(loc, "field cannot have duplicate name"); in verifyDerived()
554 llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify() argument
690 llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify() argument
693 return emitError() << "record types must have a name"; in verify()
725 llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify() argument
814 llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify() argument
889 llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify() argument
[all …]
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinTypes.cpp55 return emitError() << "invalid element type for complex"; in verify()
71 return emitError() << "integer bitwidth is limited to " in verify()
217 return emitError() in verify()
236 return emitError() in verify()
241 return emitError() in verify()
342 return checkTensorElementType(emitError, elementType); in verify()
366 return checkTensorElementType(emitError, elementType); in verify()
663 return emitError() << "invalid memref element type"; in verify()
668 return emitError() << "invalid memref size"; in verify()
671 if (failed(layout.verifyLayout(shape, emitError))) in verify()
[all …]

1234567891011