Home
last modified time | relevance | path

Searched refs:ErrorLoc (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.cpp72 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 DWebAssemblyAsmTypeCheck.h41 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 DWebAssemblyAsmParser.cpp1060 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1064 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction()
1065 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1066 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1068 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
1133 void onEndOfFunction(SMLoc ErrorLoc) { in onEndOfFunction() argument
1135 TC.endOfFunction(ErrorLoc); in onEndOfFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DError.h26 [[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/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp105 bool generateImmOutOfRangeError(SMLoc ErrorLoc, int64_t Lower, int64_t Upper,
126 bool generateVTypeError(SMLoc ErrorLoc);
1377 SMLoc ErrorLoc, int64_t Lower, int64_t Upper, in generateImmOutOfRangeError() argument
1379 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError()
1385 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local
1386 return generateImmOutOfRangeError(ErrorLoc, Lower, Upper, Msg); in generateImmOutOfRangeError()
1426 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1429 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1431 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1432 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DError.cpp103 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/contrib/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp655 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 DBPFAsmParser.cpp312 SMLoc ErrorLoc; in MatchAndEmitInstruction() local
329 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
333 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
335 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
337 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
338 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
341 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/AsmParser/
H A DXtensaAsmParser.cpp357 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local
358 if (ErrorLoc == SMLoc()) in RefineErrorLoc()
360 return ErrorLoc; in RefineErrorLoc()
450 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
453 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
455 ErrorLoc = ((XtensaOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
456 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
457 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
459 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp1487 SMLoc ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local
1488 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError()
1526 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1529 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1531 ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1532 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1533 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1535 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
1543 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1545 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp272 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/clang/lib/Sema/
H A DSemaOpenCL.cpp122 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 DSemaOpenMP.cpp11362 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local
11392 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
11399 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
11406 NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc(); in checkBinaryOperation()
11411 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation()
11418 SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange; in checkBinaryOperation()
11430 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local
11470 ErrorLoc = AtomicUnaryOp->getExprLoc(); in checkStatement()
11477 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement()
11481 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp654 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/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp1219 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/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLLexer.h69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp288 SMLoc ErrorLoc = Loc; in invalidOperand() local
299 ErrorLoc = Op.getStartLoc(); in invalidOperand()
308 return Error(ErrorLoc, Diag); in invalidOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp781 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/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp829 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
834 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
835 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
836 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
839 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp993 SMLoc ErrorLoc = Loc; in invalidOperand() local
1002 ErrorLoc = Op.getStartLoc(); in invalidOperand()
1011 return Error(ErrorLoc, Diag); in invalidOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp593 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local
598 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction()
600 if (ErrorLoc == SMLoc()) in matchOneInstruction()
601 ErrorLoc = IDLoc; in matchOneInstruction()
603 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp1278 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1283 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1284 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1287 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp28 bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { in Error() argument
29 ErrorInfo = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in Error()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp4212 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitATTInstruction() local
4213 if (ErrorLoc == SMLoc()) in matchAndEmitATTInstruction()
4214 ErrorLoc = IDLoc; in matchAndEmitATTInstruction()
4215 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in matchAndEmitATTInstruction()
4575 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in matchAndEmitIntelInstruction() local
4576 if (ErrorLoc == SMLoc()) in matchAndEmitIntelInstruction()
4577 ErrorLoc = IDLoc; in matchAndEmitIntelInstruction()
4578 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in matchAndEmitIntelInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp6558 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
6565 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
6566 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
6567 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
6575 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
6790 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
6791 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
6792 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
6793 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()

12