Lines Matching refs:MO
44 uint32_t getLitEncoding(const MCOperand &MO, unsigned OpSize) const;
59 uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
163 uint32_t SIMCCodeEmitter::getLitEncoding(const MCOperand &MO, in getLitEncoding() argument
165 if (MO.isExpr()) in getLitEncoding()
168 assert(!MO.isFPImm()); in getLitEncoding()
170 if (!MO.isImm()) in getLitEncoding()
174 return getLit32Encoding(static_cast<uint32_t>(MO.getImm())); in getLitEncoding()
178 return getLit64Encoding(static_cast<uint64_t>(MO.getImm())); in getLitEncoding()
231 const MCOperand &MO = MI.getOperand(OpNo); in getSOPPBrEncoding() local
233 if (MO.isExpr()) { in getSOPPBrEncoding()
234 const MCExpr *Expr = MO.getExpr(); in getSOPPBrEncoding()
240 return getMachineOpValue(MI, MO, Fixups, STI); in getSOPPBrEncoding()
244 const MCOperand &MO, in getMachineOpValue() argument
247 if (MO.isReg()) in getMachineOpValue()
248 return MRI.getEncodingValue(MO.getReg()); in getMachineOpValue()
250 if (MO.isExpr()) { in getMachineOpValue()
251 const MCSymbolRefExpr *Expr = cast<MCSymbolRefExpr>(MO.getExpr()); in getMachineOpValue()
259 if (&MO == &MI.getOperand(OpNo)) in getMachineOpValue()
268 uint32_t Enc = getLitEncoding(MO, RC.getSize()); in getMachineOpValue()
272 } else if (MO.isImm()) in getMachineOpValue()
273 return MO.getImm(); in getMachineOpValue()