Lines Matching refs:IndexReg
61 const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg); in Is16BitMemOperand() local
69 (IndexReg.getReg() != 0 && in Is16BitMemOperand()
70 X86MCRegisterClasses[X86::GR16RegClassID].contains(IndexReg.getReg()))) in Is16BitMemOperand()
207 const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg); in Is32BitMemOperand() local
211 (IndexReg.getReg() != 0 && in Is32BitMemOperand()
212 X86MCRegisterClasses[X86::GR32RegClassID].contains(IndexReg.getReg()))) in Is32BitMemOperand()
215 assert(IndexReg.getReg() == 0 && "Invalid eip-based address."); in Is32BitMemOperand()
226 const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg); in Is64BitMemOperand() local
230 (IndexReg.getReg() != 0 && in Is64BitMemOperand()
231 X86MCRegisterClasses[X86::GR64RegClassID].contains(IndexReg.getReg()))) in Is64BitMemOperand()
357 const MCOperand &IndexReg = MI.getOperand(Op+X86::AddrIndexReg); in emitMemModRMByte() local
365 assert(IndexReg.getReg() == 0 && "Invalid rip-relative address"); in emitMemModRMByte()
429 if (IndexReg.getReg()) { in emitMemModRMByte()
430 unsigned IndexReg16 = R16Table[GetX86RegNum(IndexReg)]; in emitMemModRMByte()
475 IndexReg.getReg() == 0 && in emitMemModRMByte()
528 assert(IndexReg.getReg() != X86::ESP && in emitMemModRMByte()
529 IndexReg.getReg() != X86::RSP && "Cannot use ESP as index reg!"); in emitMemModRMByte()
572 if (IndexReg.getReg()) in emitMemModRMByte()
573 IndexRegNo = GetX86RegNum(IndexReg); in emitMemModRMByte()
579 if (IndexReg.getReg()) in emitMemModRMByte()
580 IndexRegNo = GetX86RegNum(IndexReg); in emitMemModRMByte()