Lines Matching defs:MO
57 // MO in MI. Fixups is the list of fixups against MI.
58 uint32_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
154 XtensaMCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO,
157 if (MO.isReg())
158 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg());
159 if (MO.isImm()) {
160 uint32_t Res = static_cast<uint32_t>(MO.getImm());
172 const MCOperand &MO = MI.getOperand(OpNum);
174 if (MO.isImm())
175 return MO.getImm();
177 const MCExpr *Expr = MO.getExpr();
186 const MCOperand &MO = MI.getOperand(OpNum);
187 if (MO.isImm())
188 return static_cast<uint32_t>(MO.getImm());
190 const MCExpr *Expr = MO.getExpr();
215 const MCOperand &MO = MI.getOperand(OpNum);
216 if (MO.isImm()) {
217 int32_t Res = MO.getImm();
225 assert((MO.isExpr()) && "Unexpected operand value!");
226 const MCExpr *Expr = MO.getExpr();
236 const MCOperand &MO = MI.getOperand(OpNum);
237 if (MO.isImm()) {
238 int32_t Res = MO.getImm();
245 assert((MO.isExpr()) && "Unexpected operand value!");
248 0, MO.getExpr(), MCFixupKind(Xtensa::fixup_xtensa_l32r_16), MI.getLoc()));
299 const MCOperand &MO = MI.getOperand(OpNo);
300 int32_t Res = MO.getImm();
311 const MCOperand &MO = MI.getOperand(OpNo);
312 int32_t Res = MO.getImm();
324 const MCOperand &MO = MI.getOperand(OpNo);
325 int32_t Res = MO.getImm();
336 const MCOperand &MO = MI.getOperand(OpNo);
337 uint32_t Res = static_cast<uint32_t>(MO.getImm());
348 const MCOperand &MO = MI.getOperand(OpNo);
349 uint32_t Res = static_cast<uint32_t>(MO.getImm());
360 const MCOperand &MO = MI.getOperand(OpNo);
361 uint32_t Res = static_cast<uint32_t>(MO.getImm());
372 const MCOperand &MO = MI.getOperand(OpNo);
373 uint32_t Res = static_cast<uint32_t>(MO.getImm());
384 const MCOperand &MO = MI.getOperand(OpNo);
385 int32_t Res = static_cast<int32_t>(MO.getImm());
400 const MCOperand &MO = MI.getOperand(OpNo);
401 int32_t Res = static_cast<int32_t>(MO.getImm());
412 const MCOperand &MO = MI.getOperand(OpNo);
413 uint32_t Res = static_cast<uint32_t>(MO.getImm());
460 const MCOperand &MO = MI.getOperand(OpNo);
461 uint32_t Res = static_cast<uint32_t>(MO.getImm());