Lines Matching refs:Bytes
377 template <typename T> static inline T eatBytes(ArrayRef<uint8_t>& Bytes) { in DECODE_SDWA()
378 assert(Bytes.size() >= sizeof(T)); in DECODE_SDWA()
379 const auto Res = support::endian::read<T, support::endianness::little>(Bytes.data()); in DECODE_SDWA()
380 Bytes = Bytes.slice(sizeof(T)); in DECODE_SDWA()
392 const auto SavedBytes = Bytes; in tryDecodeInst()
397 Bytes = SavedBytes; in tryDecodeInst()
422 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction()
431 if (Bytes.size() >= 8) { in getInstruction()
432 const uint64_t QW = eatBytes<uint64_t>(Bytes); in getInstruction()
481 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction()
484 if (Bytes.size() < 4) break; in getInstruction()
485 const uint32_t DW = eatBytes<uint32_t>(Bytes); in getInstruction()
509 if (Bytes.size() < 4) break; in getInstruction()
510 const uint64_t QW = ((uint64_t)eatBytes<uint32_t>(Bytes) << 32) | DW; in getInstruction()
595 if (Bytes.size() < 4 * NSAWords) { in getInstruction()
600 decodeOperand_VGPR_32(Bytes[i])); in getInstruction()
602 Bytes = Bytes.slice(4 * NSAWords); in getInstruction()
631 Size = Res ? (MaxInstBytesNum - Bytes.size()) in getInstruction()
1030 if (Bytes.size() < 4) { in decodeLiteralConstant()
1032 Twine(Bytes.size())); in decodeLiteralConstant()
1035 Literal = eatBytes<uint32_t>(Bytes); in decodeLiteralConstant()
1626 DataExtractor::Cursor &Cursor, ArrayRef<uint8_t> Bytes, in decodeKernelDescriptorDirective() argument
1640 assert(Bytes.size() == 64); in decodeKernelDescriptorDirective()
1641 DataExtractor DE(Bytes, /*IsLittleEndian=*/true, /*AddressSize=*/8); in decodeKernelDescriptorDirective()
1770 StringRef KdName, ArrayRef<uint8_t> Bytes, uint64_t KdAddress) const { in decodeKernelDescriptor() argument
1772 if (Bytes.size() != 64 || KdAddress % 64 != 0) in decodeKernelDescriptor()
1780 while (C && C.tell() < Bytes.size()) { in decodeKernelDescriptor()
1782 decodeKernelDescriptorDirective(C, Bytes, KdStream); in decodeKernelDescriptor()
1796 ArrayRef<uint8_t> Bytes, uint64_t Address, in onSymbolStart() argument
1814 return decodeKernelDescriptor(Name.drop_back(3), Bytes, Address); in onSymbolStart()