Lines Matching refs:startLoc
64 SMLoc StartLoc, EndLoc;
118 SystemZOperand(OperandKind kind, SMLoc startLoc, SMLoc endLoc)
119 : Kind(kind), StartLoc(startLoc), EndLoc(endLoc) {}
122 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc,
124 return make_unique<SystemZOperand>(KindInvalid, StartLoc, EndLoc);
133 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) {
134 auto Op = make_unique<SystemZOperand>(KindReg, StartLoc, EndLoc);
140 createAccessReg(unsigned Num, SMLoc StartLoc, SMLoc EndLoc) {
141 auto Op = make_unique<SystemZOperand>(KindAccessReg, StartLoc, EndLoc);
146 createImm(const MCExpr *Expr, SMLoc StartLoc, SMLoc EndLoc) {
147 auto Op = make_unique<SystemZOperand>(KindImm, StartLoc, EndLoc);
153 unsigned Index, const MCExpr *Length, SMLoc StartLoc,
155 auto Op = make_unique<SystemZOperand>(KindMem, StartLoc, EndLoc);
224 SMLoc getStartLoc() const override { return StartLoc; }
308 SMLoc StartLoc, EndLoc;
343 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
420 Reg.StartLoc = Parser.getTok().getLoc();
429 return Error(Reg.StartLoc, "invalid register");
434 return Error(Reg.StartLoc, "invalid register");
439 return Error(Reg.StartLoc, "invalid register");
449 return Error(Reg.StartLoc, "invalid register");
465 return Error(Reg.StartLoc, "invalid operand for instruction");
467 return Error(Reg.StartLoc, "invalid register pair");
469 return Error(Reg.StartLoc, "%r0 used in an address");
488 Reg.StartLoc, Reg.EndLoc));
547 SMLoc StartLoc = Parser.getTok().getLoc();
556 Error(StartLoc, "invalid use of indexed addressing");
562 Error(StartLoc, "invalid use of length addressing");
568 Error(StartLoc, "missing length in address");
575 Length, StartLoc, EndLoc));
583 bool SystemZAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
594 return Error(Reg.StartLoc, "invalid operand for instruction");
595 StartLoc = Reg.StartLoc;
655 Operands.push_back(SystemZOperand::createInvalid(Reg.StartLoc, Reg.EndLoc));
662 SMLoc StartLoc = Parser.getTok().getLoc();
671 Operands.push_back(SystemZOperand::createInvalid(StartLoc, EndLoc));
673 Operands.push_back(SystemZOperand::createImm(Expr, StartLoc, EndLoc));
740 Reg.StartLoc,
751 SMLoc StartLoc = Parser.getTok().getLoc();
760 Error(StartLoc, "offset out of range");
772 Operands.push_back(SystemZOperand::createImm(Expr, StartLoc, EndLoc));