Home
last modified time | relevance | path

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

/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/llvm/include/llvm/TableGen/
DError.h26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
31 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
/external/clang/lib/Sema/
DSemaOpenMP.cpp4720 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local
4750 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
4757 ErrorLoc = AtomicInnerBinOp->getExprLoc(); in checkBinaryOperation()
4764 NoteLoc = ErrorLoc = AtomicBinOp->getRHS()->getExprLoc(); in checkBinaryOperation()
4769 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation()
4776 SemaRef.Diag(ErrorLoc, DiagId) << ErrorRange; in checkBinaryOperation()
4787 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local
4827 ErrorLoc = AtomicUnaryOp->getExprLoc(); in checkStatement()
4834 NoteLoc = ErrorLoc = AtomicBody->getExprLoc(); in checkStatement()
4839 NoteLoc = ErrorLoc = AtomicBody->getLocStart(); in checkStatement()
[all …]
/external/llvm/lib/Target/SystemZ/AsmParser/
DSystemZAsmParser.cpp815 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
820 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
821 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
822 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
824 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/llvm/lib/Target/Sparc/AsmParser/
DSparcAsmParser.cpp540 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
545 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
546 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
547 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
550 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp632 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
660 ErrorLoc = ((AMDGPUOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
661 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
662 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
664 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp8637 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
8642 ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
8643 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
8646 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
8662 SMLoc ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
8663 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
8664 return Error(ErrorLoc, "immediate operand must be in the range [0,15]"); in MatchAndEmitInstruction()
8667 SMLoc ErrorLoc = ((ARMOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
8668 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
8669 return Error(ErrorLoc, "immediate operand must be in the range [0,239]"); in MatchAndEmitInstruction()
[all …]
/external/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp811 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local
816 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction()
818 if (ErrorLoc == SMLoc()) in matchOneInstruction()
819 ErrorLoc = IDLoc; in matchOneInstruction()
821 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.cpp4109 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
4115 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
4116 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
4117 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
4125 return showMatchError(ErrorLoc, MatchResult); in MatchAndEmitInstruction()
4179 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
4180 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
4181 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
4182 return showMatchError(ErrorLoc, MatchResult); in MatchAndEmitInstruction()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp1214 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1219 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1220 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1223 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/external/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp3572 SMLoc ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in RefineErrorLoc() local
3573 if (ErrorLoc == SMLoc()) in RefineErrorLoc()
3575 return ErrorLoc; in RefineErrorLoc()
3603 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
3608 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction()
3609 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
3610 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
3613 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()