Lines Matching refs:MO

56   unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO,
104 const MCOperand &MO = MI.getOperand(tlsOpNo); in encodeInstruction() local
105 uint64_t op = getMachineOpValue(MI, MO, Fixups, STI); in encodeInstruction()
115 getMachineOpValue(const MCInst &MI, const MCOperand &MO, in getMachineOpValue() argument
119 if (MO.isReg()) in getMachineOpValue()
120 return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg()); in getMachineOpValue()
122 if (MO.isImm()) in getMachineOpValue()
123 return MO.getImm(); in getMachineOpValue()
125 assert(MO.isExpr()); in getMachineOpValue()
126 const MCExpr *Expr = MO.getExpr(); in getMachineOpValue()
145 const MCOperand &MO = MI.getOperand(OpNo); in getCallTargetOpValue() local
146 if (MO.isReg() || MO.isImm()) in getCallTargetOpValue()
147 return getMachineOpValue(MI, MO, Fixups, STI); in getCallTargetOpValue()
154 const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(MO.getExpr()); in getCallTargetOpValue()
166 if (const SparcMCExpr *SExpr = dyn_cast<SparcMCExpr>(MO.getExpr())) { in getCallTargetOpValue()
171 Fixups.push_back(MCFixup::create(0, MO.getExpr(), fixupKind)); in getCallTargetOpValue()
180 const MCOperand &MO = MI.getOperand(OpNo); in getBranchTargetOpValue() local
181 if (MO.isReg() || MO.isImm()) in getBranchTargetOpValue()
182 return getMachineOpValue(MI, MO, Fixups, STI); in getBranchTargetOpValue()
184 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchTargetOpValue()
193 const MCOperand &MO = MI.getOperand(OpNo); in getBranchPredTargetOpValue() local
194 if (MO.isReg() || MO.isImm()) in getBranchPredTargetOpValue()
195 return getMachineOpValue(MI, MO, Fixups, STI); in getBranchPredTargetOpValue()
197 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchPredTargetOpValue()
205 const MCOperand &MO = MI.getOperand(OpNo); in getBranchOnRegTargetOpValue() local
206 if (MO.isReg() || MO.isImm()) in getBranchOnRegTargetOpValue()
207 return getMachineOpValue(MI, MO, Fixups, STI); in getBranchOnRegTargetOpValue()
209 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchOnRegTargetOpValue()
211 Fixups.push_back(MCFixup::create(0, MO.getExpr(), in getBranchOnRegTargetOpValue()