Home | History | Annotate | Download | only in InstPrinter

Lines Matching refs:Op

62 void X86ATTInstPrinter::printSSECC(const MCInst *MI, unsigned Op,
64 int64_t Imm = MI->getOperand(Op).getImm() & 0xf;
86 void X86ATTInstPrinter::printAVXCC(const MCInst *MI, unsigned Op,
88 int64_t Imm = MI->getOperand(Op).getImm() & 0x1f;
132 const MCOperand &Op = MI->getOperand(OpNo);
133 if (Op.isImm())
134 O << formatImm(Op.getImm());
136 assert(Op.isExpr() && "unknown pcrel immediate operand");
139 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr());
146 O << *Op.getExpr();
153 const MCOperand &Op = MI->getOperand(OpNo);
154 if (Op.isReg()) {
155 printRegName(O, Op.getReg());
156 } else if (Op.isImm()) {
159 << '$' << formatImm((int64_t)Op.getImm())
162 if (CommentStream && (Op.getImm() > 255 || Op.getImm() < -256))
163 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm());
166 assert(Op.isExpr() && "unknown operand kind in printOperand");
168 << '$' << *Op.getExpr()
173 void X86ATTInstPrinter::printMemReference(const MCInst *MI, unsigned Op,
175 const MCOperand &BaseReg = MI->getOperand(Op);
176 const MCOperand &IndexReg = MI->getOperand(Op+2);
177 const MCOperand &DispSpec = MI->getOperand(Op+3);
178 const MCOperand &SegReg = MI->getOperand(Op+4);
184 printOperand(MI, Op+4, O);
200 printOperand(MI, Op, O);
204 printOperand(MI, Op+2, O);
205 unsigned ScaleVal = MI->getOperand(Op+1).getImm();