Lines Matching refs:CurOp
712 unsigned CurOp = X86II::getOperandBias(Desc); in EmitVEXOpcodePrefix() local
734 CurOp += X86::AddrNumOperands; in EmitVEXOpcodePrefix()
737 EVEX_aaa = getWriteMaskRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
740 VEX_4V = getVEXRegisterEncoding(MI, CurOp); in EmitVEXOpcodePrefix()
741 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
743 CurOp++; in EmitVEXOpcodePrefix()
746 const MCOperand &MO = MI.getOperand(CurOp); in EmitVEXOpcodePrefix()
765 if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
767 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
769 CurOp++; in EmitVEXOpcodePrefix()
772 EVEX_aaa = getWriteMaskRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
775 VEX_4V = getVEXRegisterEncoding(MI, CurOp); in EmitVEXOpcodePrefix()
776 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
778 CurOp++; in EmitVEXOpcodePrefix()
797 VEX_4V = getVEXRegisterEncoding(MI, CurOp+X86::AddrNumOperands); in EmitVEXOpcodePrefix()
807 VEX_4V = getVEXRegisterEncoding(MI, CurOp); in EmitVEXOpcodePrefix()
808 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
810 CurOp++; in EmitVEXOpcodePrefix()
814 EVEX_aaa = getWriteMaskRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
833 if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
835 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
837 CurOp++; in EmitVEXOpcodePrefix()
840 EVEX_aaa = getWriteMaskRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
843 VEX_4V = getVEXRegisterEncoding(MI, CurOp); in EmitVEXOpcodePrefix()
844 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
846 CurOp++; in EmitVEXOpcodePrefix()
850 CurOp++; in EmitVEXOpcodePrefix()
852 if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
854 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
856 CurOp++; in EmitVEXOpcodePrefix()
858 VEX_4V = getVEXRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
862 assert(RcOperand >= CurOp); in EmitVEXOpcodePrefix()
873 if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
875 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
877 CurOp++; in EmitVEXOpcodePrefix()
880 EVEX_aaa = getWriteMaskRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
883 VEX_4V = getVEXRegisterEncoding(MI, CurOp); in EmitVEXOpcodePrefix()
884 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
886 CurOp++; in EmitVEXOpcodePrefix()
889 if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
891 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
903 VEX_4V = getVEXRegisterEncoding(MI, CurOp); in EmitVEXOpcodePrefix()
904 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
906 CurOp++; in EmitVEXOpcodePrefix()
909 EVEX_aaa = getWriteMaskRegisterEncoding(MI, CurOp++); in EmitVEXOpcodePrefix()
911 if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
913 if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg())) in EmitVEXOpcodePrefix()
1167 unsigned CurOp = X86II::getOperandBias(Desc); in EncodeInstruction() local
1187 if (MemoryOperand != -1) MemoryOperand += CurOp; in EncodeInstruction()
1251 CurOp += 3; // Consume operands. in EncodeInstruction()
1264 CurOp += 2; // Consume operands. in EncodeInstruction()
1274 ++CurOp; // Consume operand. in EncodeInstruction()
1285 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in EncodeInstruction()
1288 ++CurOp; // skip segment operand in EncodeInstruction()
1292 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in EncodeInstruction()
1295 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), 1, FK_Data_1, CurByte, in EncodeInstruction()
1300 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in EncodeInstruction()
1303 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), 2, FK_Data_2, CurByte, in EncodeInstruction()
1308 EmitByte(BaseOpcode + GetX86RegNum(MI.getOperand(CurOp++)), CurByte, OS); in EncodeInstruction()
1313 SrcRegNum = CurOp + 1; in EncodeInstruction()
1321 EmitRegModRMByte(MI.getOperand(CurOp), in EncodeInstruction()
1323 CurOp = SrcRegNum + 1; in EncodeInstruction()
1328 SrcRegNum = CurOp + X86::AddrNumOperands; in EncodeInstruction()
1336 EmitMemModRMByte(MI, CurOp, in EncodeInstruction()
1339 CurOp = SrcRegNum + 1; in EncodeInstruction()
1344 SrcRegNum = CurOp + 1; in EncodeInstruction()
1356 GetX86RegNum(MI.getOperand(CurOp)), CurByte, OS); in EncodeInstruction()
1359 CurOp = HasMemOp4 ? SrcRegNum : SrcRegNum + 1; in EncodeInstruction()
1361 ++CurOp; in EncodeInstruction()
1369 unsigned FirstMemOp = CurOp+1; in EncodeInstruction()
1385 EmitMemModRMByte(MI, FirstMemOp, GetX86RegNum(MI.getOperand(CurOp)), in EncodeInstruction()
1387 CurOp += AddrOperands + 1; in EncodeInstruction()
1389 ++CurOp; in EncodeInstruction()
1399 ++CurOp; in EncodeInstruction()
1401 ++CurOp; in EncodeInstruction()
1404 EmitRegModRMByte(MI.getOperand(CurOp++), in EncodeInstruction()
1416 ++CurOp; in EncodeInstruction()
1418 ++CurOp; in EncodeInstruction()
1421 EmitMemModRMByte(MI, CurOp, (Form == X86II::MRMXm) ? 0 : Form-X86II::MRM0m, in EncodeInstruction()
1423 CurOp += X86::AddrNumOperands; in EncodeInstruction()
1458 while (CurOp != NumOps && NumOps - CurOp <= 2) { in EncodeInstruction()
1463 : CurOp); in EncodeInstruction()
1464 ++CurOp; in EncodeInstruction()
1470 if (CurOp != NumOps) { in EncodeInstruction()
1471 const MCOperand &MIMM = MI.getOperand(CurOp++); in EncodeInstruction()
1481 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in EncodeInstruction()
1492 if (/*!Desc.isVariadic() &&*/ CurOp != NumOps) { in EncodeInstruction()