Lines Matching refs:Bytes
459 template <typename T> static inline T eatBytes(ArrayRef<uint8_t>& Bytes) { in DECODE_SDWA()
460 assert(Bytes.size() >= sizeof(T)); in DECODE_SDWA()
462 support::endian::read<T, llvm::endianness::little>(Bytes.data()); in DECODE_SDWA()
463 Bytes = Bytes.slice(sizeof(T)); in DECODE_SDWA()
467 static inline DecoderUInt128 eat12Bytes(ArrayRef<uint8_t> &Bytes) { in eat12Bytes() argument
468 assert(Bytes.size() >= 12); in eat12Bytes()
470 support::endian::read<uint64_t, llvm::endianness::little>(Bytes.data()); in eat12Bytes()
471 Bytes = Bytes.slice(8); in eat12Bytes()
473 support::endian::read<uint32_t, llvm::endianness::little>(Bytes.data()); in eat12Bytes()
474 Bytes = Bytes.slice(4); in eat12Bytes()
498 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction()
507 if (isGFX11Plus() && Bytes.size() >= 12 ) { in getInstruction()
508 DecoderUInt128 DecW = eat12Bytes(Bytes); in getInstruction()
557 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction()
559 if (Bytes.size() >= 8) { in getInstruction()
560 const uint64_t QW = eatBytes<uint64_t>(Bytes); in getInstruction()
636 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction()
639 if (Bytes.size() < 4) break; in getInstruction()
640 const uint32_t DW = eatBytes<uint32_t>(Bytes); in getInstruction()
673 if (Bytes.size() < 4) break; in getInstruction()
674 const uint64_t QW = ((uint64_t)eatBytes<uint32_t>(Bytes) << 32) | DW; in getInstruction()
784 if (Bytes.size() < 4 * NSAWords) { in getInstruction()
792 createRegOperand(VAddrRCID, Bytes[i])); in getInstruction()
794 Bytes = Bytes.slice(4 * NSAWords); in getInstruction()
839 Size = Res ? (MaxInstBytesNum - Bytes.size()) in getInstruction()
1355 if (Bytes.size() < 4) { in decodeLiteralConstant()
1357 Twine(Bytes.size())); in decodeLiteralConstant()
1360 Literal = Literal64 = eatBytes<uint32_t>(Bytes); in decodeLiteralConstant()
2113 DataExtractor::Cursor &Cursor, ArrayRef<uint8_t> Bytes, in decodeKernelDescriptorDirective() argument
2127 assert(Bytes.size() == 64); in decodeKernelDescriptorDirective()
2128 DataExtractor DE(Bytes, /*IsLittleEndian=*/true, /*AddressSize=*/8); in decodeKernelDescriptorDirective()
2262 StringRef KdName, ArrayRef<uint8_t> Bytes, uint64_t KdAddress) const { in decodeKernelDescriptor() argument
2264 if (Bytes.size() != 64 || KdAddress % 64 != 0) in decodeKernelDescriptor()
2274 support::endian::read16(&Bytes[amdhsa::KERNEL_CODE_PROPERTIES_OFFSET], in decodeKernelDescriptor()
2286 while (C && C.tell() < Bytes.size()) { in decodeKernelDescriptor()
2288 decodeKernelDescriptorDirective(C, Bytes, KdStream); in decodeKernelDescriptor()
2302 ArrayRef<uint8_t> Bytes, uint64_t Address, in onSymbolStart() argument
2320 return decodeKernelDescriptor(Name.drop_back(3), Bytes, Address); in onSymbolStart()