Lines Matching refs:Bytes
45 ArrayRef<uint8_t> Bytes, uint64_t Address,
71 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument
72 if (Size >= Bytes.size()) in nextByte()
74 auto V = Bytes[Size]; in nextByte()
79 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument
83 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
84 Bytes.data() + Bytes.size(), &Error) in nextLEB()
85 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB()
86 Bytes.data() + Bytes.size(), in nextLEB()
95 ArrayRef<uint8_t> Bytes, bool Signed) { in parseLEBImmediate() argument
97 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate()
104 bool parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) { in parseImmediate() argument
105 if (Size + sizeof(T) > Bytes.size()) in parseImmediate()
108 memcpy(&Val, Bytes.data() + Size, sizeof(T)); in parseImmediate()
120 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/, in getInstruction() argument
124 int Opc = nextByte(Bytes, Size); in getInstruction()
141 if (!nextLEB(PrefixedOpc, Bytes, Size)) in getInstruction()
165 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
172 if (!parseLEBImmediate(MI, Size, Bytes, true)) in getInstruction()
178 if (!parseImmediate<uint8_t>(MI, Size, Bytes)) in getInstruction()
184 if (!parseImmediate<float>(MI, Size, Bytes)) in getInstruction()
189 if (!parseImmediate<double>(MI, Size, Bytes)) in getInstruction()
195 if (!parseImmediate<uint8_t>(MI, Size, Bytes)) in getInstruction()
200 if (!parseImmediate<uint16_t>(MI, Size, Bytes)) in getInstruction()
205 if (!parseImmediate<uint32_t>(MI, Size, Bytes)) in getInstruction()
210 if (!parseImmediate<uint64_t>(MI, Size, Bytes)) in getInstruction()
216 if (!nextLEB(TargetTableLen, Bytes, Size, false)) in getInstruction()
219 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
223 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()