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()
1174 unsigned CurOp = X86II::getOperandBias(Desc); in encodeInstruction() local
1194 if (MemoryOperand != -1) MemoryOperand += CurOp; in encodeInstruction()
1258 CurOp += 3; // Consume operands. in encodeInstruction()
1271 CurOp += 2; // Consume operands. in encodeInstruction()
1281 ++CurOp; // Consume operand. in encodeInstruction()
1292 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in encodeInstruction()
1295 ++CurOp; // skip segment operand in encodeInstruction()
1299 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in encodeInstruction()
1302 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), 1, FK_Data_1, CurByte, in encodeInstruction()
1307 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in encodeInstruction()
1310 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), 2, FK_Data_2, CurByte, in encodeInstruction()
1315 EmitByte(BaseOpcode + GetX86RegNum(MI.getOperand(CurOp++)), CurByte, OS); in encodeInstruction()
1320 SrcRegNum = CurOp + 1; in encodeInstruction()
1328 EmitRegModRMByte(MI.getOperand(CurOp), in encodeInstruction()
1330 CurOp = SrcRegNum + 1; in encodeInstruction()
1335 SrcRegNum = CurOp + X86::AddrNumOperands; in encodeInstruction()
1343 EmitMemModRMByte(MI, CurOp, in encodeInstruction()
1346 CurOp = SrcRegNum + 1; in encodeInstruction()
1351 SrcRegNum = CurOp + 1; in encodeInstruction()
1363 GetX86RegNum(MI.getOperand(CurOp)), CurByte, OS); in encodeInstruction()
1366 CurOp = HasMemOp4 ? SrcRegNum : SrcRegNum + 1; in encodeInstruction()
1368 ++CurOp; in encodeInstruction()
1376 unsigned FirstMemOp = CurOp+1; in encodeInstruction()
1392 EmitMemModRMByte(MI, FirstMemOp, GetX86RegNum(MI.getOperand(CurOp)), in encodeInstruction()
1394 CurOp += AddrOperands + 1; in encodeInstruction()
1396 ++CurOp; in encodeInstruction()
1406 ++CurOp; in encodeInstruction()
1408 ++CurOp; in encodeInstruction()
1411 EmitRegModRMByte(MI.getOperand(CurOp++), in encodeInstruction()
1423 ++CurOp; in encodeInstruction()
1425 ++CurOp; in encodeInstruction()
1428 EmitMemModRMByte(MI, CurOp, (Form == X86II::MRMXm) ? 0 : Form-X86II::MRM0m, in encodeInstruction()
1430 CurOp += X86::AddrNumOperands; in encodeInstruction()
1465 while (CurOp != NumOps && NumOps - CurOp <= 2) { in encodeInstruction()
1470 : CurOp); in encodeInstruction()
1471 ++CurOp; in encodeInstruction()
1477 if (CurOp != NumOps) { in encodeInstruction()
1478 const MCOperand &MIMM = MI.getOperand(CurOp++); in encodeInstruction()
1488 EmitImmediate(MI.getOperand(CurOp++), MI.getLoc(), in encodeInstruction()
1499 if (/*!Desc.isVariadic() &&*/ CurOp != NumOps) { in encodeInstruction()