Lines Matching defs:MI

45   void encodeInstruction(const MCInst &MI, SmallVectorImpl<char> &CB,
51 uint64_t getBinaryCodeForInstr(const MCInst &MI,
54 uint32_t getOperandBitOffset(const MCInst &MI, unsigned OpNum,
58 // MO in MI. Fixups is the list of fixups against MI.
59 uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
66 uint64_t getImmOpValue(const MCInst &MI, unsigned OpNum,
73 uint64_t getLenEncoding(const MCInst &MI, unsigned OpNum,
77 // Operand OpNum of MI needs a PC-relative fixup of kind Kind at
78 // Offset bytes from the start of MI. Add the fixup to Fixups
82 uint64_t getPCRelEncoding(const MCInst &MI, unsigned OpNum,
87 uint64_t getPC16DBLEncoding(const MCInst &MI, unsigned OpNum,
90 return getPCRelEncoding(MI, OpNum, Fixups,
93 uint64_t getPC32DBLEncoding(const MCInst &MI, unsigned OpNum,
96 return getPCRelEncoding(MI, OpNum, Fixups,
99 uint64_t getPC16DBLTLSEncoding(const MCInst &MI, unsigned OpNum,
102 return getPCRelEncoding(MI, OpNum, Fixups,
105 uint64_t getPC32DBLTLSEncoding(const MCInst &MI, unsigned OpNum,
108 return getPCRelEncoding(MI, OpNum, Fixups,
111 uint64_t getPC12DBLBPPEncoding(const MCInst &MI, unsigned OpNum,
114 return getPCRelEncoding(MI, OpNum, Fixups,
117 uint64_t getPC16DBLBPPEncoding(const MCInst &MI, unsigned OpNum,
120 return getPCRelEncoding(MI, OpNum, Fixups,
123 uint64_t getPC24DBLBPPEncoding(const MCInst &MI, unsigned OpNum,
126 return getPCRelEncoding(MI, OpNum, Fixups,
133 void SystemZMCCodeEmitter::encodeInstruction(const MCInst &MI,
137 uint64_t Bits = getBinaryCodeForInstr(MI, Fixups, STI);
138 unsigned Size = MCII.get(MI.getOpcode()).getSize();
148 getMachineOpValue(const MCInst &MI, const MCOperand &MO,
161 uint64_t SystemZMCCodeEmitter::getImmOpValue(const MCInst &MI, unsigned OpNum,
164 const MCOperand &MO = MI.getOperand(OpNum);
168 unsigned MIBitSize = MCII.get(MI.getOpcode()).getSize() * 8;
169 uint32_t RawBitOffset = getOperandBitOffset(MI, OpNum, STI);
174 (MCFixupKind)Kind, MI.getLoc()));
182 SystemZMCCodeEmitter::getLenEncoding(const MCInst &MI, unsigned OpNum,
185 return getImmOpValue<Kind>(MI, OpNum, Fixups, STI) - 1;
189 SystemZMCCodeEmitter::getPCRelEncoding(const MCInst &MI, unsigned OpNum,
193 SMLoc Loc = MI.getLoc();
194 const MCOperand &MO = MI.getOperand(OpNum);
201 // The operand value is relative to the start of MI, but the fixup
203 // into MI. Add Offset to the relocation value to cancel out
212 if (AllowTLS && OpNum + 1 < MI.getNumOperands()) {
213 const MCOperand &MOTLS = MI.getOperand(OpNum + 1);