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