Home
last modified time | relevance | path

Searched refs:Bytes (Results 1 – 25 of 210) sorted by relevance

123456789

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp48 ArrayRef<uint8_t> Bytes, uint64_t Address,
52 ArrayRef<uint8_t> Bytes,
78 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument
79 if (Size >= Bytes.size()) in nextByte()
81 auto V = Bytes[Size]; in nextByte()
86 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument
90 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
91 Bytes.data() + Bytes.size(), &Error) in nextLEB()
92 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB()
93 Bytes.data() + Bytes.size(), in nextLEB()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/Disassembler/
H A DBPFDisassembler.cpp69 ArrayRef<uint8_t> Bytes, uint64_t Address,
141 static DecodeStatus readInstruction64(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[ in readInstruction64()
142 readInstruction64(ArrayRef<uint8_t> Bytes,uint64_t Address,uint64_t & Size,uint64_t & Insn,bool IsLittleEndian) readInstruction64() argument
167 getInstruction(MCInst & Instr,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address,raw_ostream & CStream) const getInstruction() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/Disassembler/
H A DARCDisassembler.cpp44 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 DBase64.h23 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 DDataExtractor.h20 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 DBinaryStreamReader.h71 ArrayRef<uint8_t> Bytes; in readInteger()
72 if (auto EC = readBytes(Bytes, sizeof(T))) in readInteger() local
75 Dest = llvm::support::endian::read<T>(Bytes.data(), Stream.getEndian()); in readInteger()
179 ArrayRef<uint8_t> Bytes;
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()
181 ArrayRef<uint8_t> Bytes; readArray() local
H A DFormat.h217 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/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/
H A DMSP430Disassembler.cpp34 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,
230 ArrayRef<uint8_t> Bytes, in getInstructionI() argument
233 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI()
247 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI()
251 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + 2) << 16; in getInstructionI()
261 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI()
265 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + Words * 2) in getInstructionI()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DFileWriter.cpp20 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 Dutmisc.c250 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 DFDRTraceWriter.cpp49 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()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugChecksumsSubsection.cpp69 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/llvm/lib/Target/SystemZ/
H A DSystemZSelectionDAGInfo.cpp99 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()
139 assert(Bytes >= 2 && "Should have dealt with 0- and 1-byte cases already"); in EmitTargetCodeForMemset()
143 return emitMemMemImm(DAG, DL, SystemZISD::XC, Chain, Dst, Dst, Bytes); in EmitTargetCodeForMemset()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dcircular_raw_ostream.cpp25 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/RISCV/Disassembler/
H A DRISCVDisassembler.cpp42 ArrayRef<uint8_t> Bytes, uint64_t Address,
49 ArrayRef<uint8_t> Bytes, uint64_t Address,
52 ArrayRef<uint8_t> Bytes, uint64_t Address,
535 ArrayRef<uint8_t> Bytes, in getInstruction32() argument
538 if (Bytes.size() < 4) { in getInstruction32()
544 uint32_t Insn = support::endian::read32le(Bytes.data()); in getInstruction32()
629 ArrayRef<uint8_t> Bytes, in getInstruction16() argument
632 if (Bytes.size() < 2) { in getInstruction16()
638 uint32_t Insn = support::endian::read16le(Bytes.data()); in getInstruction16()
659 ArrayRef<uint8_t> Bytes, in getInstruction() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DDynamicLibrary.inc68 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/include/llvm/Bitstream/
H A DBitstreamWriter.h229 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/Lanai/Disassembler/
H A DLanaiDisassembler.cpp75 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/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DXCOFFDump.cpp144 printRawData(Bytes.slice(Index, 4), Address + Index, OS, STI); \
149 void objdump::dumpTracebackTable(ArrayRef<uint8_t> Bytes, uint64_t Address,
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 in dumpTracebackTable()
150 dumpTracebackTable(ArrayRef<uint8_t> Bytes,uint64_t Address,formatted_raw_ostream & OS,uint64_t End,const MCSubtargetInfo & STI,const XCOFFObjectFile * Obj) dumpTracebackTable() argument
[all...]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mc/
H A DDisassembler.cpp34 static bool PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, in PrintInsts()
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()
35 PrintInsts(const MCDisassembler & DisAsm,const ByteArrayTy & Bytes,SourceMgr & SM,raw_ostream & Out,MCStreamer & Streamer,bool InAtomicBlock,const MCSubtargetInfo & STI) PrintInsts() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/Disassembler/
H A DSparcDisassembler.cpp38 ArrayRef<uint8_t> Bytes, uint64_t Address,
270 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address,
273 // We want to read exactly 4 Bytes of data.
274 if (Bytes.size() < 4) { in readInstruction32() argument
280 ? (Bytes[0] << 0) | (Bytes[1] << 8) | (Bytes[2] << 16) | in readInstruction32()
281 (Bytes[3] << 24) in readInstruction32()
282 : (Bytes[3] << 0) | (Bytes[ in readInstruction32()
293 getInstruction(MCInst & Instr,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address,raw_ostream & CStream) const getInstruction() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/Disassembler/
H A DAVRDisassembler.cpp45 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/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpciph_aes_cts.txt115 # 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/Target/VE/Disassembler/
H A DVEDisassembler.cpp39 ArrayRef<uint8_t> Bytes, uint64_t Address,
268 static DecodeStatus readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction64() argument
272 if (Bytes.size() < 8) { in readInstruction64()
278 ? ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) | in readInstruction64()
279 ((uint64_t)Bytes[2] << 16) | ((uint64_t)Bytes[3] << 24) | in readInstruction64()
280 ((uint64_t)Bytes[4] << 32) | ((uint64_t)Bytes[5] << 40) | in readInstruction64()
281 ((uint64_t)Bytes[6] << 48) | ((uint64_t)Bytes[7] << 56) in readInstruction64()
282 : ((uint64_t)Bytes[7] << 0) | ((uint64_t)Bytes[6] << 8) | in readInstruction64()
283 ((uint64_t)Bytes[5] << 16) | ((uint64_t)Bytes[4] << 24) | in readInstruction64()
284 ((uint64_t)Bytes[3] << 32) | ((uint64_t)Bytes[2] << 40) | in readInstruction64()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DBuildID.cpp48 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()

123456789