Lines Matching defs:ErrorLoc
105 bool generateImmOutOfRangeError(SMLoc ErrorLoc, int64_t Lower, int64_t Upper,
126 bool generateVTypeError(SMLoc ErrorLoc);
1434 SMLoc ErrorLoc, int64_t Lower, int64_t Upper,
1436 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
1442 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1443 return generateImmOutOfRangeError(ErrorLoc, Lower, Upper, Msg);
1483 SMLoc ErrorLoc = IDLoc;
1486 return Error(ErrorLoc, "too few operands for instruction");
1488 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1489 if (ErrorLoc == SMLoc())
1490 ErrorLoc = IDLoc;
1492 return Error(ErrorLoc, "invalid operand for instruction");
1500 SMLoc ErrorLoc = IDLoc;
1502 return Error(ErrorLoc, "too few operands for instruction");
1510 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1511 return Error(ErrorLoc, "operand must be a constant 64-bit integer");
1518 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1519 return Error(ErrorLoc, "operand either must be a constant 64-bit integer "
1528 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1529 return Error(ErrorLoc, "immediate must be zero");
1658 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1659 return Error(ErrorLoc, "operand must be a valid floating-point constant");
1662 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1663 return Error(ErrorLoc, "operand must be a bare symbol name");
1666 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1667 return Error(ErrorLoc, "operand must be a valid jump target");
1670 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1671 return Error(ErrorLoc, "operand must be a bare symbol name");
1674 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1675 return Error(ErrorLoc, "operand must be a symbol with %tprel_add modifier");
1678 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1679 return Error(ErrorLoc,
1683 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1684 return Error(ErrorLoc, "operand must be 'rtz' floating-point rounding mode");
1687 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1688 return generateVTypeError(ErrorLoc);
1691 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1692 return Error(ErrorLoc, "operand must be v0.t");
1695 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1696 return Error(ErrorLoc, "operand must be v0");
1707 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1709 ErrorLoc,
1713 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1715 ErrorLoc,
1723 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
1724 return Error(ErrorLoc, "operands must be register and register");
2385 bool RISCVAsmParser::generateVTypeError(SMLoc ErrorLoc) {
2387 ErrorLoc,
3252 SMLoc ErrorLoc = Parser.getTok().getLoc();
3265 return Error(ErrorLoc,
3270 return Error(ErrorLoc,
3283 return Error(ErrorLoc,
3287 return Error(ErrorLoc, "encoding value does not fit into instruction");
3290 return Error(ErrorLoc, "encoding value does not fit into instruction");
3294 return Error(ErrorLoc, "compressed instructions are not allowed");
3327 return Error(ErrorLoc, "invalid instruction format");
3617 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
3618 return Error(ErrorLoc, "the second input operand must be tp/x4 when using "
3630 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc();
3631 return Error(ErrorLoc, "the output operand must be t0/x5 when using "