Home
last modified time | relevance | path

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

12

/external/llvm/lib/TableGen/
DError.cpp54 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() argument
55 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in PrintError()
73 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError() argument
74 PrintError(ErrorLoc, Msg); in PrintFatalError()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DError.cpp58 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() argument
59 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in PrintError()
75 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError() argument
76 PrintError(ErrorLoc, Msg); in PrintFatalError()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/AsmParser/
DRISCVAsmParser.cpp800 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local
801 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError()
844 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
847 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
849 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
850 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
851 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
853 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
861 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
863 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/AsmParser/
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()
/external/llvm/include/llvm/TableGen/
DError.h26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
31 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TableGen/
DError.h28 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
33 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/AsmParser/
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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp1031 SMLoc ErrorLoc = Parser.getTok().getLoc(); in ParseDirectiveInsn() local
1033 return Error(ErrorLoc, "expected instruction format"); in ParseDirectiveInsn()
1044 return Error(ErrorLoc, "unrecognized format"); in ParseDirectiveInsn()
1273 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1278 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1279 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1280 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1282 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp854 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
858 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction()
859 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
860 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
862 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp638 SMLoc ErrorLoc; in MatchAndEmitInstruction() local
649 ErrorLoc = IdLoc; in MatchAndEmitInstruction()
654 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
655 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
656 ErrorLoc = IdLoc; in MatchAndEmitInstruction()
658 return Error(ErrorLoc, "Invalid operand for instruction"); in MatchAndEmitInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp656 SMLoc ErrorLoc; in MatchAndEmitInstruction() local
668 ErrorLoc = IdLoc; in MatchAndEmitInstruction()
673 ErrorLoc = ((LanaiOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
674 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
675 ErrorLoc = IdLoc; in MatchAndEmitInstruction()
677 return Error(ErrorLoc, "Invalid operand for instruction"); in MatchAndEmitInstruction()
/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp818 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
823 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
824 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
825 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
827 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLLexer.h69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
/external/clang/lib/Sema/
DSemaOpenMP.cpp6111 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local
6141 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
6148 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
6155 NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc(); in checkBinaryOperation()
6160 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation()
6167 SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange; in checkBinaryOperation()
6178 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local
6218 ErrorLoc = AtomicUnaryOp->getExprLoc(); in checkStatement()
6225 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement()
6230 NoteLoc = ErrorLoc = AtomicBody->getLocStart(); in checkStatement()
[all …]
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp574 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
579 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
580 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
581 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
584 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp280 SMLoc ErrorLoc = Loc; in invalidOperand() local
291 ErrorLoc = Op.getStartLoc(); in invalidOperand()
300 return Error(ErrorLoc, Diag); in invalidOperand()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/AsmParser/
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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1157 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1162 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1163 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1166 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp3247 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitATTInstruction() local
3248 if (ErrorLoc == SMLoc()) in MatchAndEmitATTInstruction()
3249 ErrorLoc = IDLoc; in MatchAndEmitATTInstruction()
3250 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitATTInstruction()
3602 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitIntelInstruction() local
3603 if (ErrorLoc == SMLoc()) in MatchAndEmitIntelInstruction()
3604 ErrorLoc = IDLoc; in MatchAndEmitIntelInstruction()
3605 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitIntelInstruction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp582 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local
587 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction()
589 if (ErrorLoc == SMLoc()) in matchOneInstruction()
590 ErrorLoc = IDLoc; in matchOneInstruction()
592 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
/external/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp804 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local
809 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction()
811 if (ErrorLoc == SMLoc()) in matchOneInstruction()
812 ErrorLoc = IDLoc; in matchOneInstruction()
814 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
/external/llvm/lib/AsmParser/
DLLLexer.cpp32 bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { in Error() argument
33 ErrorInfo = SM.GetMessage(ErrorLoc, SourceMgr::DK_Error, Msg); in Error()
/external/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp4074 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
4080 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
4081 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
4082 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
4090 return showMatchError(ErrorLoc, MatchResult); in MatchAndEmitInstruction()
4144 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
4145 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
4146 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
4147 return showMatchError(ErrorLoc, MatchResult); in MatchAndEmitInstruction()
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp8874 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
8879 ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
8880 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
8883 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
8899 SMLoc ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
8900 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
8901 return Error(ErrorLoc, "immediate operand must be in the range [0,15]"); in MatchAndEmitInstruction()
8904 SMLoc ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
8905 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
8906 return Error(ErrorLoc, "immediate operand must be in the range [0,239]"); in MatchAndEmitInstruction()
[all …]
/external/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp1165 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1170 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1171 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1172 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1174 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()

12