Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.cpp79 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 DWebAssemblyAsmTypeCheck.h45 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 DWebAssemblyAsmParser.cpp1057 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 DCSKYAsmParser.cpp284 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 DError.h26 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 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-13.1/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp290 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 DRISCVAsmParser.cpp1004 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 DMSP430AsmParser.cpp270 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 DSystemZAsmParser.cpp1224 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 DLanaiAsmParser.cpp658 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 DLLLexer.h69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp281 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 DM68kAsmParser.cpp786 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 DSparcAsmParser.cpp664 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 DVEAsmParser.cpp778 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 DPPCAsmParser.cpp1186 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 DHexagonAsmParser.cpp589 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 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-13.1/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp4185 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 DSemaOpenMP.cpp10497 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 DSemaTemplateInstantiate.cpp1882 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 DAArch64AsmParser.cpp5658 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 DMipsAsmParser.cpp5917 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 DAMDGPUAsmParser.cpp4412 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()

12