Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.cpp88 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 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.cpp1073 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 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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp122 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 DCSKYAsmParser.cpp694 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 DXtensaAsmParser.cpp343 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 DBPFAsmParser.cpp309 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 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-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp1295 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 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-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLLexer.h69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp11697 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 DSemaTemplateInstantiate.cpp2345 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 DAVRAsmParser.cpp288 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 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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp785 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 DHexagonAsmParser.cpp586 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 DPPCAsmParser.cpp1276 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 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-14.2/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp4095 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 DAArch64AsmParser.cpp6474 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()

12