• Home
  • Raw
  • Download

Lines Matching refs:Op

54 void X86IntelInstPrinter::printSSEAVXCC(const MCInst *MI, unsigned Op,  in printSSEAVXCC()  argument
56 int64_t Imm = MI->getOperand(Op).getImm(); in printSSEAVXCC()
94 void X86IntelInstPrinter::printXOPCC(const MCInst *MI, unsigned Op, in printXOPCC() argument
96 int64_t Imm = MI->getOperand(Op).getImm(); in printXOPCC()
110 void X86IntelInstPrinter::printRoundingControl(const MCInst *MI, unsigned Op, in printRoundingControl() argument
112 int64_t Imm = MI->getOperand(Op).getImm() & 0x3; in printRoundingControl()
125 const MCOperand &Op = MI->getOperand(OpNo); in printPCRelImm() local
126 if (Op.isImm()) in printPCRelImm()
127 O << formatImm(Op.getImm()); in printPCRelImm()
129 assert(Op.isExpr() && "unknown pcrel immediate operand"); in printPCRelImm()
132 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr()); in printPCRelImm()
139 Op.getExpr()->print(O, &MAI); in printPCRelImm()
146 const MCOperand &Op = MI->getOperand(OpNo); in printOperand() local
147 if (Op.isReg()) { in printOperand()
148 printRegName(O, Op.getReg()); in printOperand()
149 } else if (Op.isImm()) { in printOperand()
150 O << formatImm((int64_t)Op.getImm()); in printOperand()
152 assert(Op.isExpr() && "unknown operand kind in printOperand"); in printOperand()
153 Op.getExpr()->print(O, &MAI); in printOperand()
157 void X86IntelInstPrinter::printMemReference(const MCInst *MI, unsigned Op, in printMemReference() argument
159 const MCOperand &BaseReg = MI->getOperand(Op+X86::AddrBaseReg); in printMemReference()
160 unsigned ScaleVal = MI->getOperand(Op+X86::AddrScaleAmt).getImm(); in printMemReference()
161 const MCOperand &IndexReg = MI->getOperand(Op+X86::AddrIndexReg); in printMemReference()
162 const MCOperand &DispSpec = MI->getOperand(Op+X86::AddrDisp); in printMemReference()
163 const MCOperand &SegReg = MI->getOperand(Op+X86::AddrSegmentReg); in printMemReference()
167 printOperand(MI, Op+X86::AddrSegmentReg, O); in printMemReference()
175 printOperand(MI, Op+X86::AddrBaseReg, O); in printMemReference()
183 printOperand(MI, Op+X86::AddrIndexReg, O); in printMemReference()
209 void X86IntelInstPrinter::printSrcIdx(const MCInst *MI, unsigned Op, in printSrcIdx() argument
211 const MCOperand &SegReg = MI->getOperand(Op+1); in printSrcIdx()
215 printOperand(MI, Op+1, O); in printSrcIdx()
219 printOperand(MI, Op, O); in printSrcIdx()
223 void X86IntelInstPrinter::printDstIdx(const MCInst *MI, unsigned Op, in printDstIdx() argument
227 printOperand(MI, Op, O); in printDstIdx()
231 void X86IntelInstPrinter::printMemOffset(const MCInst *MI, unsigned Op, in printMemOffset() argument
233 const MCOperand &DispSpec = MI->getOperand(Op); in printMemOffset()
234 const MCOperand &SegReg = MI->getOperand(Op+1); in printMemOffset()
238 printOperand(MI, Op+1, O); in printMemOffset()
254 void X86IntelInstPrinter::printU8Imm(const MCInst *MI, unsigned Op, in printU8Imm() argument
256 O << formatImm(MI->getOperand(Op).getImm() & 0xff); in printU8Imm()