Lines Matching refs:ErrorLoc
1062 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in generateImmOutOfRangeError() local
1063 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]"); in generateImmOutOfRangeError()
1103 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1106 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1108 ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction()
1109 if (ErrorLoc == SMLoc()) in MatchAndEmitInstruction()
1110 ErrorLoc = IDLoc; in MatchAndEmitInstruction()
1112 return Error(ErrorLoc, "invalid operand for instruction"); in MatchAndEmitInstruction()
1120 SMLoc ErrorLoc = IDLoc; in MatchAndEmitInstruction() local
1122 return Error(ErrorLoc, "too few operands for instruction"); in MatchAndEmitInstruction()
1130 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1131 return Error(ErrorLoc, "operand must be a constant 64-bit integer"); in MatchAndEmitInstruction()
1137 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1138 return Error(ErrorLoc, "immediate must be zero"); in MatchAndEmitInstruction()
1240 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1241 return Error(ErrorLoc, "operand must be formed of letters selected " in MatchAndEmitInstruction()
1245 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1247 ErrorLoc, in MatchAndEmitInstruction()
1251 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1252 return Error(ErrorLoc, "operand must be a bare symbol name"); in MatchAndEmitInstruction()
1255 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1256 return Error(ErrorLoc, "operand must be a valid jump target"); in MatchAndEmitInstruction()
1259 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1260 return Error(ErrorLoc, "operand must be a bare symbol name"); in MatchAndEmitInstruction()
1263 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1264 return Error(ErrorLoc, "operand must be a symbol with %tprel_add modifier"); in MatchAndEmitInstruction()
1267 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1269 ErrorLoc, in MatchAndEmitInstruction()
1274 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc(); in MatchAndEmitInstruction() local
1275 return Error(ErrorLoc, "operand must be v0.t"); in MatchAndEmitInstruction()
2273 SMLoc ErrorLoc = Parser.getTok().getLoc(); in parseDirectiveInsn() local
2275 return Error(ErrorLoc, "expected instruction format"); in parseDirectiveInsn()
2280 return Error(ErrorLoc, "invalid instruction format"); in parseDirectiveInsn()
2566 SMLoc ErrorLoc = ((RISCVOperand &)*Operands[3]).getStartLoc(); in checkPseudoAddTPRel() local
2567 return Error(ErrorLoc, "the second input operand must be tp/x4 when using " in checkPseudoAddTPRel()