| /freebsd-12.1/contrib/llvm/lib/Target/BPF/Disassembler/ |
| H A D | BPFDisassembler.cpp | 69 ArrayRef<uint8_t> Bytes, uint64_t Address, 143 if (Bytes.size() < 8) { in readInstruction64() 150 Hi = (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction64() 151 Lo = (Bytes[4] << 0) | (Bytes[5] << 8) | (Bytes[6] << 16) | (Bytes[7] << 24); in readInstruction64() 153 Hi = (Bytes[0] << 24) | ((Bytes[1] & 0x0F) << 20) | ((Bytes[1] & 0xF0) << 12) | in readInstruction64() 154 (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction64() 155 Lo = (Bytes[4] << 24) | (Bytes[5] << 16) | (Bytes[6] << 8) | (Bytes[7] << 0); in readInstruction64() 163 ArrayRef<uint8_t> Bytes, in getInstruction() argument 190 if (Bytes.size() < 16) { in getInstruction() 196 Hi = (Bytes[12] << 0) | (Bytes[13] << 8) | (Bytes[14] << 16) | (Bytes[15] << 24); in getInstruction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/Disassembler/ |
| H A D | WebAssemblyDisassembler.cpp | 72 if (Size >= Bytes.size()) in nextByte() 74 auto V = Bytes[Size]; in nextByte() 84 Bytes.data() + Bytes.size(), &Error) in nextLEB() 86 Bytes.data() + Bytes.size(), in nextLEB() 97 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate() 105 if (Size + sizeof(T) > Bytes.size()) in parseImmediate() 108 memcpy(&Val, Bytes.data() + Size, sizeof(T)); in parseImmediate() 124 int Opc = nextByte(Bytes, Size); in getInstruction() 141 if (!nextLEB(PrefixedOpc, Bytes, Size)) in getInstruction() 184 if (!parseImmediate<float>(MI, Size, Bytes)) in getInstruction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARC/Disassembler/ |
| H A D | ARCDisassembler.cpp | 56 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction32() 63 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) | in readInstruction64() 64 ((uint64_t)Bytes[2] << 0) | ((uint64_t)Bytes[3] << 8) | in readInstruction64() 65 ((uint64_t)Bytes[4] << 48) | ((uint64_t)Bytes[5] << 56) | in readInstruction64() 66 ((uint64_t)Bytes[6] << 32) | ((uint64_t)Bytes[7] << 40); in readInstruction64() 73 Insn = ((uint64_t)Bytes[0] << 0) | ((uint64_t)Bytes[1] << 8) | in readInstruction48() 74 ((uint64_t)Bytes[2] << 32) | ((uint64_t)Bytes[3] << 40) | in readInstruction48() 75 ((uint64_t)Bytes[4] << 16) | ((uint64_t)Bytes[5] << 24); in readInstruction48() 82 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16() 303 if (Bytes.size() < 2) { in getInstruction() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AVR/Disassembler/ |
| H A D | AVRDisassembler.cpp | 42 ArrayRef<uint8_t> Bytes, uint64_t Address, 78 static DecodeStatus readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction16() argument 80 if (Bytes.size() < 2) { in readInstruction16() 86 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16() 91 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument 94 if (Bytes.size() < 4) { in readInstruction32() 100 Insn = (Bytes[0] << 0) | (Bytes[1] << 8) | (Bytes[2] << 16) | (Bytes[3] << 24); in readInstruction32() 115 ArrayRef<uint8_t> Bytes, in getInstruction() argument 125 Result = readInstruction16(Bytes, Address, Size, Insn); in getInstruction() 139 Result = readInstruction32(Bytes, Address, Size, Insn); in getInstruction()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| 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 | 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 | BinaryStreamReader.h | 80 ArrayRef<uint8_t> Bytes; in readInteger() local 81 if (auto EC = readBytes(Bytes, sizeof(T))) in readInteger() 85 Bytes.data(), Stream.getEndian()); in readInteger() 177 ArrayRef<uint8_t> Bytes; in readArray() local 187 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray() 190 assert(alignmentAdjustment(Bytes.data(), alignof(T)) == 0 && in readArray() 193 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-12.1/contrib/llvm/lib/Target/MSP430/Disassembler/ |
| H A D | MSP430Disassembler.cpp | 34 ArrayRef<uint8_t> Bytes, uint64_t Address, 39 ArrayRef<uint8_t> Bytes, uint64_t Address, 53 ArrayRef<uint8_t> Bytes, uint64_t Address, 238 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI() 252 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI() 266 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI() 294 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionII() 307 if (Bytes.size() < (Words + 1) * 2) { in getInstructionII() 350 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionCJ() 372 if (Bytes.size() < 2) { in getInstruction() [all …]
|
| /freebsd-12.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-12.1/contrib/llvm/lib/XRay/ |
| H A D | FDRTraceWriter.cpp | 52 auto Bytes = IndexedWriter<0>::write(OS, T); in writeMetadata() local 53 assert(Bytes <= 15 && "Must only ever write at most 16 byte metadata!"); in writeMetadata() 55 for (; Bytes < 15; ++Bytes) in writeMetadata() 102 ArrayRef<char> Bytes(D.data(), D.size()); in visit() local 103 OS.write(Bytes); in visit() 111 ArrayRef<char> Bytes(D.data(), D.size()); in visit() local 112 OS.write(Bytes); in visit() 120 ArrayRef<char> Bytes(D.data(), D.size()); in visit() local 121 OS.write(Bytes); in visit()
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugChecksumsSubsection.cpp | 70 ArrayRef<uint8_t> Bytes) { in addChecksum() argument 72 if (!Bytes.empty()) { in addChecksum() 73 uint8_t *Copy = Storage.Allocate<uint8_t>(Bytes.size()); in addChecksum() 74 ::memcpy(Copy, Bytes.data(), Bytes.size()); in addChecksum() 75 Entry.Checksum = makeArrayRef(Copy, Bytes.size()); in addChecksum() 87 uint32_t Len = alignTo(sizeof(FileChecksumEntryHeader) + Bytes.size(), 4); in addChecksum()
|
| H A D | CodeViewRecordIO.cpp | 81 Error CodeViewRecordIO::mapByteVectorTail(ArrayRef<uint8_t> &Bytes) { in mapByteVectorTail() argument 83 if (auto EC = Writer->writeBytes(Bytes)) in mapByteVectorTail() 86 if (auto EC = Reader->readBytes(Bytes, Reader->bytesRemaining())) in mapByteVectorTail() 92 Error CodeViewRecordIO::mapByteVectorTail(std::vector<uint8_t> &Bytes) { in mapByteVectorTail() argument 93 ArrayRef<uint8_t> BytesRef(Bytes); in mapByteVectorTail() 97 Bytes.assign(BytesRef.begin(), BytesRef.end()); in mapByteVectorTail()
|
| H A D | TypeTableCollection.cpp | 40 ArrayRef<uint8_t> Bytes = Records[Index.toArrayIndex()]; in getType() local 42 reinterpret_cast<const RecordPrefix *>(Bytes.data()); in getType() 44 return CVType(Kind, Bytes); in getType()
|
| /freebsd-12.1/contrib/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() 113 if (Bytes <= 2) { in EmitTargetCodeForMemset() 115 if (Bytes == 1) in EmitTargetCodeForMemset() 131 Chain, Dst, Dst, Bytes); in EmitTargetCodeForMemset() 139 Chain, DstPlus1, Dst, Bytes - 1); in EmitTargetCodeForMemset() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | circular_raw_ostream.cpp | 26 unsigned Bytes = in write_impl() local 28 memcpy(Cur, Ptr, Bytes); in write_impl() 29 Size -= Bytes; in write_impl() 30 Cur += Bytes; in write_impl()
|
| /freebsd-12.1/contrib/llvm/lib/Support/Windows/ |
| H A D | DynamicLibrary.inc | 72 static bool GetProcessModules(HANDLE H, DWORD &Bytes, HMODULE *Data = nullptr) { 77 !EnumProcessModulesEx(H, Data, Bytes, &Bytes, LIST_MODULES_64BIT) 79 !EnumProcessModules(H, Data, Bytes, &Bytes) 114 DWORD Bytes = 0; 116 if (!GetProcessModules(Self, Bytes)) 125 assert(Bytes && ((Bytes % sizeof(HMODULE)) == 0) && 127 Handles.resize(Bytes / sizeof(HMODULE)); 128 if (!GetProcessModules(Self, Bytes, Handles.data())) 130 } while (Bytes != (Handles.size() * sizeof(HMODULE)));
|
| /freebsd-12.1/contrib/llvm/lib/Target/Lanai/Disassembler/ |
| H A D | LanaiDisassembler.cpp | 74 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t &Size, in readInstruction32() argument 77 if (Bytes.size() < 4) { in readInstruction32() 84 (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction32() 131 MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t Address, in getInstruction() argument 135 DecodeStatus Result = readInstruction32(Bytes, Size, Insn); in getInstruction()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 148 assert(Bytes.size() >= sizeof(T)); in DECODE_SDWA() 150 Bytes = Bytes.slice(sizeof(T)); in DECODE_SDWA() 162 const auto SavedBytes = Bytes; in tryDecodeInst() 167 Bytes = SavedBytes; in tryDecodeInst() 184 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction() 193 if (Bytes.size() >= 8) { in getInstruction() 221 Bytes = Bytes_.slice(0, MaxInstBytesNum); in getInstruction() 224 if (Bytes.size() < 4) break; in getInstruction() 235 if (Bytes.size() < 4) break; in getInstruction() 529 if (Bytes.size() < 4) { in decodeLiteralConstant() [all …]
|
| /freebsd-12.1/contrib/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() 53 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts() 66 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), in PrintInsts()
|
| /freebsd-12.1/usr.sbin/ctm/ctm/ |
| H A D | ctm_syntax.c | 24 #define Bytes CTM_F_Bytes macro 38 MD5|After|Chunk, Count, Bytes,0 }; 42 MD5|Before|Force, MD5|After|Chunk, Count, Bytes,0 }; 46 MD5|Before, MD5|After, Count, Bytes,0 };
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/IPO/ |
| H A D | WholeProgramDevirt.h | 38 std::vector<uint8_t> Bytes; member 44 if (Bytes.size() < Pos + Size) { in getPtrToData() 45 Bytes.resize(Pos + Size); in getPtrToData() 48 return std::make_pair(Bytes.data() + Pos, BytesUsed.data() + Pos); in getPtrToData() 157 return minBeforeBytes() + TM->Bits->Before.Bytes.size(); in allocatedBeforeBytes() 163 return minAfterBytes() + TM->Bits->After.Bytes.size(); in allocatedAfterBytes()
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFDebugLoc.cpp | 118 unsigned Bytes = Data.getU16(Offset); in parseOneLocationList() local 119 if (!Data.isValidOffsetForDataOfSize(*Offset, Bytes)) { in parseOneLocationList() 124 StringRef str = Data.getData().substr(*Offset, Bytes); in parseOneLocationList() 125 *Offset += Bytes; in parseOneLocationList() 187 unsigned Bytes = in parseOneLocationList() local 190 StringRef str = Data.getData().substr(*Offset, Bytes); in parseOneLocationList() 191 *Offset += Bytes; in parseOneLocationList()
|
| /freebsd-12.1/contrib/llvm/tools/llvm-objdump/ |
| H A D | llvm-objdump.cpp | 1027 dumpBytes(Bytes, OS); in printInst() 1041 (Bytes[3] << 24) | (Bytes[2] << 16) | (Bytes[1] << 8) | Bytes[0]; in printLead() 1046 dumpBytes(Bytes.slice(0, 4), OS); in printLead() 1057 printLead(Bytes, Address, OS); in printInst() 1099 printLead(Bytes, Address, OS); in printInst() 1116 Bytes = Bytes.slice(4); in printInst() 1145 if (Bytes.size() >= 4) { in printInst() 1158 if (Bytes.size() >=4) { in printInst() 1187 dumpBytes(Bytes, OS); in printInst() 1675 Bytes.data() + Index); in disassembleObject() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/ARM/ |
| H A D | ThumbRegisterInfo.cpp | 194 unsigned Bytes = (unsigned)NumBytes; in emitThumbRegPlusImmediate() local 195 if (isSub) Bytes = -NumBytes; in emitThumbRegPlusImmediate() 268 assert(((Bytes & 3) == 0 || ExtraScale == 1) && in emitThumbRegPlusImmediate() 273 if (CopyOpc && Bytes < CopyScale) { in emitThumbRegPlusImmediate() 281 unsigned RangeAfterCopy = (CopyRange > Bytes) ? 0 : (Bytes - CopyRange); in emitThumbRegPlusImmediate() 309 unsigned CopyImm = std::min(Bytes, CopyRange) / CopyScale; in emitThumbRegPlusImmediate() 310 Bytes -= CopyImm * CopyScale; in emitThumbRegPlusImmediate() 325 while (Bytes) { in emitThumbRegPlusImmediate() 326 unsigned ExtraImm = std::min(Bytes, ExtraRange) / ExtraScale; in emitThumbRegPlusImmediate() 327 Bytes -= ExtraImm * ExtraScale; in emitThumbRegPlusImmediate()
|