Lines Matching defs:ErrorLoc

105   bool generateImmOutOfRangeError(SMLoc ErrorLoc, int64_t Lower, int64_t Upper,
126 bool generateVTypeError(SMLoc ErrorLoc);
1377 SMLoc ErrorLoc, int64_t Lower, int64_t Upper,
1379 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
1385 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1386 return generateImmOutOfRangeError(ErrorLoc, Lower, Upper, Msg);
1426 SMLoc ErrorLoc = IDLoc;
1429 return Error(ErrorLoc, "too few operands for instruction");
1431 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1432 if (ErrorLoc == SMLoc())
1433 ErrorLoc = IDLoc;
1435 return Error(ErrorLoc, "invalid operand for instruction");
1443 SMLoc ErrorLoc = IDLoc;
1445 return Error(ErrorLoc, "too few operands for instruction");
1457 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1458 return Error(ErrorLoc, "operand must be a constant 64-bit integer");
1465 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1466 return Error(ErrorLoc, "operand either must be a constant 64-bit integer "
1475 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1476 return Error(ErrorLoc, "immediate must be zero");
1601 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1602 return Error(ErrorLoc, "operand must be a valid floating-point constant");
1605 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1606 return Error(ErrorLoc, "operand must be a bare symbol name");
1609 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1610 return Error(ErrorLoc, "operand must be a valid jump target");
1613 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1614 return Error(ErrorLoc, "operand must be a bare symbol name");
1617 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1618 return Error(ErrorLoc, "operand must be a symbol with %tprel_add modifier");
1621 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1622 return Error(ErrorLoc,
1626 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1627 return Error(ErrorLoc, "operand must be 'rtz' floating-point rounding mode");
1630 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1631 return generateVTypeError(ErrorLoc);
1634 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1635 return Error(ErrorLoc, "operand must be v0.t");
1643 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1645 ErrorLoc,
1649 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1651 ErrorLoc,
1659 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1660 return Error(ErrorLoc, "operands must be register and register");
2282 bool RISCVAsmParser::generateVTypeError(SMLoc ErrorLoc) {
2284 ErrorLoc,
3105 SMLoc ErrorLoc = Parser.getTok().getLoc();
3122 return Error(ErrorLoc, "invalid operand for instruction");
3124 return Error(ErrorLoc, "compressed instructions are not allowed");
3126 return Error(ErrorLoc, "instruction length mismatch");
3140 return Error(ErrorLoc, "invalid instruction format");
3430 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
3431 return Error(ErrorLoc, "the second input operand must be tp/x4 when using "
3443 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
3444 return Error(ErrorLoc, "the output operand must be t0/x5 when using "