| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/ |
| H A D | BPFDisassembler.cpp | 69 ArrayRef<uint8_t> Bytes, uint64_t Address, 145 if (Bytes.size() < 8) { in readInstruction64() 152 Hi = (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction64() 153 Lo = (Bytes[4] << 0) | (Bytes[5] << 8) | (Bytes[6] << 16) | (Bytes[7] << 24); in readInstruction64() 155 Hi = (Bytes[0] << 24) | ((Bytes[1] & 0x0F) << 20) | ((Bytes[1] & 0xF0) << 12) | in readInstruction64() 156 (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction64() 157 Lo = (Bytes[4] << 24) | (Bytes[5] << 16) | (Bytes[6] << 8) | (Bytes[7] << 0); in readInstruction64() 165 ArrayRef<uint8_t> Bytes, in getInstruction() argument 192 if (Bytes.size() < 16) { in getInstruction() 198 Hi = (Bytes[12] << 0) | (Bytes[13] << 8) | (Bytes[14] << 16) | (Bytes[15] << 24); in getInstruction() [all …]
|
| /freebsd-13.1/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() 113 Bytes.data() + Size); in parseImmediate() 145 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart() 164 int Opc = nextByte(Bytes, Size); in getInstruction() 223 if (!nextLEB(Val, Bytes, Size, true)) in getInstruction() [all …]
|
| /freebsd-13.1/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() 319 if (Bytes.size() < 2) { in getInstruction() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Base64.h | 20 template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) { in encodeBase64() argument 25 Buffer.resize(((Bytes.size() + 2) / 3) * 4); in encodeBase64() 28 for (size_t n = Bytes.size() / 3 * 3; i < n; i += 3, j += 4) { in encodeBase64() 29 uint32_t x = ((unsigned char)Bytes[i] << 16) | in encodeBase64() 30 ((unsigned char)Bytes[i + 1] << 8) | in encodeBase64() 31 (unsigned char)Bytes[i + 2]; in encodeBase64() 37 if (i + 1 == Bytes.size()) { in encodeBase64() 38 uint32_t x = ((unsigned char)Bytes[i] << 16); in encodeBase64() 43 } else if (i + 2 == Bytes.size()) { in encodeBase64() 45 ((unsigned char)Bytes[i] << 16) | ((unsigned char)Bytes[i + 1] << 8); in encodeBase64()
|
| H A D | MD5.h | 56 std::array<uint8_t, 16> Bytes; member 58 operator std::array<uint8_t, 16>() const { return Bytes; } 60 const uint8_t &operator[](size_t I) const { return Bytes[I]; } 61 uint8_t &operator[](size_t I) { return Bytes[I]; } 69 return endian::read<uint64_t, little, unaligned>(Bytes.data()); in low() 74 return endian::read<uint64_t, little, unaligned>(Bytes.data() + 8); in high() 105 return LHS.Bytes == RHS.Bytes;
|
| 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 | 79 ArrayRef<uint8_t> Bytes; in readInteger() local 80 if (auto EC = readBytes(Bytes, sizeof(T))) in readInteger() 84 Bytes.data(), Stream.getEndian()); in readInteger() 188 ArrayRef<uint8_t> Bytes; in readArray() local 198 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray() 201 assert(isAddrAligned(Align::Of<T>(), Bytes.data()) && in readArray() 204 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
|
| H A D | Format.h | 216 ArrayRef<uint8_t> Bytes; 230 : Bytes(B), FirstByteOffset(O), IndentLevel(IL), NumPerLine(NPL), 239 format_bytes(ArrayRef<uint8_t> Bytes, Optional<uint64_t> FirstByteOffset = None, 242 return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine, 247 format_bytes_with_ascii(ArrayRef<uint8_t> Bytes, 251 return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine,
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | FileWriter.cpp | 21 uint8_t Bytes[32]; in writeSLEB() local 22 auto Length = encodeSLEB128(S, Bytes); in writeSLEB() 23 assert(Length < sizeof(Bytes)); in writeSLEB() 24 OS.write(reinterpret_cast<const char *>(Bytes), Length); in writeSLEB() 28 uint8_t Bytes[32]; in writeULEB() local 29 auto Length = encodeULEB128(U, Bytes); in writeULEB() 30 assert(Length < sizeof(Bytes)); in writeULEB() 31 OS.write(reinterpret_cast<const char *>(Bytes), Length); in writeULEB()
|
| /freebsd-13.1/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-13.1/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-13.1/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 = makeArrayRef(Copy, Bytes.size()); in addChecksum() 86 uint32_t Len = alignTo(sizeof(FileChecksumEntryHeader) + Bytes.size(), 4); in addChecksum()
|
| H A D | CodeViewRecordIO.cpp | 100 Error CodeViewRecordIO::mapByteVectorTail(ArrayRef<uint8_t> &Bytes, in mapByteVectorTail() argument 104 Streamer->emitBinaryData(toStringRef(Bytes)); in mapByteVectorTail() 105 incrStreamedLen(Bytes.size()); in mapByteVectorTail() 107 if (auto EC = Writer->writeBytes(Bytes)) in mapByteVectorTail() 110 if (auto EC = Reader->readBytes(Bytes, Reader->bytesRemaining())) in mapByteVectorTail() 116 Error CodeViewRecordIO::mapByteVectorTail(std::vector<uint8_t> &Bytes, in mapByteVectorTail() argument 118 ArrayRef<uint8_t> BytesRef(Bytes); in mapByteVectorTail() 122 Bytes.assign(BytesRef.begin(), BytesRef.end()); in mapByteVectorTail()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/Disassembler/ |
| H A D | AVRDisassembler.cpp | 42 ArrayRef<uint8_t> Bytes, uint64_t Address, 234 static DecodeStatus readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction16() argument 236 if (Bytes.size() < 2) { in readInstruction16() 242 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16() 247 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument 250 if (Bytes.size() < 4) { in readInstruction32() 256 Insn = (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction32() 271 ArrayRef<uint8_t> Bytes, in getInstruction() argument 280 Result = readInstruction16(Bytes, Address, Size, Insn); in getInstruction() 294 Result = readInstruction32(Bytes, Address, Size, Insn); in getInstruction()
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZSelectionDAGInfo.cpp | 86 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemset() local 87 if (Bytes == 0) in EmitTargetCodeForMemset() 96 Bytes <= 16 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset() 97 Bytes <= 4) { in EmitTargetCodeForMemset() 98 unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet(Bytes); in EmitTargetCodeForMemset() 99 unsigned Size2 = Bytes - Size1; in EmitTargetCodeForMemset() 114 if (Bytes <= 2) { in EmitTargetCodeForMemset() 117 if (Bytes == 1) in EmitTargetCodeForMemset() 131 Chain, Dst, Dst, Bytes); in EmitTargetCodeForMemset() 139 Chain, DstPlus1, Dst, Bytes - 1); in EmitTargetCodeForMemset() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Windows/ |
| H A D | DynamicLibrary.inc | 71 static bool GetProcessModules(HANDLE H, DWORD &Bytes, HMODULE *Data = nullptr) { 76 !EnumProcessModulesEx(H, Data, Bytes, &Bytes, LIST_MODULES_64BIT) 78 !EnumProcessModules(H, Data, Bytes, &Bytes) 113 DWORD Bytes = 0; 115 if (!GetProcessModules(Self, Bytes)) 124 assert(Bytes && ((Bytes % sizeof(HMODULE)) == 0) && 126 Handles.resize(Bytes / sizeof(HMODULE)); 127 if (!GetProcessModules(Self, Bytes, Handles.data())) 129 } while (Bytes != (Handles.size() * sizeof(HMODULE)));
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/tools/llvm-mc/ |
| H A D | Disassembler.cpp | 35 const ByteArrayTy &Bytes, in PrintInsts() argument 39 ArrayRef<uint8_t> Data(Bytes.first.data(), Bytes.first.size()); in PrintInsts() 45 for (Index = 0; Index < Bytes.first.size(); Index += Size) { in PrintInsts() 52 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts() 65 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 174 ssize_t BytesRead = FS->read(Bytes, BytesFromDisk); in BackpatchWord() 178 Bytes[BytesFromDisk + i] = Out[i]; in BackpatchWord() 180 Bytes, StartBit)) && in BackpatchWord() 185 endian::writeAtBitAlignment<uint32_t, little, unaligned>(Bytes, NewWord, in BackpatchWord() 190 FS->write(Bytes, BytesFromDisk); in BackpatchWord() 192 Out[i] = Bytes[BytesFromDisk + i]; in BackpatchWord() 466 void emitBlob(ArrayRef<UIntTy> Bytes, bool ShouldEmitSize = true) { 469 EmitVBR(static_cast<uint32_t>(Bytes.size()), 6); 475 for (const auto &B : Bytes) { 484 void emitBlob(StringRef Bytes, bool ShouldEmitSize = true) { [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/Disassembler/ |
| H A D | VEDisassembler.cpp | 39 ArrayRef<uint8_t> Bytes, uint64_t Address, 263 if (Bytes.size() < 8) { in readInstruction64() 269 ? ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) | in readInstruction64() 270 ((uint64_t)Bytes[2] << 16) | ((uint64_t)Bytes[3] << 24) | in readInstruction64() 271 ((uint64_t)Bytes[4] << 32) | ((uint64_t)Bytes[5] << 40) | in readInstruction64() 272 ((uint64_t)Bytes[6] << 48) | ((uint64_t)Bytes[7] << 56) in readInstruction64() 273 : ((uint64_t)Bytes[7] << 0) | ((uint64_t)Bytes[6] << 8) | in readInstruction64() 274 ((uint64_t)Bytes[5] << 16) | ((uint64_t)Bytes[4] << 24) | in readInstruction64() 275 ((uint64_t)Bytes[3] << 32) | ((uint64_t)Bytes[2] << 40) | in readInstruction64() 276 ((uint64_t)Bytes[1] << 48) | ((uint64_t)Bytes[0] << 56); in readInstruction64() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 40 std::vector<uint8_t> Bytes; member 46 if (Bytes.size() < Pos + Size) { in getPtrToData() 47 Bytes.resize(Pos + Size); in getPtrToData() 50 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos); in getPtrToData() 159 return minBeforeBytes() + TM->Bits->Before.Bytes.size(); in allocatedBeforeBytes() 165 return minAfterBytes() + TM->Bits->After.Bytes.size(); in allocatedAfterBytes()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 378 assert(Bytes.size() >= sizeof(T)); in DECODE_SDWA() 380 Bytes = Bytes.slice(sizeof(T)); in DECODE_SDWA() 392 const auto SavedBytes = Bytes; in tryDecodeInst() 397 Bytes = SavedBytes; in tryDecodeInst() 431 if (Bytes.size() >= 8) { in getInstruction() 484 if (Bytes.size() < 4) break; in getInstruction() 509 if (Bytes.size() < 4) break; in getInstruction() 595 if (Bytes.size() < 4 * NSAWords) { in getInstruction() 602 Bytes = Bytes.slice(4 * NSAWords); in getInstruction() 1030 if (Bytes.size() < 4) { in decodeLiteralConstant() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/ |
| H A D | llvm-objdump.cpp | 478 dumpBytes(Bytes, OS); in printInst() 506 (Bytes[3] << 24) | (Bytes[2] << 16) | (Bytes[1] << 8) | Bytes[0]; in printLead() 511 dumpBytes(Bytes.slice(0, 4), OS); in printLead() 576 Bytes = Bytes.slice(4); in printInst() 604 if (Bytes.size() >= 4) { in printInst() 617 if (Bytes.size() >= 4) { in printInst() 622 Bytes.size() / 4)) in printInst() 625 for (unsigned char B : Bytes) in printInst() 648 dumpBytes(Bytes, OS); in printInst() 907 dumpBytes(Bytes.slice(Index, 1), OS); in dumpARMELFData() [all …]
|