Lines Matching defs:MCOp
58 unsigned getMachineOpValue(const MCInst &Inst, const MCOperand &MCOp,
113 const MCInst &Inst, const MCOperand &MCOp, SmallVectorImpl<MCFixup> &Fixups,
115 if (MCOp.isReg())
116 return getLanaiRegisterNumbering(MCOp.getReg());
117 if (MCOp.isImm())
118 return static_cast<unsigned>(MCOp.getImm());
120 // MCOp must be an expression
121 assert(MCOp.isExpr());
122 const MCExpr *Expr = MCOp.getExpr();
133 MCFixup::create(0, MCOp.getExpr(), MCFixupKind(FixupKind(Expr))));
294 const MCOperand &MCOp = Inst.getOperand(OpNo);
295 if (MCOp.isReg() || MCOp.isImm())
296 return getMachineOpValue(Inst, MCOp, Fixups, SubtargetInfo);
299 0, MCOp.getExpr(), static_cast<MCFixupKind>(Lanai::FIXUP_LANAI_25)));
307 const MCOperand &MCOp = Inst.getOperand(OpNo);
308 if (MCOp.isReg() || MCOp.isImm())
309 return getMachineOpValue(Inst, MCOp, Fixups, SubtargetInfo);
312 0, MCOp.getExpr(), static_cast<MCFixupKind>(Lanai::FIXUP_LANAI_25)));