Lines Matching full:bytes
48 ArrayRef<uint8_t> Bytes, uint64_t Address,
52 ArrayRef<uint8_t> Bytes,
78 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument
79 if (Size >= Bytes.size()) in nextByte()
81 auto V = Bytes[Size]; in nextByte()
86 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument
90 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
91 Bytes.data() + Bytes.size(), &Error) in nextLEB()
92 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB()
93 Bytes.data() + Bytes.size(), in nextLEB()
102 ArrayRef<uint8_t> Bytes, bool Signed) { in parseLEBImmediate() argument
104 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate()
111 bool parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) { in parseImmediate() argument
112 if (Size + sizeof(T) > Bytes.size()) in parseImmediate()
115 support::endian::read<T, llvm::endianness::little>(Bytes.data() + Size); in parseImmediate()
128 ArrayRef<uint8_t> Bytes, in onSymbolStart() argument
134 if (!nextLEB(FunctionCount, Bytes, Size, false)) in onSymbolStart()
140 if (!nextLEB(BodySize, Bytes, Size, false) || in onSymbolStart()
141 !nextLEB(LocalEntryCount, Bytes, Size, false)) in onSymbolStart()
147 if (!nextLEB(Count, Bytes, Size, false) || in onSymbolStart()
148 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart()
163 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/, in getInstruction() argument
167 int Opc = nextByte(Bytes, Size); in getInstruction()
184 if (!nextLEB(PrefixedOpc, Bytes, Size, false)) in getInstruction()
211 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
218 if (!parseLEBImmediate(MI, Size, Bytes, true)) in getInstruction()
226 if (!nextLEB(Val, Bytes, Size, true)) in getInstruction()
249 if (!parseImmediate<float>(MI, Size, Bytes)) in getInstruction()
254 if (!parseImmediate<double>(MI, Size, Bytes)) in getInstruction()
260 if (!parseImmediate<uint8_t>(MI, Size, Bytes)) in getInstruction()
265 if (!parseImmediate<uint16_t>(MI, Size, Bytes)) in getInstruction()
270 if (!parseImmediate<uint32_t>(MI, Size, Bytes)) in getInstruction()
275 if (!parseImmediate<uint64_t>(MI, Size, Bytes)) in getInstruction()
281 if (!nextLEB(TargetTableLen, Bytes, Size, false)) in getInstruction()
284 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
288 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()