Lines Matching defs:Operands
64 bool generateImmOutOfRangeError(OperandVector &Operands, uint64_t ErrorInfo,
71 OperandVector &Operands, MCStreamer &Out,
78 SMLoc NameLoc, OperandVector &Operands) override;
89 bool processInstruction(MCInst &Inst, SMLoc IDLoc, OperandVector &Operands,
106 ParseStatus parseImmediate(OperandVector &Operands);
107 ParseStatus parseRegister(OperandVector &Operands);
108 ParseStatus parseBaseRegImm(OperandVector &Operands);
109 ParseStatus parseCSKYSymbol(OperandVector &Operands);
110 ParseStatus parseConstpoolSymbol(OperandVector &Operands);
111 ParseStatus parseDataSymbol(OperandVector &Operands);
112 ParseStatus parsePSRFlag(OperandVector &Operands);
113 ParseStatus parseRegSeq(OperandVector &Operands);
114 ParseStatus parseRegList(OperandVector &Operands);
116 bool parseOperand(OperandVector &Operands, StringRef Mnemonic);
653 OperandVector &Operands, uint64_t ErrorInfo, int64_t Lower, int64_t Upper,
655 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
660 OperandVector &Operands,
667 auto Result = MatchInstructionImpl(Operands, Inst, ErrorInfo, MissingFeatures,
673 return processInstruction(Inst, IDLoc, Operands, Out);
689 CSKYMnemonicSpellCheck(((CSKYOperand &)*Operands[0]).getToken(), FBS);
696 if (ErrorInfo >= Operands.size())
699 ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
712 if (ErrorInfo != ~0U && ErrorInfo >= Operands.size())
720 return generateImmOutOfRangeError(Operands, ErrorInfo, -(1 << 7),
723 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 3));
725 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 4));
727 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 5));
729 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 6));
731 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 8));
733 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 12));
735 return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 16));
737 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 1) - 1);
739 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 2) - 1);
741 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 3) - 1);
743 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 4) - 1);
745 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 5) - 1);
747 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 6) - 1);
749 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 7) - 1);
751 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 8) - 1);
753 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 12) - 1);
755 return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 16) - 1);
758 Operands, ErrorInfo, 0, (1 << 5) - 2,
762 Operands, ErrorInfo, 0, (1 << 12) - 2,
766 Operands, ErrorInfo, 0, (1 << 5) - 4,
770 Operands, ErrorInfo, 0, (1 << 7) - 2,
774 Operands, ErrorInfo, 0, (1 << 7) - 4,
778 Operands, ErrorInfo, 0, (1 << 8) - 4,
782 Operands, ErrorInfo, 0, (1 << 8) - 8,
786 Operands, ErrorInfo, 0, (1 << 8) - 256,
790 Operands, ErrorInfo, 0, (1 << 12) - 4,
793 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
797 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
801 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
805 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
809 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
813 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
817 SMLoc ErrorLoc = ((CSKYOperand &)*Operands[ErrorInfo]).getStartLoc();
916 OperandVector &Operands,
1028 ParseStatus CSKYAsmParser::parseRegister(OperandVector &Operands) {
1043 Operands.push_back(CSKYOperand::createReg(Reg, S, E));
1050 ParseStatus CSKYAsmParser::parseBaseRegImm(OperandVector &Operands) {
1053 Operands.push_back(CSKYOperand::createToken("(", getLoc()));
1057 if (!parseRegister(Operands).isSuccess()) {
1059 Operands.pop_back();
1064 Operands.push_back(CSKYOperand::createToken(")", getLoc()));
1074 if (parseRegister(Operands).isSuccess()) {
1078 Operands.push_back(CSKYOperand::createToken("<<", getLoc()));
1082 if (!parseImmediate(Operands).isSuccess())
1085 } else if (!parseImmediate(Operands).isSuccess()) {
1092 Operands.push_back(CSKYOperand::createToken(")", getLoc()));
1099 ParseStatus CSKYAsmParser::parseImmediate(OperandVector &Operands) {
1117 Operands.push_back(CSKYOperand::createImm(IdVal, S, E));
1122 /// information, adding to Operands. If operand was parsed, returns false, else
1124 bool CSKYAsmParser::parseOperand(OperandVector &Operands, StringRef Mnemonic) {
1128 MatchOperandParserImpl(Operands, Mnemonic, /*ParseForAllFeatures=*/true);
1135 auto Res = parseRegister(Operands);
1143 Res = parseBaseRegImm(Operands);
1150 Res = parseImmediate(Operands);
1161 ParseStatus CSKYAsmParser::parseCSKYSymbol(OperandVector &Operands) {
1216 Operands.push_back(CSKYOperand::createImm(Res, S, E));
1232 Operands.push_back(CSKYOperand::createImm(Res, S, E));
1236 ParseStatus CSKYAsmParser::parseDataSymbol(OperandVector &Operands) {
1251 Operands.push_back(CSKYOperand::createConstpoolOp(Expr, S, E));
1294 Operands.push_back(CSKYOperand::createConstpoolOp(Res, S, E));
1313 Operands.push_back(CSKYOperand::createConstpoolOp(Res, S, E));
1317 ParseStatus CSKYAsmParser::parseConstpoolSymbol(OperandVector &Operands) {
1332 Operands.push_back(CSKYOperand::createConstpoolOp(Expr, S, E));
1366 Operands.push_back(CSKYOperand::createConstpoolOp(Res, S, E));
1385 Operands.push_back(CSKYOperand::createConstpoolOp(Res, S, E));
1389 ParseStatus CSKYAsmParser::parsePSRFlag(OperandVector &Operands) {
1420 Operands.push_back(
1425 ParseStatus CSKYAsmParser::parseRegSeq(OperandVector &Operands) {
1428 if (!parseRegister(Operands).isSuccess())
1431 auto Ry = Operands.back()->getReg();
1432 Operands.pop_back();
1436 if (!parseRegister(Operands).isSuccess())
1439 auto Rz = Operands.back()->getReg();
1440 Operands.pop_back();
1442 Operands.push_back(CSKYOperand::createRegSeq(Ry, Rz, S));
1446 ParseStatus CSKYAsmParser::parseRegList(OperandVector &Operands) {
1451 if (!parseRegister(Operands).isSuccess())
1454 auto Ry = Operands.back()->getReg();
1455 Operands.pop_back();
1458 if (!parseRegister(Operands).isSuccess())
1461 auto Rz = Operands.back()->getReg();
1462 Operands.pop_back();
1482 Operands.push_back(CSKYOperand::createRegList(reglist, S));
1487 SMLoc NameLoc, OperandVector &Operands) {
1489 Operands.push_back(CSKYOperand::createToken(Name, NameLoc));
1496 if (parseOperand(Operands, Name))
1501 if (parseOperand(Operands, Name))