Lines Matching defs:Bytes

47                               ArrayRef<uint8_t> Bytes, uint64_t Address,
51 ArrayRef<uint8_t> Bytes,
77 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) {
78 if (Size >= Bytes.size())
80 auto V = Bytes[Size];
85 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size,
89 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N,
90 Bytes.data() + Bytes.size(), &Error)
91 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N,
92 Bytes.data() + Bytes.size(),
101 ArrayRef<uint8_t> Bytes, bool Signed) {
103 if (!nextLEB(Val, Bytes, Size, Signed))
110 bool parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) {
111 if (Size + sizeof(T) > Bytes.size())
114 support::endian::read<T, llvm::endianness::little>(Bytes.data() + Size);
127 ArrayRef<uint8_t> Bytes,
133 if (!nextLEB(FunctionCount, Bytes, Size, false))
139 if (!nextLEB(BodySize, Bytes, Size, false) ||
140 !nextLEB(LocalEntryCount, Bytes, Size, false))
146 if (!nextLEB(Count, Bytes, Size, false) ||
147 !nextLEB(Type, Bytes, Size, false))
162 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/,
166 int Opc = nextByte(Bytes, Size);
183 if (!nextLEB(PrefixedOpc, Bytes, Size, false))
210 if (!parseLEBImmediate(MI, Size, Bytes, false))
217 if (!parseLEBImmediate(MI, Size, Bytes, true))
225 if (!nextLEB(Val, Bytes, Size, true))
248 if (!parseImmediate<float>(MI, Size, Bytes))
253 if (!parseImmediate<double>(MI, Size, Bytes))
259 if (!parseImmediate<uint8_t>(MI, Size, Bytes))
264 if (!parseImmediate<uint16_t>(MI, Size, Bytes))
269 if (!parseImmediate<uint32_t>(MI, Size, Bytes))
274 if (!parseImmediate<uint64_t>(MI, Size, Bytes))
280 if (!nextLEB(TargetTableLen, Bytes, Size, false))
283 if (!parseLEBImmediate(MI, Size, Bytes, false))
287 if (!parseLEBImmediate(MI, Size, Bytes, false))
292 if (!parseLEBImmediate(MI, Size, Bytes, false))
296 if (!parseImmediate<uint8_t>(MI, Size, Bytes))
301 if (!parseLEBImmediate(MI, Size, Bytes, false)) // tag index
304 if (!parseLEBImmediate(MI, Size, Bytes, false)) // destination