Lines Matching refs:CurOp
708 unsigned CurOp = X86II::getOperandBias(Desc);
727 CurOp += X86::AddrNumOperands;
730 EVEX_aaa = getX86RegEncoding(MI, CurOp++);
733 unsigned VRegEnc = getX86RegEncoding(MI, CurOp++);
738 unsigned RegEnc = getX86RegEncoding(MI, CurOp++);
753 unsigned RegEnc = getX86RegEncoding(MI, CurOp++);
758 EVEX_aaa = getX86RegEncoding(MI, CurOp++);
761 unsigned VRegEnc = getX86RegEncoding(MI, CurOp++);
776 // CurOp points to start of the MemoryOperand,
778 // CurOp + X86::AddrNumOperands will point to src3.
779 VEX_4V = ~getX86RegEncoding(MI, CurOp + X86::AddrNumOperands) & 0xf;
790 unsigned VRegEnc = getX86RegEncoding(MI, CurOp++);
796 EVEX_aaa = getX86RegEncoding(MI, CurOp++);
813 unsigned RegEnc = getX86RegEncoding(MI, CurOp++);
818 EVEX_aaa = getX86RegEncoding(MI, CurOp++);
821 unsigned VRegEnc = getX86RegEncoding(MI, CurOp++);
827 CurOp++;
829 RegEnc = getX86RegEncoding(MI, CurOp++);
833 VEX_4V = ~getX86RegEncoding(MI, CurOp++) & 0xf;
837 assert(RcOperand >= CurOp);
849 unsigned RegEnc = getX86RegEncoding(MI, CurOp++);
854 EVEX_aaa = getX86RegEncoding(MI, CurOp++);
857 unsigned VRegEnc = getX86RegEncoding(MI, CurOp++);
862 RegEnc = getX86RegEncoding(MI, CurOp++);
876 unsigned VRegEnc = getX86RegEncoding(MI, CurOp++);
881 EVEX_aaa = getX86RegEncoding(MI, CurOp++);
883 unsigned RegEnc = getX86RegEncoding(MI, CurOp++);
970 unsigned CurOp = X86II::getOperandBias(Desc);
973 for (unsigned i = CurOp; i != NumOps; ++i) {
988 REX |= isX86_64ExtendedReg(MI, CurOp++) << 0; // REX.B
991 REX |= isX86_64ExtendedReg(MI, CurOp++) << 2; // REX.R
992 REX |= isX86_64ExtendedReg(MI, CurOp++) << 0; // REX.B
995 REX |= isX86_64ExtendedReg(MI, CurOp++) << 2; // REX.R
998 CurOp += X86::AddrNumOperands;
1002 REX |= isX86_64ExtendedReg(MI, CurOp++) << 0; // REX.B
1003 REX |= isX86_64ExtendedReg(MI, CurOp++) << 2; // REX.R
1008 CurOp += X86::AddrNumOperands;
1009 REX |= isX86_64ExtendedReg(MI, CurOp++) << 2; // REX.R
1024 REX |= isX86_64ExtendedReg(MI, CurOp++) << 0; // REX.B
1126 unsigned CurOp = X86II::getOperandBias(Desc);
1150 if (MemoryOperand != -1) MemoryOperand += CurOp;
1215 CurOp += 3; // Consume operands.
1228 CurOp += 2; // Consume operands.
1238 ++CurOp; // Consume operand.
1249 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(),
1252 ++CurOp; // skip segment operand
1256 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(),
1259 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), 1, FK_Data_1, CurByte,
1264 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(),
1267 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), 2, FK_Data_2, CurByte,
1272 EmitByte(BaseOpcode + GetX86RegNum(MI.getOperand(CurOp++)), CurByte, OS);
1277 unsigned SrcRegNum = CurOp + 1;
1285 EmitRegModRMByte(MI.getOperand(CurOp),
1287 CurOp = SrcRegNum + 1;
1292 unsigned SrcRegNum = CurOp + X86::AddrNumOperands;
1300 emitMemModRMByte(MI, CurOp, GetX86RegNum(MI.getOperand(SrcRegNum)), TSFlags,
1302 CurOp = SrcRegNum + 1;
1307 unsigned SrcRegNum = CurOp + 1;
1319 GetX86RegNum(MI.getOperand(CurOp)), CurByte, OS);
1320 CurOp = SrcRegNum + 1;
1322 ++CurOp;
1324 I8RegNum = getX86RegEncoding(MI, CurOp++);
1331 unsigned FirstMemOp = CurOp+1;
1344 emitMemModRMByte(MI, FirstMemOp, GetX86RegNum(MI.getOperand(CurOp)),
1346 CurOp = FirstMemOp + X86::AddrNumOperands;
1348 ++CurOp;
1350 I8RegNum = getX86RegEncoding(MI, CurOp++);
1360 ++CurOp;
1362 ++CurOp;
1364 EmitRegModRMByte(MI.getOperand(CurOp++),
1376 ++CurOp;
1378 ++CurOp;
1380 emitMemModRMByte(MI, CurOp,
1383 CurOp += X86::AddrNumOperands;
1418 if (CurOp != NumOps) {
1419 unsigned Val = MI.getOperand(CurOp++).getImm();
1429 while (CurOp != NumOps && NumOps - CurOp <= 2) {
1430 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(),
1441 if (/*!Desc.isVariadic() &&*/ CurOp != NumOps) {