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