| /llvm-project-15.0.7/llvm/lib/Target/BPF/Disassembler/ |
| H A D | BPFDisassembler.cpp | 70 ArrayRef<uint8_t> Bytes, uint64_t Address, 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 194 if (Bytes.size() < 16) { in getInstruction() 200 Hi = (Bytes[12] << 0) | (Bytes[13] << 8) | (Bytes[14] << 16) | (Bytes[15] << 24); in getInstruction() [all …]
|
| /llvm-project-15.0.7/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() 137 if (!nextLEB(BodySize, Bytes, Size, false) || in onSymbolStart() 145 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart() 164 int Opc = nextByte(Bytes, Size); in getInstruction() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | raw_fd_stream_test.cpp | 30 char Bytes[8]; in TEST() local 36 EXPECT_EQ(Bytes[0], '3'); in TEST() 37 EXPECT_EQ(Bytes[1], '4'); in TEST() 44 EXPECT_EQ(Bytes[0], '0'); in TEST() 45 EXPECT_EQ(Bytes[1], '1'); in TEST() 46 EXPECT_EQ(Bytes[2], '2'); in TEST() 47 EXPECT_EQ(Bytes[3], '3'); in TEST() 48 EXPECT_EQ(Bytes[4], 'x'); in TEST() 49 EXPECT_EQ(Bytes[5], 'y'); in TEST() 50 EXPECT_EQ(Bytes[6], 'z'); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Base64.h | 21 template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) { in encodeBase64() argument 26 Buffer.resize(((Bytes.size() + 2) / 3) * 4); in encodeBase64() 29 for (size_t n = Bytes.size() / 3 * 3; i < n; i += 3, j += 4) { in encodeBase64() 30 uint32_t x = ((unsigned char)Bytes[i] << 16) | in encodeBase64() 31 ((unsigned char)Bytes[i + 1] << 8) | in encodeBase64() 32 (unsigned char)Bytes[i + 2]; in encodeBase64() 38 if (i + 1 == Bytes.size()) { in encodeBase64() 39 uint32_t x = ((unsigned char)Bytes[i] << 16); in encodeBase64() 44 } else if (i + 2 == Bytes.size()) { in encodeBase64() 46 ((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 | 72 ArrayRef<uint8_t> Bytes; in readInteger() local 73 if (auto EC = readBytes(Bytes, sizeof(T))) in readInteger() 77 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()
|
| /llvm-project-15.0.7/llvm/utils/UnicodeData/ |
| H A D | UnicodeNameMappingGenerator.cpp | 143 return {Dict, Bytes}; in serialize() 186 Bytes.reserve(250'000); in dumpIndex() 188 Bytes.push_back(0); in dumpIndex() 235 Bytes.push_back(H); in dumpIndex() 285 Bytes.push_back(0); in dumpIndex() 286 Bytes.push_back(0); in dumpIndex() 287 Bytes.push_back(0); in dumpIndex() 288 Bytes.push_back(0); in dumpIndex() 289 Bytes.push_back(0); in dumpIndex() 290 Bytes.push_back(0); in dumpIndex() [all …]
|
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/llvm/unittests/Bitstream/ |
| H A D | BitstreamReaderTest.cpp | 19 uint8_t Bytes[4] = { in TEST() local 22 BitstreamCursor Cursor(Bytes); in TEST() 40 uint8_t Bytes[4] = { in TEST() local 43 BitstreamCursor Cursor(Bytes); in TEST() 56 uint8_t Bytes[] = {0x00, 0x01, 0x02, 0x03}; in TEST() local 57 SimpleBitstreamCursor Cursor(Bytes); in TEST() 69 SimpleBitstreamCursor Cursor(Bytes); in TEST() 72 EXPECT_EQ(Bytes + I, Cursor.getPointerToByte(I, 1)); in TEST() 78 SimpleBitstreamCursor Cursor(Bytes); in TEST() 81 EXPECT_EQ(Bytes + I, Cursor.getPointerToBit(I * 8, 1)); in TEST() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/IPO/ |
| H A D | WholeProgramDevirt.cpp | 86 EXPECT_EQ(std::vector<uint8_t>{1}, VT1.Before.Bytes); in TEST() 88 EXPECT_EQ(std::vector<uint8_t>{0}, VT2.Before.Bytes); in TEST() 96 EXPECT_EQ(std::vector<uint8_t>{1}, VT1.Before.Bytes); in TEST() 98 EXPECT_EQ(std::vector<uint8_t>{0x80}, VT2.Before.Bytes); in TEST() 106 EXPECT_EQ((std::vector<uint8_t>{1, 12}), VT1.Before.Bytes); in TEST() 128 EXPECT_EQ(std::vector<uint8_t>{1}, VT1.After.Bytes); in TEST() 130 EXPECT_EQ(std::vector<uint8_t>{0}, VT2.After.Bytes); in TEST() 138 EXPECT_EQ(std::vector<uint8_t>{1}, VT1.After.Bytes); in TEST() 140 EXPECT_EQ(std::vector<uint8_t>{0x80}, VT2.After.Bytes); in TEST() 148 EXPECT_EQ((std::vector<uint8_t>{1, 12}), VT1.After.Bytes); in TEST() [all …]
|
| /llvm-project-15.0.7/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 …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/test/Analysis/inlining/ |
| H A D | placement-new-fp-suppression.cpp | 74 void *operator new(size_t Bytes, const ASTContext &C, size_t Alignment = 8); 75 void *operator new[](size_t Bytes, const ASTContext &C, size_t Alignment = 8); 96 inline void *operator new(size_t Bytes, const ASTContext &C, in operator new() argument 98 return C.Allocate(Bytes, Alignment); in operator new() 101 inline void *operator new[](size_t Bytes, const ASTContext &C, in operator new[]() argument 103 return C.Allocate(Bytes, Alignment); in operator new[]() 108 void *operator new(size_t Bytes, ASTContext &C, in operator new() argument 110 return ::operator new(Bytes, C, Alignment); in operator new()
|
| /llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/src/ |
| H A D | State.cpp | 82 void *push(uint64_t Bytes); 86 void pop(void *Ptr, uint32_t Bytes); 119 void *SharedMemorySmartStackTy::push(uint64_t Bytes) { in push() argument 121 uint64_t AlignedBytes = utils::align_up(Bytes, Alignment); in push() 148 void SharedMemorySmartStackTy::pop(void *Ptr, uint32_t Bytes) { in pop() argument 149 uint64_t AlignedBytes = utils::align_up(Bytes, Alignment); in pop() 163 return SharedMemorySmartStack.push(Bytes); in allocShared() 167 SharedMemorySmartStack.pop(Ptr, Bytes); in freeShared() 171 void *Ptr = malloc(Bytes); in allocGlobal() 398 return memory::allocShared(Bytes, "Frontend alloc shared"); in __kmpc_alloc_shared() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | PostingList.cpp | 185 llvm::Optional<DocID> readVByte(llvm::ArrayRef<uint8_t> &Bytes) { in readVByte() argument 186 if (Bytes.front() == 0 || Bytes.empty()) in readVByte() 190 for (size_t Length = 0; HasNextByte && !Bytes.empty(); ++Length) { in readVByte() 193 Result |= (Bytes.front() & 0x7f) << (BitsPerEncodingByte * Length); in readVByte() 194 if ((Bytes.front() & 0x80) == 0) in readVByte() 196 Bytes = Bytes.drop_front(); in readVByte() 205 llvm::ArrayRef<uint8_t> Bytes(Payload); in decompress() local 207 for (DocID Current = Head; !Bytes.empty(); Current += Delta) { in decompress() 208 auto MaybeDelta = readVByte(Bytes); in decompress()
|
| /llvm-project-15.0.7/llvm/docs/CommandGuide/ |
| H A D | llvm-bcanalyzer.rst | 66 **Module Bytes** 70 **Function Bytes** 75 **Global Types Bytes** 80 **Constant Pool Bytes** 94 the Function Bytes. 100 the Function Bytes. 102 **Symbol Table Bytes** 106 Bytes. 112 Global Bytes. 181 **Bytes Per Value** [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/unittests/MC/ |
| H A D | Disassembler.cpp | 28 uint8_t Bytes[] = {0x90, 0x90, 0xeb, 0xfd}; in TEST() local 29 uint8_t *BytesP = Bytes; in TEST() 38 unsigned NumBytes = sizeof(Bytes); in TEST() 74 uint8_t Bytes[] = {0x6a, 0x42, 0x7F, 0x35, 0x01, 0x10}; in TEST() local 75 uint8_t *BytesP = Bytes; in TEST() 84 unsigned NumBytes = sizeof(Bytes); in TEST()
|
| /llvm-project-15.0.7/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 && countPopulation(Bytes) <= 2 : in EmitTargetCodeForMemset() 110 Bytes <= 4) { in EmitTargetCodeForMemset() 111 unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet(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 …]
|
| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | HeaderMapTest.cpp | 133 ASSERT_EQ('c', File.Bytes[5]); in TEST() 134 for (unsigned I = 6; I < sizeof(File.Bytes); ++I) { in TEST() 135 ASSERT_EQ(0, File.Bytes[I]); in TEST() 136 File.Bytes[I] = 'x'; in TEST() 169 ASSERT_EQ('b', File.Bytes[5]); in TEST() 170 for (unsigned I = 6; I < sizeof(File.Bytes); ++I) { in TEST() 171 ASSERT_EQ(0, File.Bytes[I]); in TEST() 172 File.Bytes[I] = 'x'; in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 168 ssize_t BytesRead = FS->read(Bytes, BytesFromDisk); in BackpatchWord() 172 Bytes[BytesFromDisk + i] = Out[i]; in BackpatchWord() 174 Bytes, StartBit)) && in BackpatchWord() 184 FS->write(Bytes, BytesFromDisk); in BackpatchWord() 186 Out[i] = Bytes[BytesFromDisk + i]; in BackpatchWord() 461 void emitBlob(ArrayRef<UIntTy> Bytes, bool ShouldEmitSize = true) { 464 EmitVBR(static_cast<uint32_t>(Bytes.size()), 6); 470 assert(llvm::all_of(Bytes, [](UIntTy B) { return isUInt<8>(B); })); 471 Out.append(Bytes.begin(), Bytes.end()); 477 void emitBlob(StringRef Bytes, bool ShouldEmitSize = true) { [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/Disassembler/ |
| H A D | AVRDisassembler.cpp | 42 ArrayRef<uint8_t> Bytes, uint64_t Address, 373 static DecodeStatus readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction16() argument 375 if (Bytes.size() < 2) { in readInstruction16() 381 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); in readInstruction16() 386 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, in readInstruction32() argument 389 if (Bytes.size() < 4) { in readInstruction32() 396 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); in readInstruction32() 414 ArrayRef<uint8_t> Bytes, in getInstruction() argument 423 Result = readInstruction16(Bytes, Address, Size, Insn); in getInstruction() 443 Result = readInstruction32(Bytes, Address, Size, Insn); in getInstruction()
|
| /llvm-project-15.0.7/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)));
|