Home
last modified time | relevance | path

Searched refs:Buf (Results 1 – 25 of 157) sorted by relevance

1234567

/third_party/glslang/Test/baseResults/
Dhlsl.noSemantic.functionality1.comp.out15 Name 11 "Buf"
16 MemberName 11(Buf) 0 "@data"
17 Name 13 "Buf"
18 Name 17 "Buf@count"
19 MemberName 17(Buf@count) 0 "@count"
20 Name 19 "Buf@count"
22 MemberDecorate 11(Buf) 0 Offset 0
23 Decorate 11(Buf) BufferBlock
24 Decorate 13(Buf) DescriptorSet 0
25 Decorate 13(Buf) Binding 0
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/
DYAMLRemarkParser.cpp61 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() argument
62 if (!Buf.consume_front(remarks::Magic)) in parseMagic()
65 if (Buf.size() < 1 || !Buf.consume_front(StringRef("\0", 1))) in parseMagic()
71 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() argument
72 if (Buf.size() < sizeof(uint64_t)) in parseVersion()
78 Buf.data()); in parseVersion()
84 Buf = Buf.drop_front(sizeof(uint64_t)); in parseVersion()
88 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) { in parseStrTabSize() argument
89 if (Buf.size() < sizeof(uint64_t)) in parseStrTabSize()
94 Buf.data()); in parseStrTabSize()
[all …]
DRemarkParser.cpp52 llvm::remarks::createRemarkParser(Format ParserFormat, StringRef Buf) { in createRemarkParser() argument
55 return std::make_unique<YAMLRemarkParser>(Buf); in createRemarkParser()
61 return std::make_unique<BitstreamRemarkParser>(Buf); in createRemarkParser()
70 llvm::remarks::createRemarkParser(Format ParserFormat, StringRef Buf, in createRemarkParser() argument
78 return std::make_unique<YAMLStrTabRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser()
80 return std::make_unique<BitstreamRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser()
90 Format ParserFormat, StringRef Buf, Optional<ParsedStringTable> StrTab, in createRemarkParserFromMeta() argument
97 return createYAMLParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta()
100 return createBitstreamParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta()
115 CParser(Format ParserFormat, StringRef Buf, in CParser()
[all …]
DBitstreamRemarkParser.h46 explicit BitstreamRemarkParser(StringRef Buf) in BitstreamRemarkParser()
47 : RemarkParser(Format::Bitstream), ParserHelper(Buf) {} in BitstreamRemarkParser()
50 BitstreamRemarkParser(StringRef Buf, ParsedStringTable StrTab) in BitstreamRemarkParser()
51 : RemarkParser(Format::Bitstream), ParserHelper(Buf), in BitstreamRemarkParser()
78 StringRef Buf, Optional<ParsedStringTable> StrTab = None,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DCOFFModuleDefinition.cpp90 Lexer(StringRef S) : Buf(S) {} in Lexer()
93 Buf = Buf.trim(); in lex()
94 if (Buf.empty()) in lex()
97 switch (Buf[0]) { in lex()
101 size_t End = Buf.find('\n'); in lex()
102 Buf = (End == Buf.npos) ? "" : Buf.drop_front(End); in lex()
106 Buf = Buf.drop_front(); in lex()
107 if (Buf.startswith("=")) { in lex()
108 Buf = Buf.drop_front(); in lex()
113 Buf = Buf.drop_front(); in lex()
[all …]
DArchive.cpp78 std::string Buf; in ArchiveMemberHeader() local
79 raw_string_ostream OS(Buf); in ArchiveMemberHeader()
83 std::string Msg("terminator characters in archive member \"" + Buf + in ArchiveMemberHeader()
157 std::string Buf; in getName() local
158 raw_string_ostream OS(Buf); in getName()
164 "not all decimal numbers: '" + Buf + "' for " in getName()
195 std::string Buf; in getName() local
196 raw_string_ostream OS(Buf); in getName()
202 "not all decimal numbers: '" + Buf + "' for " in getName()
230 std::string Buf; in getSize() local
[all …]
DObject.cpp79 auto Buf = unwrap(BR)->getMemoryBufferRef(); in LLVMBinaryCopyMemoryBuffer() local
81 Buf.getBuffer(), Buf.getBufferIdentifier(), in LLVMBinaryCopyMemoryBuffer()
179 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile() local
181 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
189 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
222 std::string Buf; in LLVMMoveToContainingSection() local
223 raw_string_ostream OS(Buf); in LLVMMoveToContainingSection()
226 report_fatal_error(Buf); in LLVMMoveToContainingSection()
304 std::string Buf; in LLVMGetSymbolName() local
305 raw_string_ostream OS(Buf); in LLVMGetSymbolName()
[all …]
/third_party/lzma/CPP/7zip/Common/
DCWrappers.cpp163 ::MidFree(Buf); in Free()
164 Buf = NULL; in Free()
169 if (!Buf || size != Size) in Alloc()
172 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size); in Alloc()
175 return (Buf != NULL); in Alloc()
183 Res = Stream->Read(Buf, Size, &avail); in ReadByteFromNewBlock()
184 Processed += (size_t)(Cur - Buf); in ReadByteFromNewBlock()
185 Cur = Buf; in ReadByteFromNewBlock()
186 Lim = Buf + avail; in ReadByteFromNewBlock()
205 CByteInBufWrap::CByteInBufWrap() throw(): Buf(NULL) in CByteInBufWrap()
[all …]
DCWrappers.h59 Byte *Buf; member
72 Lim = Cur = Buf; in Init()
77 UInt64 GetProcessed() const { return Processed + (size_t)(Cur - Buf); } in GetProcessed()
132 Byte *Buf; member
144 Cur = Buf; in Init()
145 Lim = Buf + Size; in Init()
149 UInt64 GetProcessed() const { return Processed + (size_t)(Cur - Buf); } in GetProcessed()
/third_party/skia/third_party/externals/spirv-cross/shaders/asm/comp/
Dhlsl-functionality.asm.comp15 OpName %Buf "Buf"
16 OpMemberName %Buf 0 "@data"
17 OpName %Buf_0 "Buf"
18 OpName %Buf_count "Buf@count"
20 OpName %Buf_count_0 "Buf@count"
22 OpMemberDecorate %Buf 0 Offset 0
23 OpDecorate %Buf BufferBlock
36 %Buf = OpTypeStruct %_runtimearr_v4float
37 %_ptr_Uniform_Buf = OpTypePointer Uniform %Buf
/third_party/skia/third_party/externals/tint/test/bug/tint/
D221.wgsl.expected.spvasm10 OpName %Buf "Buf"
11 OpMemberName %Buf 0 "count"
12 OpMemberName %Buf 1 "data"
16 OpDecorate %Buf Block
17 OpMemberDecorate %Buf 0 Offset 0
18 OpMemberDecorate %Buf 1 Offset 4
25 %Buf = OpTypeStruct %uint %_arr_uint_uint_50
26 %_ptr_StorageBuffer_Buf = OpTypePointer StorageBuffer %Buf
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeHeader.h84 bool Write(uint8_t *Buf, size_t BufLen) const;
87 bool Read(const uint8_t *Buf, size_t BufLen);
101 static size_t GetDataSizeFromSerialized(const uint8_t *Buf) { in GetDataSizeFromSerialized() argument
103 ReadFixedSubfield(&Length, Buf + sizeof(FixedSubfield)); in GetDataSizeFromSerialized()
136 static void WriteFixedSubfield(FixedSubfield Value, uint8_t *Buf) { in WriteFixedSubfield() argument
137 Buf[0] = Value & 0xFF; in WriteFixedSubfield()
138 Buf[1] = (Value >> 8) & 0xFF; in WriteFixedSubfield()
140 static void ReadFixedSubfield(FixedSubfield *Value, const uint8_t *Buf) { in ReadFixedSubfield() argument
141 *Value = Buf[0] | Buf[1] << 8; in ReadFixedSubfield()
/third_party/ffmpeg/libavfilter/
Dfifo.c33 typedef struct Buf { struct
35 struct Buf *next; argument
36 } Buf; typedef
39 Buf root;
40 Buf *last; ///< last buffered frame
61 Buf *buf, *tmp; in uninit()
76 s->last->next = av_mallocz(sizeof(Buf)); in add_to_queue()
90 Buf *tmp = s->root.next->next; in queue_pop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/
DItaniumDemangle.cpp328 char *llvm::itaniumDemangle(const char *MangledName, char *Buf, in itaniumDemangle() argument
330 if (MangledName == nullptr || (Buf != nullptr && N == nullptr)) { in itaniumDemangle()
344 else if (!initializeOutputStream(Buf, N, S, 1024)) in itaniumDemangle()
352 Buf = S.getBuffer(); in itaniumDemangle()
357 return InternalStatus == demangle_success ? Buf : nullptr; in itaniumDemangle()
389 static char *printNode(const Node *RootNode, char *Buf, size_t *N) { in printNode() argument
391 if (!initializeOutputStream(Buf, N, S, 128)) in printNode()
400 char *ItaniumPartialDemangler::getFunctionBaseName(char *Buf, size_t *N) const { in getFunctionBaseName() argument
424 return printNode(Name, Buf, N); in getFunctionBaseName()
429 char *ItaniumPartialDemangler::getFunctionDeclContextName(char *Buf, in getFunctionDeclContextName() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
DMicrosoftDemangle.h30 uint8_t *Buf = nullptr; member
38 NewHead->Buf = new uint8_t[Capacity]; in addNode()
50 assert(Head->Buf); in ~ArenaAllocator()
51 delete[] Head->Buf; in ~ArenaAllocator()
59 assert(Head && Head->Buf); in allocUnalignedBuffer()
61 uint8_t *P = Head->Buf + Head->Used; in allocUnalignedBuffer()
69 return reinterpret_cast<char *>(Head->Buf); in allocUnalignedBuffer()
74 assert(Head && Head->Buf); in allocArray()
76 size_t P = (size_t)Head->Buf + Head->Used; in allocArray()
88 return new (Head->Buf) T[Count](); in allocArray()
[all …]
DDemangle.h69 char *finishDemangle(char *Buf, size_t *N) const;
73 char *getFunctionBaseName(char *Buf, size_t *N) const;
77 char *getFunctionDeclContextName(char *Buf, size_t *N) const;
80 char *getFunctionName(char *Buf, size_t *N) const;
83 char *getFunctionParameters(char *Buf, size_t *N) const;
84 char *getFunctionReturnType(char *Buf, size_t *N) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DBinary.h185 std::unique_ptr<MemoryBuffer> Buf; variable
189 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
201 std::unique_ptr<MemoryBuffer> Buf) in OwningBinary() argument
202 : Bin(std::move(Bin)), Buf(std::move(Buf)) {} in OwningBinary()
208 : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} in OwningBinary()
213 Buf = std::move(Other.Buf);
220 return std::make_pair(std::move(Bin), std::move(Buf)); in takeBinary()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
DFuzzerCLI.cpp161 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in runFuzzerOnInputs() local
162 errs() << "Running: " << Arg << " (" << Buf->getBufferSize() << " bytes)\n"; in runFuzzerOnInputs()
163 TestOne(reinterpret_cast<const uint8_t *>(Buf->getBufferStart()), in runFuzzerOnInputs()
164 Buf->getBufferSize()); in runFuzzerOnInputs()
190 std::string Buf; in writeModule() local
192 raw_string_ostream OS(Buf); in writeModule()
195 if (Buf.size() > MaxSize) in writeModule()
197 memcpy(Dest, Buf.data(), Buf.size()); in writeModule()
198 return Buf.size(); in writeModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSHA1.cpp34 static inline uint32_t blk0(uint32_t *Buf, int I) { return Buf[I]; } in blk0() argument
36 static inline uint32_t blk(uint32_t *Buf, int I) { in blk() argument
37 Buf[I & 15] = rol(Buf[(I + 13) & 15] ^ Buf[(I + 8) & 15] ^ Buf[(I + 2) & 15] ^ in blk()
38 Buf[I & 15], in blk()
40 return Buf[I & 15]; in blk()
44 uint32_t &E, int I, uint32_t *Buf) { in r0() argument
45 E += ((B & (C ^ D)) ^ D) + blk0(Buf, I) + 0x5A827999 + rol(A, 5); in r0()
50 uint32_t &E, int I, uint32_t *Buf) { in r1() argument
51 E += ((B & (C ^ D)) ^ D) + blk(Buf, I) + 0x5A827999 + rol(A, 5); in r1()
56 uint32_t &E, int I, uint32_t *Buf) { in r2() argument
[all …]
DMemoryBuffer.cpp127 auto Buf = WritableMemoryBuffer::getNewUninitMemBuffer(InputData.size(), BufferName); in getMemBufferCopyImpl() local
128 if (!Buf) in getMemBufferCopyImpl()
130 memcpy(Buf->getBufferStart(), InputData.data(), InputData.size()); in getMemBufferCopyImpl()
131 return std::move(Buf); in getMemBufferCopyImpl()
136 auto Buf = getMemBufferCopyImpl(InputData, BufferName); in getMemBufferCopy() local
137 if (Buf) in getMemBufferCopy()
138 return std::move(*Buf); in getMemBufferCopy()
292 char *Buf = Mem + AlignedStringLen; in getNewUninitMemBuffer() local
293 Buf[Size] = 0; // Null terminate buffer. in getNewUninitMemBuffer()
295 auto *Ret = new (Mem) MemBuffer(StringRef(Buf, Size), true); in getNewUninitMemBuffer()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DParser.cpp30 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto() local
31 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseAssemblyInto()
114 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseSummaryIndexAssemblyInto() local
115 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseSummaryIndexAssemblyInto()
150 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue() local
151 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseConstantValue()
167 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseType() local
168 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseType()
179 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseTypeAtBeginning() local
180 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseTypeAtBeginning()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_calling_conv_main.cpp50 char *Buf; variable
54 std::string bufAsString(const char Buf[BUF_SIZE]) { in bufAsString()
59 OS << (unsigned)Buf[i]; in bufAsString()
107 Buf = BufLlc; in testCaller()
110 Buf = BufSz; in testCaller()
156 Buf = BufLlc; in testCallee()
160 Buf = BufSz; in testCallee()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/
DCoverageMappingReader.cpp395 virtual Expected<const char *> readFunctionRecords(const char *Buf,
473 Expected<const char *> readFunctionRecords(const char *Buf, in readFunctionRecords() argument
477 if (Buf + sizeof(CovMapHeader) > End) in readFunctionRecords()
479 auto CovHeader = reinterpret_cast<const CovMapHeader *>(Buf); in readFunctionRecords()
484 Buf = reinterpret_cast<const char *>(CovHeader + 1); in readFunctionRecords()
487 const char *FunBuf = Buf; in readFunctionRecords()
488 Buf += NRecords * sizeof(FuncRecordType); in readFunctionRecords()
489 const char *FunEnd = Buf; in readFunctionRecords()
492 if (Buf + FilenamesSize > End) in readFunctionRecords()
495 RawCoverageFilenamesReader Reader(StringRef(Buf, FilenamesSize), Filenames); in readFunctionRecords()
[all …]
/third_party/rust/crates/serde/serde/src/de/
Dformat.rs4 pub(super) struct Buf<'a> { struct
9 impl<'a> Buf<'a> { impl
11 Buf { bytes, offset: 0 } in new()
20 impl<'a> Write for Buf<'a> { implementation
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeHeader.cpp95 bool NaClBitcodeHeaderField::Write(uint8_t *Buf, size_t BufLen) const { in Write() argument
104 WriteFixedSubfield(EncodeTypedID(), Buf); in Write()
106 Buf + sizeof(FixedSubfield)); in Write()
107 memcpy(Buf + kTagLenSize, Data, Len); in Write()
110 memset(Buf + FieldsLen, 0, PadLen); in Write()
115 bool NaClBitcodeHeaderField::Read(const uint8_t *Buf, size_t BufLen) { in Read() argument
119 ReadFixedSubfield(&IdField, Buf); in Read()
121 ReadFixedSubfield(&LengthField, Buf + sizeof(FixedSubfield)); in Read()
133 memcpy(Data, Buf + kTagLenSize, Len); in Read()

1234567