Lines Matching full:mo
45 unsigned getMachineOpValue(const MCInst &MI, const MCOperand &MO,
53 const MCOperand &MO = MI.getOperand(Idx);
54 if (MO.isImm())
55 return (MO.getImm() >> shift);
57 assert(MO.isExpr() && "Unexpected MO type.");
59 MCFixupKind Kind = getTargetFixup(MO.getExpr());
60 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc()));
91 const MCOperand &MO = MI.getOperand(Idx);
92 assert(MO.isImm() && "Unexpected MO type.");
93 return 1 << MO.getImm();
102 const MCOperand &MO = MI.getOperand(Idx);
104 if (MO.isImm())
105 return MO.getImm() >> 1;
107 assert(MO.isExpr() && "Unexpected MO type.");
110 if (MO.getExpr()->getKind() == MCExpr::Target)
111 Kind = getTargetFixup(MO.getExpr());
113 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc()));
121 const MCOperand &MO = MI.getOperand(Idx);
122 assert(MO.isExpr() && "Unexpected MO type.");
125 if (MO.getExpr()->getKind() == MCExpr::Target)
126 Kind = getTargetFixup(MO.getExpr());
128 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc()));
136 const MCOperand &MO = MI.getOperand(Idx);
137 assert(MO.isExpr() && "Unexpected MO type.");
140 if (MO.getExpr()->getKind() == MCExpr::Target)
141 Kind = getTargetFixup(MO.getExpr());
143 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc()));
150 const MCOperand &MO = MI.getOperand(Idx);
151 assert(MO.isExpr() && "Unexpected MO type.");
154 if (MO.getExpr()->getKind() == MCExpr::Target)
155 Kind = getTargetFixup(MO.getExpr());
157 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc()));
164 const MCOperand &MO = MI.getOperand(Idx);
165 assert(MO.isExpr() && "Unexpected MO type.");
168 if (MO.getExpr()->getKind() == MCExpr::Target)
169 Kind = getTargetFixup(MO.getExpr());
171 Fixups.push_back(MCFixup::create(0, MO.getExpr(), Kind, MI.getLoc()));