Lines Matching refs:SMLoc
29 SMLoc getLoc() const { return getParser().getTok().getLoc(); } in getLoc()
32 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
33 OperandMatchResultTy tryParseRegister(unsigned &RegNo, SMLoc &StartLoc,
34 SMLoc &EndLoc) override;
37 SMLoc NameLoc, OperandVector &Operands) override;
41 bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
56 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
107 SMLoc StartLoc, EndLoc;
168 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc()
170 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc()
208 static std::unique_ptr<LoongArchOperand> createToken(StringRef Str, SMLoc S) { in createToken()
216 static std::unique_ptr<LoongArchOperand> createReg(unsigned RegNo, SMLoc S, in createReg()
217 SMLoc E) { in createReg()
225 static std::unique_ptr<LoongArchOperand> createImm(const MCExpr *Val, SMLoc S, in createImm()
226 SMLoc E) { in createImm()
281 bool LoongArchAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, in ParseRegister()
282 SMLoc &EndLoc) { in ParseRegister()
287 SMLoc &StartLoc, in tryParseRegister()
288 SMLoc &EndLoc) { in tryParseRegister()
308 SMLoc S = getLoc(); in parseRegister()
309 SMLoc E = SMLoc::getFromPointer(S.getPointer() + Name.size()); in parseRegister()
318 SMLoc S = getLoc(); in parseImmediate()
319 SMLoc E; in parseImmediate()
343 StringRef Name, SMLoc NameLoc, in ParseInstruction()
365 SMLoc Loc = getLexer().getLoc(); in ParseInstruction()
370 bool LoongArchAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc, in processInstruction()
432 SMLoc ErrorLoc = ((LoongArchOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError()
436 bool LoongArchAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, in MatchAndEmitInstruction()
471 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
477 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
488 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction()
497 SMLoc ErrorStart = Operands[3]->getStartLoc(); in MatchAndEmitInstruction()