Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.cpp88 return typeError(ErrorLoc, in popType()
131 if (popType(ErrorLoc, VT)) in checkEnd()
212 if (popType(ErrorLoc, RVT)) in endOfFunction()
236 if (popType(ErrorLoc, Type)) in typeCheck()
241 if (popType(ErrorLoc, Type)) in typeCheck()
251 if (popType(ErrorLoc, Type)) in typeCheck()
262 if (popType(ErrorLoc, Type)) in typeCheck()
271 if (popType(ErrorLoc, Type)) in typeCheck()
276 if (popType(ErrorLoc, {})) in typeCheck()
285 if (endOfFunction(ErrorLoc)) in typeCheck()
[all …]
H A DWebAssemblyAsmTypeCheck.h40 bool typeError(SMLoc ErrorLoc, const Twine &Msg);
41 bool popType(SMLoc ErrorLoc, Optional<wasm::ValType> EVT);
42 bool popRefType(SMLoc ErrorLoc);
43 bool getLocal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
44 bool checkEnd(SMLoc ErrorLoc, bool PopVals = false);
45 bool checkSig(SMLoc ErrorLoc, const wasm::WasmSignature &Sig);
46 bool getSymRef(SMLoc ErrorLoc, const MCInst &Inst,
48 bool getGlobal(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
49 bool getTable(SMLoc ErrorLoc, const MCInst &Inst, wasm::ValType &Type);
57 bool endOfFunction(SMLoc ErrorLoc);
[all …]
H A DWebAssemblyAsmParser.cpp1046 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1050 ErrorLoc = Operands[ErrorInfo]->getStartLoc(); in MatchAndEmitInstruction()
1051 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1052 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1054 return Parser.Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
1104 void onEndOfFunction(SMLoc ErrorLoc) { in onEndOfFunction() argument
1106 TC.endOfFunction(ErrorLoc); in onEndOfFunction()
/llvm-project-15.0.7/llvm/include/llvm/TableGen/
H A DError.h26 [[noreturn]] void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
35 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
41 [[noreturn]] void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
/llvm-project-15.0.7/llvm/lib/Target/LoongArch/AsmParser/
H A DLoongArchAsmParser.cpp432 SMLoc ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local
433 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError()
471 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
474 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
476 ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
477 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
478 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
480 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
488 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
490 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp692 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
698 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
699 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
701 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
709 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
792 return Error(ErrorLoc, "operand must be a symbol name"); in MatchAndEmitInstruction()
800 return Error(ErrorLoc, "psrset operand is not valid"); in MatchAndEmitInstruction()
804 return Error(ErrorLoc, "Register sequence is not valid"); in MatchAndEmitInstruction()
808 return Error(ErrorLoc, "register is out of range"); in MatchAndEmitInstruction()
812 return Error(ErrorLoc, "src and dst operand must be same"); in MatchAndEmitInstruction()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp1103 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1109 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1110 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1120 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1138 return Error(ErrorLoc, "immediate must be zero"); in MatchAndEmitInstruction()
1247 ErrorLoc, in MatchAndEmitInstruction()
1269 ErrorLoc, in MatchAndEmitInstruction()
1275 return Error(ErrorLoc, "operand must be v0.t"); in MatchAndEmitInstruction()
2273 SMLoc ErrorLoc = Parser.getTok().getLoc(); in parseDirectiveInsn() local
2275 return Error(ErrorLoc, "expected instruction format"); in parseDirectiveInsn()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/BPF/AsmParser/
H A DBPFAsmParser.cpp291 SMLoc ErrorLoc; in MatchAndEmitInstruction() local
308 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
312 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
314 ErrorLoc = ((BPFOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
316 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
317 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
320 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp272 SMLoc ErrorLoc = Loc; in MatchAndEmitInstruction() local
275 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
277 ErrorLoc = ((MSP430Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
278 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
279 ErrorLoc = Loc; in MatchAndEmitInstruction()
281 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp1238 SMLoc ErrorLoc = Parser.getTok().getLoc(); in ParseDirectiveInsn() local
1240 return Error(ErrorLoc, "expected instruction format"); in ParseDirectiveInsn()
1251 return Error(ErrorLoc, "unrecognized format"); in ParseDirectiveInsn()
1559 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1564 ErrorLoc = ((SystemZOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1565 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1566 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1568 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/AsmParser/
H A DLLLexer.h69 bool Error(LocTy ErrorLoc, const Twine &Msg) const;
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A DResourceScriptParser.h50 LocIter ErrorLoc, FileEnd; variable
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOpenMP.cpp11309 SourceLocation ErrorLoc, NoteLoc; in checkBinaryOperation() local
11358 ErrorLoc = AtomicBinOp->getExprLoc(); in checkBinaryOperation()
11377 SourceLocation ErrorLoc, NoteLoc; in checkStatement() local
11434 NoteLoc = ErrorLoc = S->getBeginLoc(); in checkStatement()
11528 SourceLocation ErrorLoc; member
11630 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkCondUpdateStmt()
12400 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local
12463 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local
12548 SourceLocation ErrorLoc, NoteLoc; in ActOnOpenMPAtomicDirective() local
12693 : SourceRange(ErrorLoc, ErrorLoc); in ActOnOpenMPAtomicDirective()
[all …]
H A DSemaTemplateInstantiate.cpp1895 SourceLocation ErrorLoc; in createSubstDiag() local
1901 ErrorLoc = PDA.first; in createSubstDiag()
1903 ErrorLoc = Info.getLocation(); in createSubstDiag()
1913 StringRef(EntityBuf, Entity.size()), ErrorLoc, in createSubstDiag()
/llvm-project-15.0.7/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp287 SMLoc ErrorLoc = Loc; in invalidOperand() local
298 ErrorLoc = Op.getStartLoc(); in invalidOperand()
307 return Error(ErrorLoc, Diag); in invalidOperand()
/llvm-project-15.0.7/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp678 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
683 ErrorLoc = ((SparcOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
684 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
685 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
688 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/llvm/lib/Target/M68k/AsmParser/
H A DM68kAsmParser.cpp955 SMLoc ErrorLoc = Loc; in invalidOperand() local
964 ErrorLoc = Op.getStartLoc(); in invalidOperand()
973 return Error(ErrorLoc, Diag); in invalidOperand()
/llvm-project-15.0.7/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp781 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
786 ErrorLoc = ((VEOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
787 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
788 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
791 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp1173 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1178 ErrorLoc = ((PPCOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1179 if (ErrorLoc == SMLoc()) ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1182 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp578 SMLoc ErrorLoc = IDLoc; in matchOneInstruction() local
583 ErrorLoc = (static_cast<HexagonOperand *>(InstOperands[ErrorInfo].get())) in matchOneInstruction()
585 if (ErrorLoc == SMLoc()) in matchOneInstruction()
586 ErrorLoc = IDLoc; in matchOneInstruction()
588 return Error(ErrorLoc, "invalid operand for instruction"); in matchOneInstruction()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp4195 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitATTInstruction() local
4196 if (ErrorLoc == SMLoc()) in MatchAndEmitATTInstruction()
4197 ErrorLoc = IDLoc; in MatchAndEmitATTInstruction()
4198 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitATTInstruction()
4589 SMLoc ErrorLoc = ((X86Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitIntelInstruction() local
4590 if (ErrorLoc == SMLoc()) in MatchAndEmitIntelInstruction()
4591 ErrorLoc = IDLoc; in MatchAndEmitIntelInstruction()
4592 return Error(ErrorLoc, "immediate must be an integer in range [0, 15]", in MatchAndEmitIntelInstruction()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp5826 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
5833 ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
5834 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
5835 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
5843 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()
6008 SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
6009 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
6010 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
6011 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction()

12