| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 65 bool WebAssemblyAsmTypeCheck::typeError(SMLoc ErrorLoc, const Twine &Msg) { in typeError() argument 67 return Parser.Error(ErrorLoc, Msg); in typeError() 134 bool WebAssemblyAsmTypeCheck::checkTypes(SMLoc ErrorLoc, in checkTypes() argument 137 return checkTypes(ErrorLoc, valTypesToStackTypes(ValTypes), ExactMatch); in checkTypes() 140 bool WebAssemblyAsmTypeCheck::checkTypes(SMLoc ErrorLoc, in checkTypes() argument 187 return typeError(ErrorLoc, "type mismatch, expected " + in checkTypes() 192 bool WebAssemblyAsmTypeCheck::popTypes(SMLoc ErrorLoc, in popTypes() argument 195 return popTypes(ErrorLoc, valTypesToStackTypes(ValTypes), ExactMatch); in popTypes() 198 bool WebAssemblyAsmTypeCheck::popTypes(SMLoc ErrorLoc, in popTypes() argument 201 bool Error = checkTypes(ErrorLoc, Types, ExactMatch); in popTypes() [all …]
|
| H A D | WebAssemblyAsmTypeCheck.h | 54 bool checkTypes(SMLoc ErrorLoc, ArrayRef<wasm::ValType> Types, 56 bool checkTypes(SMLoc ErrorLoc, ArrayRef<StackType> Types, 58 bool popTypes(SMLoc ErrorLoc, ArrayRef<wasm::ValType> Types, 60 bool popTypes(SMLoc ErrorLoc, ArrayRef<StackType> Types, 62 bool popType(SMLoc ErrorLoc, StackType Type); 63 bool popRefType(SMLoc ErrorLoc); 64 bool popAnyType(SMLoc ErrorLoc); 75 bool typeError(SMLoc ErrorLoc, const Twine &Msg); 76 bool getLocal(SMLoc ErrorLoc, const MCOperand &LocalOp, wasm::ValType &Type); 77 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig); [all …]
|
| H A D | WebAssemblyAsmParser.cpp | 1205 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 1209 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in matchAndEmitInstruction() 1210 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 1211 ErrorLoc = IDLoc; in matchAndEmitInstruction() 1213 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction() 1278 void onEndOfFunction(SMLoc ErrorLoc) { in onEndOfFunction() argument 1280 TC.endOfFunction(ErrorLoc, true); in onEndOfFunction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 84 bool ParseError(LocTy ErrorLoc, const Twine &Msg) { in ParseError() argument 85 Error(ErrorLoc, Msg, ErrorPriority::Parser); in ParseError() 122 void Error(LocTy ErrorLoc, const Twine &Msg, ErrorPriority Origin); 124 void LexError(LocTy ErrorLoc, const Twine &Msg) { in LexError() argument 125 Error(ErrorLoc, Msg, ErrorPriority::Lexer); in LexError()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Error.h | 30 [[noreturn]] void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 40 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 46 [[noreturn]] void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
|
| /freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | Error.cpp | 110 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() argument 111 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in PrintError() 142 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError() argument 143 PrintError(ErrorLoc, Msg); in PrintFatalError()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 655 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 656 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError() 694 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 697 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() 699 ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 700 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 701 ErrorLoc = IDLoc; in matchAndEmitInstruction() 703 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction() 711 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 713 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 315 SMLoc ErrorLoc; in matchAndEmitInstruction() local 332 ErrorLoc = IDLoc; in matchAndEmitInstruction() 336 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() 338 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 340 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 341 ErrorLoc = IDLoc; in matchAndEmitInstruction() 344 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/ |
| H A D | RISCVAsmParser.cpp | 104 bool generateImmOutOfRangeError(SMLoc ErrorLoc, int64_t Lower, int64_t Upper, 125 bool generateVTypeError(SMLoc ErrorLoc); 127 bool generateXSfmmVTypeError(SMLoc ErrorLoc); 1366 SMLoc ErrorLoc, int64_t Lower, int64_t Upper, in generateImmOutOfRangeError() argument 1368 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError() 1374 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 1375 return generateImmOutOfRangeError(ErrorLoc, Lower, Upper, Msg); in generateImmOutOfRangeError() 1415 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 1418 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() 1420 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/ |
| H A D | XtensaAsmParser.cpp | 386 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local 387 if (ErrorLoc == SMLoc()) in RefineErrorLoc() 389 return ErrorLoc; in RefineErrorLoc() 471 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 474 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() 476 ErrorLoc = ((XtensaOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 477 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 478 ErrorLoc = IDLoc; in matchAndEmitInstruction() 480 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 272 SMLoc ErrorLoc = Loc; in matchAndEmitInstruction() local 275 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() 277 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 278 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 279 ErrorLoc = Loc; in matchAndEmitInstruction() 281 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/ |
| H A D | LoongArchAsmParser.cpp | 1646 SMLoc ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 1647 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError() 1685 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 1688 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() 1690 ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 1691 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 1692 ErrorLoc = IDLoc; in matchAndEmitInstruction() 1694 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction() 1702 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 1704 return Error(ErrorLoc, "too few operands for instruction"); in matchAndEmitInstruction() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaOpenCL.cpp | 122 SourceLocation ErrorLoc; in checkBlockArgs() local 125 ErrorLoc = BD->getParamDecl(ArgCounter)->getBeginLoc(); in checkBlockArgs() 127 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getBeginLoc(); in checkBlockArgs() 129 S.Diag(ErrorLoc, in checkBlockArgs()
|
| H A D | SemaOpenMP.cpp | 11436 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local 11466 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation() 11473 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation() 11480 NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc(); in checkBinaryOperation() 11485 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation() 11492 SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange; in checkBinaryOperation() 11504 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local 11544 ErrorLoc = AtomicUnaryOp->getExprLoc(); in checkStatement() 11551 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement() 11555 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/ |
| H A D | LanaiAsmParser.cpp | 653 SMLoc ErrorLoc; in matchAndEmitInstruction() local 665 ErrorLoc = IdLoc; in matchAndEmitInstruction() 670 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 671 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 672 ErrorLoc = IdLoc; in matchAndEmitInstruction() 674 return Error(ErrorLoc, "Invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 1265 SMLoc ErrorLoc = Parser.getTok().getLoc(); in parseDirectiveInsn() local 1267 return Error(ErrorLoc, "expected instruction format"); in parseDirectiveInsn() 1278 return Error(ErrorLoc, "unrecognized format"); in parseDirectiveInsn() 1622 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 1627 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 1628 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 1629 ErrorLoc = IDLoc; in matchAndEmitInstruction() 1631 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 291 SMLoc ErrorLoc = Loc; in invalidOperand() local 302 ErrorLoc = Op.getStartLoc(); in invalidOperand() 311 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 791 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 796 ErrorLoc = ((VEOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 797 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 798 ErrorLoc = IDLoc; in matchAndEmitInstruction() 801 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 998 SMLoc ErrorLoc = Loc; in invalidOperand() local 1007 ErrorLoc = Op.getStartLoc(); in invalidOperand() 1016 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
| H A D | SparcAsmParser.cpp | 917 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 922 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 923 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 924 ErrorLoc = IDLoc; in matchAndEmitInstruction() 927 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 1297 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 1302 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 1303 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in matchAndEmitInstruction() 1306 return Error(ErrorLoc, "invalid operand for instruction"); in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/ |
| H A D | HexagonAsmParser.cpp | 595 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local 600 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction() 602 if (ErrorLoc == SMLoc()) in matchOneInstruction() 603 ErrorLoc = IDLoc; in matchOneInstruction() 605 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 4309 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitATTInstruction() local 4310 if (ErrorLoc == SMLoc()) in matchAndEmitATTInstruction() 4311 ErrorLoc = IDLoc; in matchAndEmitATTInstruction() 4312 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in matchAndEmitATTInstruction() 4672 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitIntelInstruction() local 4673 if (ErrorLoc == SMLoc()) in matchAndEmitIntelInstruction() 4674 ErrorLoc = IDLoc; in matchAndEmitIntelInstruction() 4675 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in matchAndEmitIntelInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 37 void LLLexer::Error(LocTy ErrorLoc, const Twine &Msg, in Error() argument 41 ErrorInfo.Error = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in Error()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/ |
| H A D | AArch64AsmParser.cpp | 6747 SMLoc ErrorLoc = IDLoc; in matchAndEmitInstruction() local 6754 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() 6755 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 6756 ErrorLoc = IDLoc; in matchAndEmitInstruction() 6764 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in matchAndEmitInstruction() 6998 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitInstruction() local 6999 if (ErrorLoc == SMLoc()) in matchAndEmitInstruction() 7000 ErrorLoc = IDLoc; in matchAndEmitInstruction() 7001 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in matchAndEmitInstruction()
|