Home | History | Annotate | Download | only in InstPrinter

Lines Matching refs:Op

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