Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/TableGen/
H A DError.cpp57 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() argument
58 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in PrintError()
74 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError() argument
75 PrintError(ErrorLoc, Msg); in PrintFatalError()
/freebsd-12.1/contrib/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp288 SMLoc ErrorLoc; in MatchAndEmitInstruction() local
305 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
309 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
311 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
313 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
314 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
317 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp762 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
765 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
767 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
768 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
769 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
771 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
779 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
781 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
878 ErrorLoc, in MatchAndEmitInstruction()
884 ErrorLoc, in MatchAndEmitInstruction()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/TableGen/
H A DError.h28 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
33 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp269 SMLoc ErrorLoc = Loc; in MatchAndEmitInstruction() local
272 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
274 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
275 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
276 ErrorLoc = Loc; in MatchAndEmitInstruction()
278 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp683 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
687 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction()
688 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
689 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
691 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp1032 SMLoc ErrorLoc = Parser.getTok().getLoc(); in ParseDirectiveInsn() local
1034 return Error(ErrorLoc, "expected instruction format"); in ParseDirectiveInsn()
1045 return Error(ErrorLoc, "unrecognized format"); in ParseDirectiveInsn()
1272 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1277 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1278 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1279 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1281 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp655 SMLoc ErrorLoc; in MatchAndEmitInstruction() local
667 ErrorLoc = IdLoc; in MatchAndEmitInstruction()
672 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
673 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
674 ErrorLoc = IdLoc; in MatchAndEmitInstruction()
676 return Error(ErrorLoc, "Invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/AsmParser/
H A DLLLexer.h70 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
H A DLLLexer.cpp29 bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { in Error() argument
30 ErrorInfo = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in Error()
/freebsd-12.1/contrib/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp264 SMLoc ErrorLoc = Loc; in invalidOperand() local
275 ErrorLoc = Op.getStartLoc(); in invalidOperand()
284 return Error(ErrorLoc, Diag); in invalidOperand()
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp613 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
618 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
619 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
620 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
623 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaOpenMP.cpp6381 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local
6430 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation()
6449 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local
6506 NoteLoc = ErrorLoc = S->getBeginLoc(); in checkStatement()
6609 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local
6643 ErrorLoc = AtomicBody->getExprLoc(); in ActOnOpenMPAtomicDirective()
6672 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local
6705 ErrorLoc = AtomicBody->getExprLoc(); in ActOnOpenMPAtomicDirective()
6756 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local
6901 : SourceRange(ErrorLoc, ErrorLoc); in ActOnOpenMPAtomicDirective()
[all …]
H A DSemaChecking.cpp388 SourceLocation ErrorLoc; in checkOpenCLBlockArgs() local
391 ErrorLoc = BD->getParamDecl(ArgCounter)->getBeginLoc(); in checkOpenCLBlockArgs()
393 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getBeginLoc(); in checkOpenCLBlockArgs()
395 S.Diag(ErrorLoc, in checkOpenCLBlockArgs()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp1158 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1163 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1164 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1167 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp583 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local
588 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction()
590 if (ErrorLoc == SMLoc()) in matchOneInstruction()
591 ErrorLoc = IDLoc; in matchOneInstruction()
593 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp4839 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
4846 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
4847 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
4848 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
4856 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
5004 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
5005 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
5006 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
5007 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp2560 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
2565 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
2566 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
2567 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
2569 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp5301 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local
5302 if (ErrorLoc == SMLoc()) in RefineErrorLoc()
5304 return ErrorLoc; in RefineErrorLoc()
5327 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
5332 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction()
5333 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
5334 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
5337 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()