Searched refs:ErrorLoc (Results 1 - 22 of 22) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/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-13-stable/contrib/llvm-project/llvm/lib/TableGen/
H A DError.cpp58 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { argument
59 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg);
75 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { argument
76 PrintError(ErrorLoc, Msg);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp290 SMLoc ErrorLoc; local
307 ErrorLoc = IDLoc;
311 return Error(ErrorLoc, "too few operands for instruction");
313 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc();
315 if (ErrorLoc == SMLoc())
316 ErrorLoc = IDLoc;
319 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp985 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
986 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
1031 SMLoc ErrorLoc = IDLoc; local
1034 return Error(ErrorLoc, "too few operands for instruction");
1036 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1037 if (ErrorLoc == SMLoc())
1038 ErrorLoc = IDLoc;
1040 return Error(ErrorLoc, "invalid operand for instruction");
1048 SMLoc ErrorLoc = IDLoc; local
1050 return Error(ErrorLoc, "to
1058 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1065 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1155 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1161 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1167 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1171 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1175 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1179 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1183 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
1188 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); local
2262 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc(); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp271 SMLoc ErrorLoc = Loc; local
274 return Error(ErrorLoc, "too few operands for instruction");
276 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc();
277 if (ErrorLoc == SMLoc())
278 ErrorLoc = Loc;
280 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.h69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
H A DLLLexer.cpp28 bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { argument
29 ErrorInfo = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp878 SMLoc ErrorLoc = IDLoc; variable
882 ErrorLoc = Operands[ErrorInfo]->getStartLoc();
883 if (ErrorLoc == SMLoc())
884 ErrorLoc = IDLoc;
886 return Parser.Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp658 SMLoc ErrorLoc; local
670 ErrorLoc = IdLoc;
675 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc();
676 if (ErrorLoc == SMLoc())
677 ErrorLoc = IdLoc;
679 return Error(ErrorLoc, "Invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp1163 SMLoc ErrorLoc = Parser.getTok().getLoc(); local
1165 return Error(ErrorLoc, "expected instruction format");
1176 return Error(ErrorLoc, "unrecognized format");
1425 SMLoc ErrorLoc = IDLoc; local
1430 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc();
1431 if (ErrorLoc == SMLoc())
1432 ErrorLoc = IDLoc;
1434 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp282 SMLoc ErrorLoc = Loc; local
293 ErrorLoc = Op.getStartLoc();
302 return Error(ErrorLoc, Diag);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp615 SMLoc ErrorLoc = IDLoc; local
620 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc();
621 if (ErrorLoc == SMLoc())
622 ErrorLoc = IDLoc;
625 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp751 SMLoc ErrorLoc = IDLoc; local
756 ErrorLoc = ((VEOperand &)*Operands[ErrorInfo]).getStartLoc();
757 if (ErrorLoc == SMLoc())
758 ErrorLoc = IDLoc;
761 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp3544 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); local
3545 if (ErrorLoc == SMLoc())
3546 ErrorLoc = IDLoc;
3547 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]",
3926 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); local
3927 if (ErrorLoc == SMLoc())
3928 ErrorLoc = IDLoc;
3929 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]",
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp589 SMLoc ErrorLoc = IDLoc; local
594 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get()))
596 if (ErrorLoc == SMLoc())
597 ErrorLoc = IDLoc;
599 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp1170 SMLoc ErrorLoc = IDLoc; local
1175 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc();
1176 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc;
1179 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp9534 SourceLocation ErrorLoc, NoteLoc;
9564 ErrorLoc = AtomicInnerBinOp->getExprLoc();
9571 ErrorLoc = AtomicInnerBinOp->getExprLoc();
9578 NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc();
9583 ErrorLoc = AtomicBinOp->getExprLoc();
9590 SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange;
9602 SourceLocation ErrorLoc, NoteLoc;
9642 ErrorLoc = AtomicUnaryOp->getExprLoc();
9649 NoteLoc = ErrorLoc = AtomicBody->getExprLoc();
9654 NoteLoc = ErrorLoc
[all...]
H A DSemaTemplateInstantiate.cpp1894 SourceLocation ErrorLoc; local
1900 ErrorLoc = PDA.first;
1902 ErrorLoc = Info.getLocation();
1912 StringRef(EntityBuf, Entity.size()), ErrorLoc,
H A DSemaChecking.cpp822 SourceLocation ErrorLoc; local
825 ErrorLoc = BD->getParamDecl(ArgCounter)->getBeginLoc();
827 ErrorLoc = cast<DeclRefExpr>(BlockArg)->getBeginLoc();
829 S.Diag(ErrorLoc,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp4880 SMLoc ErrorLoc = IDLoc; local
4887 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
4888 if (ErrorLoc == SMLoc())
4889 ErrorLoc = IDLoc;
4897 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands);
5046 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
5047 if (ErrorLoc == SMLoc())
5048 ErrorLoc = IDLoc;
5049 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp5917 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); local
5918 if (ErrorLoc == SMLoc())
5920 return ErrorLoc;
5943 SMLoc ErrorLoc = IDLoc; local
5948 ErrorLoc = Operands[ErrorInfo]->getStartLoc();
5949 if (ErrorLoc == SMLoc())
5950 ErrorLoc = IDLoc;
5953 return Error(ErrorLoc, "invalid operand for instruction");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp3727 SMLoc ErrorLoc = IDLoc; local
3732 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc();
3733 if (ErrorLoc == SMLoc())
3734 ErrorLoc = IDLoc;
3736 return Error(ErrorLoc, "invalid operand for instruction");

Completed in 450 milliseconds