| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 72 bool WebAssemblyAsmTypeCheck::typeError(SMLoc ErrorLoc, const Twine &Msg) { in typeError() argument 82 return Parser.Error(ErrorLoc, Msg); in typeError() 85 bool WebAssemblyAsmTypeCheck::popType(SMLoc ErrorLoc, in popType() argument 88 return typeError(ErrorLoc, in popType() 95 return typeError(ErrorLoc, in popType() 102 bool WebAssemblyAsmTypeCheck::popRefType(SMLoc ErrorLoc) { in popRefType() argument 104 return typeError(ErrorLoc, StringRef("empty stack while popping reftype")); in popRefType() 108 return typeError(ErrorLoc, StringRef("popped ") + in popRefType() 115 bool WebAssemblyAsmTypeCheck::getLocal(SMLoc ErrorLoc, const MCInst &Inst, in getLocal() argument 119 return typeError(ErrorLoc, StringRef("no local type specified for index ") + in getLocal() [all …]
|
| H A D | WebAssemblyAsmTypeCheck.h | 40 bool typeError(SMLoc ErrorLoc, const Twine &Msg); 41 bool popType(SMLoc ErrorLoc, std::optional<wasm::ValType> EVT); 42 bool popRefType(SMLoc ErrorLoc); 43 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 44 bool checkEnd(SMLoc ErrorLoc, bool PopVals = false); 45 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig); 46 bool getSymRef(SMLoc ErrorLoc, const MCInst &Inst, 48 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 49 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 57 bool endOfFunction(SMLoc ErrorLoc); [all …]
|
| H A D | WebAssemblyAsmParser.cpp | 1061 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1065 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction() 1066 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1067 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1069 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1135 void onEndOfFunction(SMLoc ErrorLoc) { in onEndOfFunction() argument 1137 TC.endOfFunction(ErrorLoc); in onEndOfFunction()
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 654 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 655 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError() 693 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 696 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 698 ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 699 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 700 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 702 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 710 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 712 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/AsmParser/ |
| H A D | XtensaAsmParser.cpp | 346 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local 347 if (ErrorLoc == SMLoc()) in RefineErrorLoc() 349 return ErrorLoc; in RefineErrorLoc() 375 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 378 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 380 ErrorLoc = ((XtensaOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 381 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 382 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 384 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 292 SMLoc ErrorLoc; in MatchAndEmitInstruction() local 309 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 313 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 315 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 317 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 318 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 321 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/AsmParser/ |
| H A D | RISCVAsmParser.cpp | 1062 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 1063 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError() 1103 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1106 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 1108 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1109 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1110 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1112 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1120 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1122 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 273 SMLoc ErrorLoc = Loc; in MatchAndEmitInstruction() local 276 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 278 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 279 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 280 ErrorLoc = Loc; in MatchAndEmitInstruction() 282 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/AsmParser/ |
| H A D | LoongArchAsmParser.cpp | 1246 SMLoc ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 1247 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError() 1285 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1288 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 1290 ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1291 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1292 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1294 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1302 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1304 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 1242 SMLoc ErrorLoc = Parser.getTok().getLoc(); in ParseDirectiveInsn() local 1244 return Error(ErrorLoc, "expected instruction format"); in ParseDirectiveInsn() 1255 return Error(ErrorLoc, "unrecognized format"); in ParseDirectiveInsn() 1581 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1586 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1587 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1588 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1590 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/AsmParser/ |
| H A D | LanaiAsmParser.cpp | 660 SMLoc ErrorLoc; in MatchAndEmitInstruction() local 672 ErrorLoc = IdLoc; in MatchAndEmitInstruction() 677 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 678 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 679 ErrorLoc = IdLoc; in MatchAndEmitInstruction() 681 return Error(ErrorLoc, "Invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-rc/ |
| H A D | ResourceScriptParser.h | 50 LocIter ErrorLoc, FileEnd; variable
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 11433 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local 11463 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation() 11470 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation() 11477 NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc(); in checkBinaryOperation() 11482 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation() 11489 SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange; in checkBinaryOperation() 11501 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local 11541 ErrorLoc = AtomicUnaryOp->getExprLoc(); in checkStatement() 11548 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement() 11553 NoteLoc = ErrorLoc = AtomicBody->getBeginLoc(); in checkStatement() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 289 SMLoc ErrorLoc = Loc; in invalidOperand() local 300 ErrorLoc = Op.getStartLoc(); in invalidOperand() 309 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/AsmParser/ |
| H A D | SparcAsmParser.cpp | 679 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 684 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 685 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 686 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 689 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 955 SMLoc ErrorLoc = Loc; in invalidOperand() local 964 ErrorLoc = Op.getStartLoc(); in invalidOperand() 973 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 782 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 787 ErrorLoc = ((VEOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 788 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 789 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 792 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 1236 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1241 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1242 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1245 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/AsmParser/ |
| H A D | HexagonAsmParser.cpp | 587 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local 592 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction() 594 if (ErrorLoc == SMLoc()) in matchOneInstruction() 595 ErrorLoc = IDLoc; in matchOneInstruction() 597 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 4202 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitATTInstruction() local 4203 if (ErrorLoc == SMLoc()) in MatchAndEmitATTInstruction() 4204 ErrorLoc = IDLoc; in MatchAndEmitATTInstruction() 4205 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitATTInstruction() 4596 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitIntelInstruction() local 4597 if (ErrorLoc == SMLoc()) in MatchAndEmitIntelInstruction() 4598 ErrorLoc = IDLoc; in MatchAndEmitIntelInstruction() 4599 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitIntelInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/AsmParser/ |
| H A D | AArch64AsmParser.cpp | 6490 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 6497 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 6498 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 6499 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 6507 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction() 6717 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local 6718 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 6719 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 6720 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
|