Lines Matching refs:Bytes
46 ArrayRef<uint8_t> Bytes, uint64_t Address,
49 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 Bytes.data() + Size); in parseImmediate()
125 SymbolInfoTy &Symbol, uint64_t &Size, ArrayRef<uint8_t> Bytes, in onSymbolStart() argument
131 if (!nextLEB(FunctionCount, Bytes, Size, false)) in onSymbolStart()
137 if (!nextLEB(BodySize, Bytes, Size, false) || in onSymbolStart()
138 !nextLEB(LocalEntryCount, Bytes, Size, false)) in onSymbolStart()
144 if (!nextLEB(Count, Bytes, Size, false) || in onSymbolStart()
145 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart()
160 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/, in getInstruction() argument
164 int Opc = nextByte(Bytes, Size); in getInstruction()
181 if (!nextLEB(PrefixedOpc, Bytes, Size, false)) in getInstruction()
208 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
215 if (!parseLEBImmediate(MI, Size, Bytes, true)) in getInstruction()
223 if (!nextLEB(Val, Bytes, Size, true)) in getInstruction()
248 if (!nextLEB(Val, Bytes, Size, true)) in getInstruction()
268 if (!parseImmediate<float>(MI, Size, Bytes)) in getInstruction()
273 if (!parseImmediate<double>(MI, Size, Bytes)) in getInstruction()
279 if (!parseImmediate<uint8_t>(MI, Size, Bytes)) in getInstruction()
284 if (!parseImmediate<uint16_t>(MI, Size, Bytes)) in getInstruction()
289 if (!parseImmediate<uint32_t>(MI, Size, Bytes)) in getInstruction()
294 if (!parseImmediate<uint64_t>(MI, Size, Bytes)) in getInstruction()
300 if (!nextLEB(TargetTableLen, Bytes, Size, false)) in getInstruction()
303 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
307 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()