Home | History | Annotate | Download | only in InstPrinter

Lines Matching defs:Op

53 void X86ATTInstPrinter::printSSECC(const MCInst *MI, unsigned Op,
55 switch (MI->getOperand(Op).getImm()) {
98 const MCOperand &Op = MI->getOperand(OpNo);
99 if (Op.isImm())
100 O << Op.getImm();
102 assert(Op.isExpr() && "unknown pcrel immediate operand");
105 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr());
113 O << *Op.getExpr();
120 const MCOperand &Op = MI->getOperand(OpNo);
121 if (Op.isReg()) {
122 O << '%' << getRegisterName(Op.getReg());
123 } else if (Op.isImm()) {
125 O << '$' << (int64_t)Op.getImm();
127 if (CommentStream && (Op.getImm() > 255 || Op.getImm() < -256))
128 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm());
131 assert(Op.isExpr() && "unknown operand kind in printOperand");
132 O << '$' << *Op.getExpr();
136 void X86ATTInstPrinter::printMemReference(const MCInst *MI, unsigned Op,
138 const MCOperand &BaseReg = MI->getOperand(Op);
139 const MCOperand &IndexReg = MI->getOperand(Op+2);
140 const MCOperand &DispSpec = MI->getOperand(Op+3);
141 const MCOperand &SegReg = MI->getOperand(Op+4);
145 printOperand(MI, Op+4, O);
161 printOperand(MI, Op, O);
165 printOperand(MI, Op+2, O);
166 unsigned ScaleVal = MI->getOperand(Op+1).getImm();