| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 79 return Parser.Error(ErrorLoc, Msg); in typeError() 85 return typeError(ErrorLoc, in popType() 173 popType(ErrorLoc, RVT); in endOfFunction() 176 typeError(ErrorLoc, in endOfFunction() 189 if (getLocal(ErrorLoc, Inst, Type)) in typeCheck() 195 if (popType(ErrorLoc, Type)) in typeCheck() 200 if (popType(ErrorLoc, Type)) in typeCheck() 210 if (popType(ErrorLoc, Type)) in typeCheck() 213 if (popType(ErrorLoc, {})) in typeCheck() 217 if (checkEnd(ErrorLoc)) in typeCheck() [all …]
|
| H A D | WebAssemblyAsmTypeCheck.h | 45 bool typeError(SMLoc ErrorLoc, const Twine &Msg); 46 bool popType(SMLoc ErrorLoc, Optional<wasm::ValType> EVT); 47 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 48 bool checkEnd(SMLoc ErrorLoc); 49 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig); 50 bool getSymRef(SMLoc ErrorLoc, const MCInst &Inst, 52 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type); 60 void endOfFunction(SMLoc ErrorLoc); 61 bool typeCheck(SMLoc ErrorLoc, const MCInst &Inst);
|
| H A D | WebAssemblyAsmParser.cpp | 1057 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1061 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction() 1062 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1063 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1065 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1115 void onEndOfFunction(SMLoc ErrorLoc) { in onEndOfFunction() argument 1116 TC.endOfFunction(ErrorLoc); in onEndOfFunction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/ |
| H A D | CSKYAsmParser.cpp | 284 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local 325 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 328 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 330 ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 331 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 332 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 334 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 342 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 344 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 372 return Error(ErrorLoc, "operand must be a symbol name"); in MatchAndEmitInstruction() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Error.h | 26 LLVM_ATTRIBUTE_NORETURN void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, 38 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 44 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 290 SMLoc ErrorLoc; in MatchAndEmitInstruction() local 307 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 311 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 313 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 315 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 316 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 319 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/ |
| H A D | RISCVAsmParser.cpp | 1004 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1010 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1011 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1013 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction() 1021 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1023 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 1039 return Error(ErrorLoc, "immediate must be zero"); in MatchAndEmitInstruction() 1133 ErrorLoc, in MatchAndEmitInstruction() 1139 ErrorLoc, in MatchAndEmitInstruction() 1161 ErrorLoc, in MatchAndEmitInstruction() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 270 SMLoc ErrorLoc = Loc; in MatchAndEmitInstruction() local 273 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction() 275 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 276 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 277 ErrorLoc = Loc; in MatchAndEmitInstruction() 279 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 1224 SMLoc ErrorLoc = Parser.getTok().getLoc(); in ParseDirectiveInsn() local 1226 return Error(ErrorLoc, "expected instruction format"); in ParseDirectiveInsn() 1237 return Error(ErrorLoc, "unrecognized format"); in ParseDirectiveInsn() 1527 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1532 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1533 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 1534 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1536 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/ |
| H A D | LanaiAsmParser.cpp | 658 SMLoc ErrorLoc; in MatchAndEmitInstruction() local 670 ErrorLoc = IdLoc; in MatchAndEmitInstruction() 675 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 676 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 677 ErrorLoc = IdLoc; in MatchAndEmitInstruction() 679 return Error(ErrorLoc, "Invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
| H A D | LLLexer.h | 69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 281 SMLoc ErrorLoc = Loc; in invalidOperand() local 292 ErrorLoc = Op.getStartLoc(); in invalidOperand() 301 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 786 SMLoc ErrorLoc = Loc; in invalidOperand() local 795 ErrorLoc = Op.getStartLoc(); in invalidOperand() 804 return Error(ErrorLoc, Diag); in invalidOperand()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
| H A D | SparcAsmParser.cpp | 664 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 669 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 670 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 671 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 674 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 778 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 783 ErrorLoc = ((VEOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 784 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 785 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 788 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 1186 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 1191 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 1192 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction() 1195 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/ |
| H A D | HexagonAsmParser.cpp | 589 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local 594 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction() 596 if (ErrorLoc == SMLoc()) in matchOneInstruction() 597 ErrorLoc = IDLoc; in matchOneInstruction() 599 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 4185 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitATTInstruction() local 4186 if (ErrorLoc == SMLoc()) in MatchAndEmitATTInstruction() 4187 ErrorLoc = IDLoc; in MatchAndEmitATTInstruction() 4188 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitATTInstruction() 4588 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitIntelInstruction() local 4589 if (ErrorLoc == SMLoc()) in MatchAndEmitIntelInstruction() 4590 ErrorLoc = IDLoc; in MatchAndEmitIntelInstruction() 4591 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitIntelInstruction()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 10497 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local 10546 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation() 10565 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local 10622 NoteLoc = ErrorLoc = S->getBeginLoc(); in checkStatement() 10766 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local 10800 ErrorLoc = AtomicBody->getExprLoc(); in ActOnOpenMPAtomicDirective() 10829 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local 10862 ErrorLoc = AtomicBody->getExprLoc(); in ActOnOpenMPAtomicDirective() 10913 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local 11058 : SourceRange(ErrorLoc, ErrorLoc); in ActOnOpenMPAtomicDirective() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 1882 SourceLocation ErrorLoc; in createSubstDiag() local 1888 ErrorLoc = PDA.first; in createSubstDiag() 1890 ErrorLoc = Info.getLocation(); in createSubstDiag() 1900 StringRef(EntityBuf, Entity.size()), ErrorLoc, in createSubstDiag()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/ |
| H A D | AArch64AsmParser.cpp | 5658 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 5665 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 5666 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 5667 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 5675 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction() 5842 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local 5843 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 5844 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 5845 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/ |
| H A D | MipsAsmParser.cpp | 5917 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local 5918 if (ErrorLoc == SMLoc()) in RefineErrorLoc() 5920 return ErrorLoc; in RefineErrorLoc() 5943 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 5948 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction() 5949 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 5950 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 5953 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/ |
| H A D | AMDGPUAsmParser.cpp | 4412 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local 4417 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() 4418 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction() 4419 ErrorLoc = IDLoc; in MatchAndEmitInstruction() 4421 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
|