| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/ |
| H A D | BPFDisassembler.cpp | 69 ArrayRef<uint8_t> Bytes, uint64_t Address, 146 if (Bytes.size() < 8) { in readInstruction64() 153 Hi = (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction64() 154 Lo = (Bytes[4] << 0) | (Bytes[5] << 8) | (Bytes[6] << 16) | (Bytes[7] << 24); in readInstruction64() 156 Hi = (Bytes[0] << 24) | ((Bytes[1] & 0x0F) << 20) | ((Bytes[1] & 0xF0) << 12) | in readInstruction64() 157 (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction64() 158 Lo = (Bytes[4] << 24) | (Bytes[5] << 16) | (Bytes[6] << 8) | (Bytes[7] << 0); in readInstruction64() 166 ArrayRef<uint8_t> Bytes, in getInstruction() argument 193 if (Bytes.size() < 16) { in getInstruction() 199 Hi = (Bytes[12] << 0) | (Bytes[13] << 8) | (Bytes[14] << 16) | (Bytes[15] << 24); in getInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/ |
| H A D | WebAssemblyDisassembler.cpp | 77 if (Size >= Bytes.size()) in nextByte() 79 auto V = Bytes[Size]; in nextByte() 89 Bytes.data() + Bytes.size(), &Error) in nextLEB() 91 Bytes.data() + Bytes.size(), in nextLEB() 102 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate() 110 if (Size + sizeof(T) > Bytes.size()) in parseImmediate() 139 if (!nextLEB(BodySize, Bytes, Size, false) || in onSymbolStart() 146 if (!nextLEB(Count, Bytes, Size, false) || in onSymbolStart() 147 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart() 166 int Opc = nextByte(Bytes, Size); in getInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Base64.h | 23 template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) { in encodeBase64() argument 28 Buffer.resize(((Bytes.size() + 2) / 3) * 4); in encodeBase64() 31 for (size_t n = Bytes.size() / 3 * 3; i < n; i += 3, j += 4) { in encodeBase64() 32 uint32_t x = ((unsigned char)Bytes[i] << 16) | in encodeBase64() 33 ((unsigned char)Bytes[i + 1] << 8) | in encodeBase64() 34 (unsigned char)Bytes[i + 2]; in encodeBase64() 40 if (i + 1 == Bytes.size()) { in encodeBase64() 41 uint32_t x = ((unsigned char)Bytes[i] << 16); in encodeBase64() 46 } else if (i + 2 == Bytes.size()) { in encodeBase64() 48 ((unsigned char)Bytes[i] << 16) | ((unsigned char)Bytes[i + 1] << 8); in encodeBase64()
|
| H A D | DataExtractor.h | 20 uint8_t Bytes[3]; member 22 Bytes[0] = Bytes[1] = Bytes[2] = U; in Uint24() 25 Bytes[0] = U0; Bytes[1] = U1; Bytes[2] = U2; in Uint24() 29 return Bytes[LoIx] + (Bytes[1] << 8) + (Bytes[2-LoIx] << 16); in getAsUint32() 38 return uint24_t(C.Bytes[2], C.Bytes[1], C.Bytes[0]); in getSwappedBytes()
|
| H A D | BinaryStreamReader.h | 71 ArrayRef<uint8_t> Bytes; in readInteger() local 72 if (auto EC = readBytes(Bytes, sizeof(T))) in readInteger() 75 Dest = llvm::support::endian::read<T>(Bytes.data(), Stream.getEndian()); in readInteger() 179 ArrayRef<uint8_t> Bytes; in readArray() local 189 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray() 192 assert(isAddrAligned(Align::Of<T>(), Bytes.data()) && in readArray() 195 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
|
| H A D | Format.h | 217 ArrayRef<uint8_t> Bytes; 232 : Bytes(B), FirstByteOffset(O), IndentLevel(IL), NumPerLine(NPL), 241 format_bytes(ArrayRef<uint8_t> Bytes, 245 return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine, 250 format_bytes_with_ascii(ArrayRef<uint8_t> Bytes, 254 return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARC/Disassembler/ |
| H A D | ARCDisassembler.cpp | 55 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction32() 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() 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() 81 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16() 352 if (Bytes.size() < 2) { in getInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/ |
| H A D | MSP430Disassembler.cpp | 233 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI() 247 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI() 261 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI() 288 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionII() 301 if (Bytes.size() < (Words + 1) * 2) { in getInstructionII() 343 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionCJ() 364 if (Bytes.size() < 2) { in getInstruction() 369 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstruction() 373 return getInstructionII(MI, Size, Bytes, Address, CStream); in getInstruction() 375 return getInstructionCJ(MI, Size, Bytes, Address, CStream); in getInstruction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | FileWriter.cpp | 20 uint8_t Bytes[32]; in writeSLEB() local 21 auto Length = encodeSLEB128(S, Bytes); in writeSLEB() 22 assert(Length < sizeof(Bytes)); in writeSLEB() 23 OS.write(reinterpret_cast<const char *>(Bytes), Length); in writeSLEB() 27 uint8_t Bytes[32]; in writeULEB() local 28 auto Length = encodeULEB128(U, Bytes); in writeULEB() 29 assert(Length < sizeof(Bytes)); in writeULEB() 30 OS.write(reinterpret_cast<const char *>(Bytes), Length); in writeULEB()
|
| /freebsd-14.2/sys/contrib/dev/acpica/components/utilities/ |
| H A D | utmisc.c | 250 UINT8 Bytes[4]; in AcpiUtDwordByteSwap() member 255 UINT8 Bytes[4]; in AcpiUtDwordByteSwap() member 264 Out.Bytes[0] = In.Bytes[3]; in AcpiUtDwordByteSwap() 265 Out.Bytes[1] = In.Bytes[2]; in AcpiUtDwordByteSwap() 266 Out.Bytes[2] = In.Bytes[1]; in AcpiUtDwordByteSwap() 267 Out.Bytes[3] = In.Bytes[0]; in AcpiUtDwordByteSwap()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/XRay/ |
| H A D | FDRTraceWriter.cpp | 49 auto Bytes = IndexedWriter<0>::write(OS, T); in writeMetadata() local 50 assert(Bytes <= 15 && "Must only ever write at most 16 byte metadata!"); in writeMetadata() 52 for (; Bytes < 15; ++Bytes) in writeMetadata() 99 ArrayRef<char> Bytes(D.data(), D.size()); in visit() local 100 OS.write(Bytes); in visit() 108 ArrayRef<char> Bytes(D.data(), D.size()); in visit() local 109 OS.write(Bytes); in visit() 117 ArrayRef<char> Bytes(D.data(), D.size()); in visit() local 118 OS.write(Bytes); in visit()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugChecksumsSubsection.cpp | 69 ArrayRef<uint8_t> Bytes) { in addChecksum() argument 71 if (!Bytes.empty()) { in addChecksum() 72 uint8_t *Copy = Storage.Allocate<uint8_t>(Bytes.size()); in addChecksum() 73 ::memcpy(Copy, Bytes.data(), Bytes.size()); in addChecksum() 74 Entry.Checksum = ArrayRef(Copy, Bytes.size()); in addChecksum() 86 uint32_t Len = alignTo(sizeof(FileChecksumEntryHeader) + Bytes.size(), 4); in addChecksum()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | DIEGenerator.h | 59 ArrayRef<uint8_t> Bytes) { in addLocationAttribute() argument 61 for (auto Byte : Bytes) in addLocationAttribute() 65 Loc->setSize(Bytes.size()); in addLocationAttribute() 73 ArrayRef<uint8_t> Bytes) { in addBlockAttribute() argument 78 (AttrForm == dwarf::DW_FORM_block1 && Bytes.size() <= UINT8_MAX) || in addBlockAttribute() 79 (AttrForm == dwarf::DW_FORM_block2 && Bytes.size() <= UINT16_MAX) || in addBlockAttribute() 80 (AttrForm == dwarf::DW_FORM_block4 && Bytes.size() <= UINT32_MAX)); in addBlockAttribute() 83 for (auto Byte : Bytes) in addBlockAttribute() 87 Block->setSize(Bytes.size()); in addBlockAttribute()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | circular_raw_ostream.cpp | 25 unsigned Bytes = in write_impl() local 27 memcpy(Cur, Ptr, Bytes); in write_impl() 28 Size -= Bytes; in write_impl() 29 Cur += Bytes; in write_impl()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 99 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemset() local 100 if (Bytes == 0) in EmitTargetCodeForMemset() 109 ? Bytes <= 16 && llvm::popcount(Bytes) <= 2 in EmitTargetCodeForMemset() 110 : Bytes <= 4) { in EmitTargetCodeForMemset() 111 unsigned Size1 = Bytes == 16 ? 8 : llvm::bit_floor(Bytes); in EmitTargetCodeForMemset() 112 unsigned Size2 = Bytes - Size1; in EmitTargetCodeForMemset() 127 if (Bytes <= 2) { in EmitTargetCodeForMemset() 130 if (Bytes == 1) in EmitTargetCodeForMemset() 146 Bytes, DAG.getAnyExtOrTrunc(Byte, DL, MVT::i32)); in EmitTargetCodeForMemset() 179 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemcmp() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Windows/ |
| H A D | DynamicLibrary.inc | 68 static bool GetProcessModules(HANDLE H, DWORD &Bytes, HMODULE *Data = nullptr) { 73 !EnumProcessModulesEx(H, Data, Bytes, &Bytes, LIST_MODULES_64BIT) 75 !EnumProcessModules(H, Data, Bytes, &Bytes) 110 DWORD Bytes = 0; 112 if (!GetProcessModules(Self, Bytes)) 121 assert(Bytes && ((Bytes % sizeof(HMODULE)) == 0) && 123 Handles.resize(Bytes / sizeof(HMODULE)); 124 if (!GetProcessModules(Self, Bytes, Handles.data())) 126 } while (Bytes != (Handles.size() * sizeof(HMODULE)));
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 170 ssize_t BytesRead = FS->read(Bytes, BytesFromDisk); in BackpatchByte() 174 Bytes[BytesFromDisk + i] = Out[i]; in BackpatchByte() 182 Bytes, NewByte, StartBit); in BackpatchByte() 186 FS->write(Bytes, BytesFromDisk); in BackpatchByte() 188 Out[i] = Bytes[BytesFromDisk + i]; in BackpatchByte() 474 void emitBlob(ArrayRef<UIntTy> Bytes, bool ShouldEmitSize = true) { 477 EmitVBR(static_cast<uint32_t>(Bytes.size()), 6); 483 assert(llvm::all_of(Bytes, [](UIntTy B) { return isUInt<8>(B); })); 484 Out.append(Bytes.begin(), Bytes.end()); 490 void emitBlob(StringRef Bytes, bool ShouldEmitSize = true) { [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | XCOFFDump.cpp | 144 printRawData(Bytes.slice(Index, 4), Address + Index, OS, STI); \ 149 void objdump::dumpTracebackTable(ArrayRef<uint8_t> Bytes, uint64_t Address, in dumpTracebackTable() argument 156 printRawData(Bytes.slice(Index, 4), Address, OS, STI); in dumpTracebackTable() 167 XCOFFTracebackTable::create(Bytes.data() + Index, SizeCopy, Is64Bit); in dumpTracebackTable() 179 if (support::endian::read32be(Bytes.slice(I, 4).data()) != 0) in dumpTracebackTable() 187 printRawData(Bytes.slice(Index, 4), Address + Index, FOS, STI); in dumpTracebackTable() 201 printRawData(Bytes.slice(Index, N), Address + Index, OS, STI); in dumpTracebackTable() 308 printRawData(Bytes.slice(Index, PrintLen), Address + Index, OS, STI); in dumpTracebackTable() 387 return std::all_of(Bytes.begin() + WordPos, in dumpTracebackTable() 388 Bytes.begin() + WordPos + LineLength, in dumpTracebackTable() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/Disassembler/ |
| H A D | LanaiDisassembler.cpp | 75 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t &Size, in readInstruction32() argument 78 if (Bytes.size() < 4) { in readInstruction32() 85 (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction32() 133 ArrayRef<uint8_t> Bytes, uint64_t Address, in getInstruction() argument 137 DecodeStatus Result = readInstruction32(Bytes, Size, Insn); in getInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-mc/ |
| H A D | Disassembler.cpp | 34 static bool PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, in PrintInsts() argument 37 ArrayRef<uint8_t> Data(Bytes.first.data(), Bytes.first.size()); in PrintInsts() 43 for (Index = 0; Index < Bytes.first.size(); Index += Size) { in PrintInsts() 50 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts() 63 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/Disassembler/ |
| H A D | SparcDisassembler.cpp | 38 ArrayRef<uint8_t> Bytes, uint64_t Address, 270 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument 274 if (Bytes.size() < 4) { in readInstruction32() 280 ? (Bytes[0] << 0) | (Bytes[1] << 8) | (Bytes[2] << 16) | in readInstruction32() 281 (Bytes[3] << 24) in readInstruction32() 282 : (Bytes[3] << 0) | (Bytes[2] << 8) | (Bytes[1] << 16) | in readInstruction32() 283 (Bytes[0] << 24); in readInstruction32() 289 ArrayRef<uint8_t> Bytes, in getInstruction() argument 295 readInstruction32(Bytes, Address, Size, Insn, isLittleEndian); in getInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/Disassembler/ |
| H A D | AVRDisassembler.cpp | 45 ArrayRef<uint8_t> Bytes, uint64_t Address, 436 static DecodeStatus readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction16() argument 438 if (Bytes.size() < 2) { in readInstruction16() 444 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16() 449 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument 452 if (Bytes.size() < 4) { in readInstruction32() 459 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction32() 477 ArrayRef<uint8_t> Bytes, in getInstruction() argument 486 Result = readInstruction16(Bytes, Address, Size, Insn); in getInstruction() 514 Result = readInstruction32(Bytes, Address, Size, Insn); in getInstruction()
|
| /freebsd-14.2/crypto/openssl/test/recipes/30-test_evp_data/ |
| H A D | evpciph_aes_cts.txt | 115 # 17 Bytes 123 # 31 Bytes 131 # 32 Bytes 207 # 17 Bytes 215 # 31 Bytes 223 # 32 Bytes 305 # 17 Bytes 313 # 31 Bytes 321 # 32 Bytes 329 # 17 Bytes [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Object/ |
| H A D | BuildID.cpp | 48 std::string Bytes; in parseBuildID() local 49 if (!tryGetFromHex(Str, Bytes)) in parseBuildID() 51 ArrayRef<uint8_t> BuildID(reinterpret_cast<const uint8_t *>(Bytes.data()), in parseBuildID() 52 Bytes.size()); in parseBuildID()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 460 assert(Bytes.size() >= sizeof(T)); in DECODE_SDWA() 463 Bytes = Bytes.slice(sizeof(T)); in DECODE_SDWA() 468 assert(Bytes.size() >= 12); in eat12Bytes() 471 Bytes = Bytes.slice(8); in eat12Bytes() 474 Bytes = Bytes.slice(4); in eat12Bytes() 559 if (Bytes.size() >= 8) { in getInstruction() 639 if (Bytes.size() < 4) break; in getInstruction() 673 if (Bytes.size() < 4) break; in getInstruction() 794 Bytes = Bytes.slice(4 * NSAWords); in getInstruction() 1355 if (Bytes.size() < 4) { in decodeLiteralConstant() [all …]
|