| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/ |
| H A D | WebAssemblyDisassembler.cpp | 49 ArrayRef<uint8_t> Bytes, uint64_t Address, 53 ArrayRef<uint8_t> Bytes, 79 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument 80 if (Size >= Bytes.size()) in nextByte() 82 auto V = Bytes[Size]; in nextByte() 87 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument 91 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB() 92 Bytes.data() + Bytes.size(), &Error) in nextLEB() 93 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB() 94 Bytes.data() + Bytes.size(), in nextLEB() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/ |
| H A D | BPFDisassembler.cpp | 70 ArrayRef<uint8_t> Bytes, uint64_t Address, 142 static DecodeStatus readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction64() argument 147 if (Bytes.size() < 8) { in readInstruction64() 154 Hi = (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction64() 155 Lo = (Bytes[4] << 0) | (Bytes[5] << 8) | (Bytes[6] << 16) | (Bytes[7] << 24); in readInstruction64() 157 Hi = (Bytes[0] << 24) | ((Bytes[1] & 0x0F) << 20) | ((Bytes[1] & 0xF0) << 12) | in readInstruction64() 158 (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction64() 159 Lo = (Bytes[4] << 24) | (Bytes[5] << 16) | (Bytes[6] << 8) | (Bytes[7] << 0); in readInstruction64() 167 ArrayRef<uint8_t> Bytes, in getInstruction() argument 174 Result = readInstruction64(Bytes, Address, Size, Insn, IsLittleEndian); in getInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARC/Disassembler/ |
| H A D | ARCDisassembler.cpp | 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() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Base64.h | 24 template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) { in encodeBase64() argument 29 Buffer.resize(((Bytes.size() + 2) / 3) * 4); in encodeBase64() 32 for (size_t n = Bytes.size() / 3 * 3; i < n; i += 3, j += 4) { in encodeBase64() 33 uint32_t x = ((unsigned char)Bytes[i] << 16) | in encodeBase64() 34 ((unsigned char)Bytes[i + 1] << 8) | in encodeBase64() 35 (unsigned char)Bytes[i + 2]; in encodeBase64() 41 if (i + 1 == Bytes.size()) { in encodeBase64() 42 uint32_t x = ((unsigned char)Bytes[i] << 16); in encodeBase64() 47 } else if (i + 2 == Bytes.size()) { in encodeBase64() 49 ((unsigned char)Bytes[i] << 16) | ((unsigned char)Bytes[i + 1] << 8); in encodeBase64()
|
| H A D | DataExtractor.h | 21 uint8_t Bytes[3]; member 23 Bytes[0] = Bytes[1] = Bytes[2] = U; in Uint24() 26 Bytes[0] = U0; Bytes[1] = U1; Bytes[2] = U2; in Uint24() 30 return Bytes[LoIx] + (Bytes[1] << 8) + (Bytes[2-LoIx] << 16); in getAsUint32() 39 return uint24_t(C.Bytes[2], C.Bytes[1], C.Bytes[0]); in getSwappedBytes()
|
| H A D | BinaryStreamReader.h | 73 ArrayRef<uint8_t> Bytes; in readInteger() local 74 if (auto EC = readBytes(Bytes, sizeof(T))) in readInteger() 77 Dest = llvm::support::endian::read<T>(Bytes.data(), Stream.getEndian()); in readInteger() 181 ArrayRef<uint8_t> Bytes; in readArray() local 191 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray() 194 assert(isAddrAligned(Align::Of<T>(), Bytes.data()) && in readArray() 197 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
|
| H A D | Format.h | 218 ArrayRef<uint8_t> Bytes; 233 : Bytes(B), FirstByteOffset(O), IndentLevel(IL), NumPerLine(NPL), 242 format_bytes(ArrayRef<uint8_t> Bytes, 246 return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine, 251 format_bytes_with_ascii(ArrayRef<uint8_t> Bytes, 255 return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | TrieHashIndexGenerator.h | 34 ArrayRef<uint8_t> Bytes; member 40 size_t TotalNumBits = Bytes.size() * 8; in getNumBits() 51 return getIndex(Bytes, *StartBit, NumRootBits); in next() 53 if (*StartBit < Bytes.size() * 8) { in next() 57 return getIndex(Bytes, *StartBit, NumSubtrieBits); in next() 69 assert(Bit < Bytes.size() * 8); in hint() 87 static size_t getIndex(ArrayRef<uint8_t> Bytes, size_t StartBit, in getIndex() 89 assert(StartBit < Bytes.size() * 8); in getIndex() 91 Bytes = Bytes.drop_front(StartBit / 8u); in getIndex() 96 for (uint8_t Byte : Bytes) { in getIndex()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/ |
| H A D | MSP430Disassembler.cpp | 34 ArrayRef<uint8_t> Bytes, uint64_t Address, 38 ArrayRef<uint8_t> Bytes, uint64_t Address, 42 ArrayRef<uint8_t> Bytes, uint64_t Address, 50 ArrayRef<uint8_t> Bytes, uint64_t Address, 231 ArrayRef<uint8_t> Bytes, in getInstructionI() argument 234 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI() 248 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI() 252 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + 2) << 16; in getInstructionI() 262 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI() 266 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + Words * 2) in getInstructionI() [all …]
|
| /freebsd/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/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/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); in visit() local 100 OS.write(Bytes); in visit() 108 ArrayRef<char> Bytes(D); in visit() local 109 OS.write(Bytes); in visit() 117 ArrayRef<char> Bytes(D); in visit() local 118 OS.write(Bytes); in visit()
|
| /freebsd/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/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | BitcastBuffer.h | 21 struct Bytes; 35 Bytes toBytes() const; 55 struct Bytes { struct 57 explicit Bytes(size_t Quantity) : N(Quantity) {} in Bytes() function 62 inline Bytes Bits::toBytes() const { in toBytes() argument 64 return Bytes(N / 8); in toBytes() 94 Bytes byteSize() const { return FinalBitSize.toBytes(); } in byteSize()
|
| /freebsd/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/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 109 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemset() local 110 if (Bytes == 0) in EmitTargetCodeForMemset() 119 ? Bytes <= 16 && llvm::popcount(Bytes) <= 2 in EmitTargetCodeForMemset() 120 : Bytes <= 4) { in EmitTargetCodeForMemset() 121 unsigned Size1 = Bytes == 16 ? 8 : llvm::bit_floor(Bytes); in EmitTargetCodeForMemset() 122 unsigned Size2 = Bytes - Size1; in EmitTargetCodeForMemset() 137 if (Bytes <= 2) { in EmitTargetCodeForMemset() 140 if (Bytes == 1) in EmitTargetCodeForMemset() 149 assert(Bytes >= 2 && "Should have dealt with 0- and 1-byte cases already"); in EmitTargetCodeForMemset() 153 return emitMemMemImm(DAG, DL, SystemZISD::XC, Chain, Dst, Dst, Bytes); in EmitTargetCodeForMemset() [all …]
|
| /freebsd/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/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 460 const auto SavedBytes = Bytes; in tryDecodeInst() 476 Bytes = SavedBytes; in tryDecodeInst() 492 template <typename T> static inline T eatBytes(ArrayRef<uint8_t>& Bytes) { in eatBytes() argument 493 assert(Bytes.size() >= sizeof(T)); in eatBytes() 495 support::endian::read<T, llvm::endianness::little>(Bytes.data()); in eatBytes() 496 Bytes = Bytes.slice(sizeof(T)); in eatBytes() 500 static inline DecoderUInt128 eat12Bytes(ArrayRef<uint8_t> &Bytes) { in eat12Bytes() argument 501 assert(Bytes.size() >= 12); in eat12Bytes() 503 support::endian::read<uint64_t, llvm::endianness::little>(Bytes.data()); in eat12Bytes() 504 Bytes = Bytes.slice(8); in eat12Bytes() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/Disassembler/ |
| H A D | LanaiDisassembler.cpp | 80 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t &Size, in readInstruction32() argument 83 if (Bytes.size() < 4) { in readInstruction32() 90 (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction32() 138 ArrayRef<uint8_t> Bytes, uint64_t Address, in getInstruction() argument 142 DecodeStatus Result = readInstruction32(Bytes, Size, Insn); in getInstruction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 229 char Bytes[3]; // Use one more byte to silence a warning from Visual C++. in BackpatchByte() local 243 ssize_t BytesRead = fdStream()->read(Bytes, BytesFromDisk); in BackpatchByte() 247 Bytes[BytesFromDisk + i] = Buffer[i]; in BackpatchByte() 249 unaligned>(Bytes, StartBit)) && in BackpatchByte() 255 Bytes, NewByte, StartBit); in BackpatchByte() 259 fdStream()->write(Bytes, BytesFromDisk); in BackpatchByte() 261 Buffer[i] = Bytes[BytesFromDisk + i]; in BackpatchByte() 547 void emitBlob(ArrayRef<UIntTy> Bytes, bool ShouldEmitSize = true) { 550 EmitVBR(static_cast<uint32_t>(Bytes.size()), 6); 556 assert(llvm::all_of(Bytes, [](UIntTy B) { return isUInt<8>(B); })); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/Disassembler/ |
| H A D | AVRDisassembler.cpp | 44 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/contrib/llvm-project/llvm/lib/Target/RISCV/Disassembler/ |
| H A D | RISCVDisassembler.cpp | 43 ArrayRef<uint8_t> Bytes, uint64_t Address, 50 ArrayRef<uint8_t> Bytes, uint64_t Address, 54 ArrayRef<uint8_t> Bytes, uint64_t Address, 57 ArrayRef<uint8_t> Bytes, uint64_t Address, 810 ArrayRef<uint8_t> Bytes, in getInstruction32() argument 813 if (Bytes.size() < 4) { in getInstruction32() 821 uint64_t Insn = support::endian::read32le(Bytes.data()); in getInstruction32() 858 ArrayRef<uint8_t> Bytes, in getInstruction16() argument 861 if (Bytes.size() < 2) { in getInstruction16() 869 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstruction16() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/Disassembler/ |
| H A D | SparcDisassembler.cpp | 39 ArrayRef<uint8_t> Bytes, uint64_t Address, 276 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument 280 if (Bytes.size() < 4) { in readInstruction32() 287 ? (Bytes[0] << 0) | (Bytes[1] << 8) | (Bytes[2] << 16) | in readInstruction32() 288 (Bytes[3] << 24) in readInstruction32() 289 : (Bytes[3] << 0) | (Bytes[2] << 8) | (Bytes[1] << 16) | in readInstruction32() 290 (Bytes[0] << 24); in readInstruction32() 296 ArrayRef<uint8_t> Bytes, in getInstruction() argument 302 readInstruction32(Bytes, Address, Size, Insn, isLittleEndian); in getInstruction()
|
| /freebsd/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/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()
|