Lines Matching defs:StartLoc

94   SMLoc StartLoc, EndLoc;
158 SystemZOperand(OperandKind Kind, SMLoc StartLoc, SMLoc EndLoc)
159 : Kind(Kind), StartLoc(StartLoc), EndLoc(EndLoc) {}
162 static std::unique_ptr<SystemZOperand> createInvalid(SMLoc StartLoc,
164 return std::make_unique<SystemZOperand>(KindInvalid, StartLoc, EndLoc);
175 createReg(RegisterKind Kind, unsigned Num, SMLoc StartLoc, SMLoc EndLoc) {
176 auto Op = std::make_unique<SystemZOperand>(KindReg, StartLoc, EndLoc);
183 createImm(const MCExpr *Expr, SMLoc StartLoc, SMLoc EndLoc) {
184 auto Op = std::make_unique<SystemZOperand>(KindImm, StartLoc, EndLoc);
192 unsigned LengthReg, SMLoc StartLoc, SMLoc EndLoc) {
193 auto Op = std::make_unique<SystemZOperand>(KindMem, StartLoc, EndLoc);
208 SMLoc StartLoc, SMLoc EndLoc) {
209 auto Op = std::make_unique<SystemZOperand>(KindImmTLS, StartLoc, EndLoc);
291 SMLoc getStartLoc() const override { return StartLoc; }
297 SMRange getLocRange() const { return SMRange(StartLoc, EndLoc); }
418 SMLoc StartLoc, EndLoc;
506 bool parseRegister(MCRegister &Reg, SMLoc &StartLoc, SMLoc &EndLoc) override;
507 bool ParseRegister(MCRegister &RegNo, SMLoc &StartLoc, SMLoc &EndLoc,
509 ParseStatus tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
777 Reg.StartLoc = PercentTok.getLoc();
790 return Error(Reg.StartLoc,
799 return Error(Reg.StartLoc, "invalid register");
807 return Error(Reg.StartLoc, "invalid register");
824 return Error(Reg.StartLoc, "invalid register");
875 return Error(Reg.StartLoc, "invalid operand for instruction");
879 return Error(Reg.StartLoc, "invalid operand for instruction");
907 return Error(Reg.StartLoc, "invalid register pair");
910 SystemZOperand::createReg(Kind, Regs[Reg.Num], Reg.StartLoc, Reg.EndLoc));
916 SMLoc StartLoc = Parser.getTok().getLoc();
927 return Error(StartLoc, "invalid register");
933 Operands.push_back(SystemZOperand::createImm(Register, StartLoc, EndLoc));
944 return Error(StartLoc, "invalid register");
974 Reg.StartLoc, Reg.EndLoc));
981 Reg.StartLoc = Parser.getTok().getLoc();
1094 Reg2.StartLoc = Reg2.EndLoc = Parser.getTok().getLoc();
1111 Error(Reg.StartLoc, "invalid use of vector addressing");
1115 Error(Reg.StartLoc, "invalid address register");
1126 SMLoc StartLoc = Parser.getTok().getLoc();
1156 return Error(StartLoc, "invalid use of indexed addressing");
1192 return Error(StartLoc, "invalid use of indexed addressing");
1195 return Error(StartLoc, "missing length in address");
1200 return Error(StartLoc, "invalid operand for instruction");
1212 return Error(StartLoc, "vector index required in address");
1217 return Error(Reg1.StartLoc, "invalid use of vector addressing");
1231 StartLoc, EndLoc));
1279 SMLoc StartLoc = Parser.getTok().getLoc();
1283 return Error(StartLoc, "unexpected token in directive");
1307 SMLoc StartLoc = Parser.getTok().getLoc();
1311 return Error(StartLoc, "unexpected token in directive");
1316 Operands.push_back(SystemZOperand::createImm(Expr, StartLoc, EndLoc));
1397 bool SystemZAsmParser::ParseRegister(MCRegister &RegNo, SMLoc &StartLoc,
1413 StartLoc = Reg.StartLoc;
1418 bool SystemZAsmParser::parseRegister(MCRegister &Reg, SMLoc &StartLoc,
1420 return ParseRegister(Reg, StartLoc, EndLoc, /*RequirePercent=*/false,
1424 ParseStatus SystemZAsmParser::tryParseRegister(MCRegister &Reg, SMLoc &StartLoc,
1426 bool Result = ParseRegister(Reg, StartLoc, EndLoc, /*RequirePercent=*/false,
1530 Operands.push_back(SystemZOperand::createInvalid(Reg.StartLoc, Reg.EndLoc));
1537 SMLoc StartLoc = Parser.getTok().getLoc();
1556 Operands.push_back(SystemZOperand::createInvalid(StartLoc, EndLoc));
1558 Operands.push_back(SystemZOperand::createImm(Expr, StartLoc, EndLoc));
1626 SMLoc StartLoc = Parser.getTok().getLoc();
1645 return Error(StartLoc, "Expected PC-relative expression");
1647 return Error(StartLoc, "offset out of range");
1662 return Error(StartLoc, "offset out of range");
1700 StartLoc, EndLoc));
1702 Operands.push_back(SystemZOperand::createImm(Expr, StartLoc, EndLoc));