| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 88 return typeError(ErrorLoc, in popType() 95 return typeError(ErrorLoc, in popType() 140 return typeError(ErrorLoc, in checkBr() 160 if (popType(ErrorLoc, VT)) in checkEnd() 175 if (popType(ErrorLoc, VT)) in checkSig() 237 if (popType(ErrorLoc, RVT)) in endOfFunction() 261 if (popType(ErrorLoc, Type)) in typeCheck() 266 if (popType(ErrorLoc, Type)) in typeCheck() 325 if (popType(ErrorLoc, {})) in typeCheck() 338 if (checkEnd(ErrorLoc, in typeCheck() [all …]
|
| H A D | WebAssemblyAsmTypeCheck.h | 41 bool typeError(SMLoc ErrorLoc, const Twine &Msg); 42 bool popType(SMLoc ErrorLoc, std::optional<wasm::ValType> EVT); 43 bool popRefType(SMLoc ErrorLoc); 44 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 45 bool checkEnd(SMLoc ErrorLoc, bool PopVals = false); 46 bool checkBr(SMLoc ErrorLoc, size_t Level); 47 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig); 48 bool getSymRef(SMLoc ErrorLoc, const MCInst &Inst, 50 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 51 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); [all …]
|
| H A D | WebAssemblyAsmParser.cpp | 1073 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1077 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction() 1078 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1079 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1081 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1147 void onEndOfFunction(SMLoc ErrorLoc) { in onEndOfFunction() argument 1149 TC.endOfFunction(ErrorLoc); in onEndOfFunction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Error.h | 26 [[noreturn]] void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 35 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 41 [[noreturn]] void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | Error.cpp | 103 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() argument 104 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in PrintError() 132 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError() argument 133 PrintError(ErrorLoc, Msg); in PrintFatalError()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/ |
| H A D | RISCVAsmParser.cpp | 122 bool generateVTypeError(SMLoc ErrorLoc); 1396 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1402 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1403 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1413 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1584 return Error(ErrorLoc, in MatchAndEmitInstruction() 1593 return generateVTypeError(ErrorLoc); in MatchAndEmitInstruction() 1607 ErrorLoc, in MatchAndEmitInstruction() 1613 ErrorLoc, in MatchAndEmitInstruction() 2223 ErrorLoc, in generateVTypeError() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 694 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 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 794 return Error(ErrorLoc, "operand must be a symbol name"); in MatchAndEmitInstruction() 802 return Error(ErrorLoc, "psrset operand is not valid"); in MatchAndEmitInstruction() 806 return Error(ErrorLoc, "Register sequence is not valid"); in MatchAndEmitInstruction() 810 return Error(ErrorLoc, "register is out of range"); in MatchAndEmitInstruction() 814 return Error(ErrorLoc, "src and dst operand must be same"); in MatchAndEmitInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/ |
| H A D | XtensaAsmParser.cpp | 343 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local 344 if (ErrorLoc == SMLoc()) in RefineErrorLoc() 346 return ErrorLoc; in RefineErrorLoc() 372 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 375 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 377 ErrorLoc = ((XtensaOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 378 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 379 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 381 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 309 SMLoc ErrorLoc; in MatchAndEmitInstruction() local 326 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 330 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 332 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 334 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 335 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 338 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/ |
| H A D | LoongArchAsmParser.cpp | 1295 SMLoc ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 1334 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1337 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 1339 ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1340 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1341 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1343 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1351 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1353 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 1515 return Error(ErrorLoc, "operand must be a 32 bit immediate"); in MatchAndEmitInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/ |
| H A D | LanaiAsmParser.cpp | 654 SMLoc ErrorLoc; in MatchAndEmitInstruction() local 666 ErrorLoc = IdLoc; in MatchAndEmitInstruction() 671 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 672 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 673 ErrorLoc = IdLoc; in MatchAndEmitInstruction() 675 return Error(ErrorLoc, "Invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 1219 SMLoc ErrorLoc = Parser.getTok().getLoc(); in ParseDirectiveInsn() local 1221 return Error(ErrorLoc, "expected instruction format"); in ParseDirectiveInsn() 1232 return Error(ErrorLoc, "unrecognized format"); in ParseDirectiveInsn() 1553 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1558 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1559 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1560 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1562 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 11697 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local 11746 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation() 11765 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local 11826 NoteLoc = ErrorLoc = S->getBeginLoc(); in checkStatement() 11920 SourceLocation ErrorLoc; member 12023 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkCondUpdateStmt() 12816 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local 12879 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local 12964 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local 13109 : SourceRange(ErrorLoc, ErrorLoc); in ActOnOpenMPAtomicDirective() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 2345 SourceLocation ErrorLoc; in createSubstDiag() local 2351 ErrorLoc = PDA.first; in createSubstDiag() 2353 ErrorLoc = Info.getLocation(); in createSubstDiag() 2363 StringRef(EntityBuf, Entity.size()), ErrorLoc, in createSubstDiag()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 288 SMLoc ErrorLoc = Loc; in invalidOperand() local 299 ErrorLoc = Op.getStartLoc(); in invalidOperand() 308 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 781 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 786 ErrorLoc = ((VEOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 787 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 788 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 791 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 993 SMLoc ErrorLoc = Loc; in invalidOperand() local 1002 ErrorLoc = Op.getStartLoc(); in invalidOperand() 1011 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
| H A D | SparcAsmParser.cpp | 785 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 790 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 791 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 792 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 795 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/ |
| H A D | HexagonAsmParser.cpp | 586 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local 591 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction() 593 if (ErrorLoc == SMLoc()) in matchOneInstruction() 594 ErrorLoc = IDLoc; in matchOneInstruction() 596 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 1276 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1281 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1282 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1285 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 28 bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { in Error() argument 29 ErrorInfo = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in Error()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 4095 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitATTInstruction() local 4096 if (ErrorLoc == SMLoc()) in MatchAndEmitATTInstruction() 4097 ErrorLoc = IDLoc; in MatchAndEmitATTInstruction() 4098 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitATTInstruction() 4489 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitIntelInstruction() local 4490 if (ErrorLoc == SMLoc()) in MatchAndEmitIntelInstruction() 4491 ErrorLoc = IDLoc; in MatchAndEmitIntelInstruction() 4492 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitIntelInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/ |
| H A D | AArch64AsmParser.cpp | 6474 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 6481 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 6482 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 6483 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 6491 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction() 6703 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local 6704 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 6705 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 6706 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
|