Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp47 ArrayRef<uint8_t> Bytes, uint64_t Address,
51 ArrayRef<uint8_t> Bytes,
77 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) {
78 if (Size >= Bytes.size()) in nextByte() argument
80 auto V = Bytes[Size]; in nextByte()
85 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size,
89 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
90 Bytes.data() + Bytes.size(), &Error) in nextLEB()
91 : static_cast<int64_t>(decodeULEB128(Bytes in nextLEB()
86 nextLEB(int64_t & Val,ArrayRef<uint8_t> Bytes,uint64_t & Size,bool Signed) nextLEB() argument
102 parseLEBImmediate(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes,bool Signed) parseLEBImmediate() argument
111 parseImmediate(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes) parseImmediate() argument
128 onSymbolStart(SymbolInfoTy & Symbol,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address) const onSymbolStart() argument
163 getInstruction(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t,raw_ostream & CS) const getInstruction() argument
[all...]
/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, in readInstruction64() argument
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[6] << 16) | (Bytes[7] << 24); in readInstruction64()
156 Hi = (Bytes[0] << 24) | ((Bytes[1] & 0x0F) << 20) | ((Bytes[1] & 0xF0) << 12) | in readInstruction64()
157 (Bytes[2] << 8) | (Bytes[3] << 0); in readInstruction64()
158 Lo = (Bytes[4] << 24) | (Bytes[5] << 16) | (Bytes[6] << 8) | (Bytes[7] << 0); in readInstruction64()
166 ArrayRef<uint8_t> Bytes, in getInstruction() argument
173 Result = readInstruction64(Bytes, Address, Size, Insn, IsLittleEndian); in getInstruction()
[all …]
/llvm-project/llvm/test/tools/llvm-cov/Inputs/
H A Dmcdc-const-folding.proftext10 # Num Bitmap Bytes:
25 # Num Bitmap Bytes:
40 # Num Bitmap Bytes:
55 # Num Bitmap Bytes:
70 # Num Bitmap Bytes:
85 # Num Bitmap Bytes:
100 # Num Bitmap Bytes:
115 # Num Bitmap Bytes:
132 # Num Bitmap Bytes:
149 # Num Bitmap Bytes:
[all …]
/llvm-project/llvm/unittests/Support/
H A Draw_fd_stream_test.cpp30 char Bytes[8]; in TEST() local
35 EXPECT_EQ(OS.read(Bytes, 2), 2); in TEST()
36 EXPECT_EQ(Bytes[0], '3'); in TEST()
37 EXPECT_EQ(Bytes[1], '4'); in TEST()
43 EXPECT_EQ(OS.read(Bytes, 8), 8); 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()
[all …]
/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 …]
/llvm-project/llvm/utils/UnicodeData/
H A DUnicodeNameMappingGenerator.cpp157 auto Bytes = dumpIndex(Dict); in serialize() local
158 return {Dict, Bytes}; in serialize()
200 std::vector<uint8_t> Bytes; in dumpIndex() local
201 Bytes.reserve(250'000); in dumpIndex()
203 Bytes.push_back(0); in dumpIndex()
216 const std::size_t Offset = Bytes.size(); in dumpIndex()
227 Bytes.push_back(FirstByte); in dumpIndex()
231 Bytes.push_back(FirstByte); in dumpIndex()
236 Bytes.push_back(High); in dumpIndex()
237 Bytes.push_back(Low); in dumpIndex()
[all …]
/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()
/llvm-project/llvm/unittests/Bitstream/
H A DBitstreamReaderTest.cpp19 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()
68 uint8_t Bytes[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in TEST() local
69 SimpleBitstreamCursor Cursor(Bytes); in TEST()
72 EXPECT_EQ(Bytes + I, Cursor.getPointerToByte(I, 1)); in TEST()
77 uint8_t Bytes[] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}; in TEST() local
[all …]
/llvm-project/llvm/lib/Target/MSP430/Disassembler/
H A DMSP430Disassembler.cpp33 ArrayRef<uint8_t> Bytes, uint64_t Address,
37 ArrayRef<uint8_t> Bytes, uint64_t Address,
41 ArrayRef<uint8_t> Bytes, uint64_t Address,
49 ArrayRef<uint8_t> Bytes, uint64_t Address,
229 ArrayRef<uint8_t> Bytes, in getInstructionI()
232 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI()
246 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI()
250 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + 2) << 16; in getInstructionI()
260 if (Bytes.size() < (Words + 1) * 2) { in getInstructionI()
264 Insn |= (uint64_t)support::endian::read16le(Bytes in getInstructionI()
230 getInstructionI(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address,raw_ostream & CStream) const getInstructionI() argument
285 getInstructionII(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address,raw_ostream & CStream) const getInstructionII() argument
340 getInstructionCJ(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address,raw_ostream & CStream) const getInstructionCJ() argument
361 getInstruction(MCInst & MI,uint64_t & Size,ArrayRef<uint8_t> Bytes,uint64_t Address,raw_ostream & CStream) const getInstruction() argument
[all...]
/llvm-project/llvm/unittests/Transforms/IPO/
H A DWholeProgramDevirt.cpp86 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()
108 EXPECT_EQ((std::vector<uint8_t>{0x80, 34}), VT2.Before.Bytes); in TEST()
116 EXPECT_EQ((std::vector<uint8_t>{1, 12, 0, 56}), VT1.Before.Bytes); in TEST()
119 EXPECT_EQ((std::vector<uint8_t>{0x80, 34, 0, 78}), VT2.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()
[all …]
/llvm-project/offload/DeviceRTL/src/
H A DState.cpp81 /// Allocate \p Bytes on the stack for the encountering thread. Each thread
83 void *push(uint64_t Bytes);
87 void pop(void *Ptr, uint64_t Bytes);
120 void *SharedMemorySmartStackTy::push(uint64_t Bytes) { in push() argument
124 uint64_t AlignedBytes = utils::alignPtr(Bytes, allocator::ALIGNMENT); in push()
151 void SharedMemorySmartStackTy::pop(void *Ptr, uint64_t Bytes) { in pop() argument
152 uint64_t AlignedBytes = utils::alignPtr(Bytes, allocator::ALIGNMENT); in pop()
165 void *memory::allocShared(uint64_t Bytes, const char *Reason) { in allocShared() argument
166 return SharedMemorySmartStack.push(Bytes); in allocShared()
169 void memory::freeShared(void *Ptr, uint64_t Bytes, cons argument
173 allocGlobal(uint64_t Bytes,const char * Reason) allocGlobal() argument
276 uint32_t Bytes = enterDataEnvironment() local
434 __kmpc_alloc_shared(uint64_t Bytes) __kmpc_alloc_shared() argument
438 __kmpc_free_shared(void * Ptr,uint64_t Bytes) __kmpc_free_shared() argument
[all...]
/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()
/llvm-project/llvm/docs/CommandGuide/
H A Dllvm-bcanalyzer.rst66 **Module Bytes**
70 **Function Bytes**
75 **Global Types Bytes**
80 **Constant Pool Bytes**
85 **Module Globals Bytes**
90 **Instruction List Bytes**
94 the Function Bytes.
96 **Compaction Table Bytes**
100 the Function Bytes.
102 **Symbol Table Bytes**
[all …]
/llvm-project/clang/test/Analysis/inlining/
H A Dplacement-new-fp-suppression.cpp74 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/clang-tools-extra/clangd/index/dex/
H A DPostingList.cpp186 std::optional<DocID> readVByte(llvm::ArrayRef<uint8_t> &Bytes) { in readVByte() argument
187 if (Bytes.front() == 0 || Bytes.empty()) in readVByte()
191 for (size_t Length = 0; HasNextByte && !Bytes.empty(); ++Length) { in readVByte()
194 Result |= (Bytes.front() & 0x7f) << (BitsPerEncodingByte * Length); in readVByte()
195 if ((Bytes.front() & 0x80) == 0) in readVByte()
197 Bytes = Bytes.drop_front(); in readVByte()
206 llvm::ArrayRef<uint8_t> Bytes(Payload); in decompress() local
208 for (DocID Current = Head; !Bytes.empty(); Current += Delta) { in decompress()
209 auto MaybeDelta = readVByte(Bytes); in decompress()
/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()
/llvm-project/llvm/test/Transforms/Attributor/
H A Dmultiple-offsets-pointer-info.ll28 %Bytes = call ptr @calloc(i64 1024, i64 1)
30 %gep23 = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 23
32 %gep29 = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 29
34 %gep7 = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 7
38 %gep31 = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 31
43 %gep.sel = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 %sel1
69 %Bytes = alloca [1024 x i8], align 16
71 %gep23 = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 23
73 %gep29 = getelementptr inbounds [1024 x i8], ptr %Bytes, i64 0, i64 29
75 %gep7 = getelementptr inbounds [1024 x i8], ptr %Bytes, i6
[all...]
/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()
/llvm-project/llvm/test/tools/llvm-profdata/
H A Dmcdc-bitmap.test11 MCDC: # Num Bitmap Bytes:
15 MCDC: # Num Bitmap Bytes:
28 MCDC2: # Num Bitmap Bytes:
68 # Num Bitmask Bytes:
83 # Num Bitmask Bytes:
101 # Num Bitmask Bytes:
119 # Num Bitmask Bytes:
143 # Num Bitmask Bytes:
167 # Num Bitmask Bytes:
191 # Num Bitmask Bytes:
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDIEGenerator.h59 ArrayRef<uint8_t> Bytes) { in addLocationAttribute() argument
61 for (auto Byte : Bytes) in addLocationAttribute()
65 Loc->setSize(Bytes.size()); in addLocationAttribute()
73 ArrayRef<uint8_t> Bytes) { in addBlockAttribute() argument
78 (AttrForm == dwarf::DW_FORM_block1 && Bytes.size() <= UINT8_MAX) || in addBlockAttribute()
79 (AttrForm == dwarf::DW_FORM_block2 && Bytes.size() <= UINT16_MAX) || in addBlockAttribute()
80 (AttrForm == dwarf::DW_FORM_block4 && Bytes.size() <= UINT32_MAX)); in addBlockAttribute()
83 for (auto Byte : Bytes) in addBlockAttribute()
87 Block->setSize(Bytes.size()); in addBlockAttribute()
/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZSelectionDAGInfo.cpp109 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemset()
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 in EmitTargetCodeForMemset()
99 uint64_t Bytes = CSize->getZExtValue(); EmitTargetCodeForMemset() local
179 uint64_t Bytes = CSize->getZExtValue(); EmitTargetCodeForMemcmp() local
[all...]
/llvm-project/llvm/unittests/MC/
H A DDisassembler.cpp28 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/clang/unittests/Lex/
H A DHeaderMapTest.cpp132 ASSERT_EQ('c', File.Bytes[5]); in TEST()
133 for (unsigned I = 6; I < sizeof(File.Bytes); ++I) { in TEST()
134 ASSERT_EQ(0, File.Bytes[I]); in TEST()
135 File.Bytes[I] = 'x'; in TEST()
167 ASSERT_EQ('b', File.Bytes[5]); in TEST()
168 for (unsigned I = 6; I < sizeof(File.Bytes); ++I) { in TEST()
169 ASSERT_EQ(0, File.Bytes[I]); in TEST()
170 File.Bytes[I] = 'x'; in TEST()
/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()

12345678910>>...12