Lines Matching refs:Bytes
44 ArrayRef<uint8_t> Bytes, uint64_t Address,
50 static bool readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument
55 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction32()
59 static bool readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction64() argument
62 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) | in readInstruction64()
63 ((uint64_t)Bytes[2] << 0) | ((uint64_t)Bytes[3] << 8) | in readInstruction64()
64 ((uint64_t)Bytes[4] << 48) | ((uint64_t)Bytes[5] << 56) | in readInstruction64()
65 ((uint64_t)Bytes[6] << 32) | ((uint64_t)Bytes[7] << 40); in readInstruction64()
69 static bool readInstruction48(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction48() argument
72 Insn = ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) | in readInstruction48()
73 ((uint64_t)Bytes[2] << 32) | ((uint64_t)Bytes[3] << 40) | in readInstruction48()
74 ((uint64_t)Bytes[4] << 16) | ((uint64_t)Bytes[5] << 24); in readInstruction48()
78 static bool readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction16() argument
81 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16()
348 ArrayRef<uint8_t> Bytes, in getInstruction() argument
352 if (Bytes.size() < 2) { in getInstruction()
356 uint8_t DecodeByte = (Bytes[1] & 0xF7) >> 3; in getInstruction()
361 if (Bytes.size() < 4) { in getInstruction()
366 if (Bytes.size() >= 8) { in getInstruction()
369 if (!readInstruction64(Bytes, Address, Size, Insn64)) in getInstruction()
380 if (!readInstruction32(Bytes, Address, Size, Insn32)) { in getInstruction()
386 if (Bytes.size() >= 6) { in getInstruction()
389 if (!readInstruction48(Bytes, Address, Size, Insn48)) in getInstruction()
403 if (!readInstruction16(Bytes, Address, Size, Insn16)) in getInstruction()