Lines Matching refs:Bytes
47 ArrayRef<uint8_t> Bytes, uint64_t Address,
50 onSymbolStart(SymbolInfoTy &Symbol, uint64_t &Size, ArrayRef<uint8_t> Bytes,
76 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument
77 if (Size >= Bytes.size()) in nextByte()
79 auto V = Bytes[Size]; in nextByte()
84 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument
88 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
89 Bytes.data() + Bytes.size(), &Error) in nextLEB()
90 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB()
91 Bytes.data() + Bytes.size(), in nextLEB()
100 ArrayRef<uint8_t> Bytes, bool Signed) { in parseLEBImmediate() argument
102 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate()
109 bool parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) { in parseImmediate() argument
110 if (Size + sizeof(T) > Bytes.size()) in parseImmediate()
113 support::endian::read<T, llvm::endianness::little>(Bytes.data() + Size); in parseImmediate()
126 ArrayRef<uint8_t> Bytes, in onSymbolStart() argument
133 if (!nextLEB(FunctionCount, Bytes, Size, false)) in onSymbolStart()
139 if (!nextLEB(BodySize, Bytes, Size, false) || in onSymbolStart()
140 !nextLEB(LocalEntryCount, Bytes, Size, false)) in onSymbolStart()
146 if (!nextLEB(Count, Bytes, Size, false) || in onSymbolStart()
147 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart()
162 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/, in getInstruction() argument
166 int Opc = nextByte(Bytes, Size); in getInstruction()
183 if (!nextLEB(PrefixedOpc, Bytes, Size, false)) in getInstruction()
210 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
217 if (!parseLEBImmediate(MI, Size, Bytes, true)) in getInstruction()
225 if (!nextLEB(Val, Bytes, Size, true)) in getInstruction()
248 if (!parseImmediate<float>(MI, Size, Bytes)) in getInstruction()
253 if (!parseImmediate<double>(MI, Size, Bytes)) in getInstruction()
259 if (!parseImmediate<uint8_t>(MI, Size, Bytes)) in getInstruction()
264 if (!parseImmediate<uint16_t>(MI, Size, Bytes)) in getInstruction()
269 if (!parseImmediate<uint32_t>(MI, Size, Bytes)) in getInstruction()
274 if (!parseImmediate<uint64_t>(MI, Size, Bytes)) in getInstruction()
280 if (!nextLEB(TargetTableLen, Bytes, Size, false)) in getInstruction()
283 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
287 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()