Lines Matching refs:Op
72 void X86ATTInstPrinter::printSSEAVXCC(const MCInst *MI, unsigned Op, in printSSEAVXCC() argument
74 int64_t Imm = MI->getOperand(Op).getImm(); in printSSEAVXCC()
112 void X86ATTInstPrinter::printXOPCC(const MCInst *MI, unsigned Op, in printXOPCC() argument
114 int64_t Imm = MI->getOperand(Op).getImm(); in printXOPCC()
128 void X86ATTInstPrinter::printRoundingControl(const MCInst *MI, unsigned Op, in printRoundingControl() argument
130 int64_t Imm = MI->getOperand(Op).getImm() & 0x3; in printRoundingControl()
144 const MCOperand &Op = MI->getOperand(OpNo); in printPCRelImm() local
145 if (Op.isImm()) in printPCRelImm()
146 O << formatImm(Op.getImm()); in printPCRelImm()
148 assert(Op.isExpr() && "unknown pcrel immediate operand"); in printPCRelImm()
151 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr()); in printPCRelImm()
157 Op.getExpr()->print(O, &MAI); in printPCRelImm()
164 const MCOperand &Op = MI->getOperand(OpNo); in printOperand() local
165 if (Op.isReg()) { in printOperand()
166 printRegName(O, Op.getReg()); in printOperand()
167 } else if (Op.isImm()) { in printOperand()
169 int64_t Imm = Op.getImm(); in printOperand()
188 assert(Op.isExpr() && "unknown operand kind in printOperand"); in printOperand()
190 Op.getExpr()->print(O, &MAI); in printOperand()
195 void X86ATTInstPrinter::printMemReference(const MCInst *MI, unsigned Op, in printMemReference() argument
197 const MCOperand &BaseReg = MI->getOperand(Op + X86::AddrBaseReg); in printMemReference()
198 const MCOperand &IndexReg = MI->getOperand(Op + X86::AddrIndexReg); in printMemReference()
199 const MCOperand &DispSpec = MI->getOperand(Op + X86::AddrDisp); in printMemReference()
200 const MCOperand &SegReg = MI->getOperand(Op + X86::AddrSegmentReg); in printMemReference()
206 printOperand(MI, Op + X86::AddrSegmentReg, O); in printMemReference()
222 printOperand(MI, Op + X86::AddrBaseReg, O); in printMemReference()
226 printOperand(MI, Op + X86::AddrIndexReg, O); in printMemReference()
227 unsigned ScaleVal = MI->getOperand(Op + X86::AddrScaleAmt).getImm(); in printMemReference()
239 void X86ATTInstPrinter::printSrcIdx(const MCInst *MI, unsigned Op, in printSrcIdx() argument
241 const MCOperand &SegReg = MI->getOperand(Op + 1); in printSrcIdx()
247 printOperand(MI, Op + 1, O); in printSrcIdx()
252 printOperand(MI, Op, O); in printSrcIdx()
258 void X86ATTInstPrinter::printDstIdx(const MCInst *MI, unsigned Op, in printDstIdx() argument
263 printOperand(MI, Op, O); in printDstIdx()
269 void X86ATTInstPrinter::printMemOffset(const MCInst *MI, unsigned Op, in printMemOffset() argument
271 const MCOperand &DispSpec = MI->getOperand(Op); in printMemOffset()
272 const MCOperand &SegReg = MI->getOperand(Op + 1); in printMemOffset()
278 printOperand(MI, Op + 1, O); in printMemOffset()
292 void X86ATTInstPrinter::printU8Imm(const MCInst *MI, unsigned Op, in printU8Imm() argument
294 O << markup("<imm:") << '$' << formatImm(MI->getOperand(Op).getImm() & 0xff) in printU8Imm()