Home
last modified time | relevance | path

Searched refs:Reader (Results 1 – 25 of 1001) sorted by relevance

12345678910>>...41

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/
DRecordSerialization.h46 inline Error consume(BinaryStreamReader &Reader) { return Error::success(); } in consume() argument
52 Error consume(BinaryStreamReader &Reader, APSInt &Num);
55 Error consume_numeric(BinaryStreamReader &Reader, uint64_t &Value);
58 Error consume(BinaryStreamReader &Reader, uint32_t &Item);
59 Error consume(BinaryStreamReader &Reader, int32_t &Item);
62 Error consume(BinaryStreamReader &Reader, StringRef &Item);
69 template <typename T> Error consume(BinaryStreamReader &Reader, T *&Item) { in consume() argument
70 return Reader.readObject(Item); in consume()
76 Error deserialize(BinaryStreamReader &Reader) const { in deserialize()
79 return consume(Reader, Item); in deserialize()
[all …]
/external/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
DRecordSerialization.h46 inline Error consume(BinaryStreamReader &Reader) { return Error::success(); } in consume() argument
52 Error consume(BinaryStreamReader &Reader, APSInt &Num);
55 Error consume_numeric(BinaryStreamReader &Reader, uint64_t &Value);
58 Error consume(BinaryStreamReader &Reader, uint32_t &Item);
59 Error consume(BinaryStreamReader &Reader, int32_t &Item);
62 Error consume(BinaryStreamReader &Reader, StringRef &Item);
69 template <typename T> Error consume(BinaryStreamReader &Reader, T *&Item) { in consume() argument
70 return Reader.readObject(Item); in consume()
76 Error deserialize(BinaryStreamReader &Reader) const { in deserialize()
79 return consume(Reader, Item); in deserialize()
[all …]
/external/clang/lib/Serialization/
DASTReaderStmt.cpp31 ASTReader &Reader; member in clang::ASTStmtReader
38 return Reader.ReadToken(F, R, I); in ReadToken()
42 return Reader.ReadSourceLocation(F, R, I); in ReadSourceLocation()
46 return Reader.ReadSourceRange(F, R, I); in ReadSourceRange()
50 return Reader.ReadString(R, I); in ReadString()
54 return Reader.GetTypeSourceInfo(F, R, I); in GetTypeSourceInfo()
58 return Reader.ReadDeclID(F, R, I); in ReadDeclID()
62 return Reader.ReadDecl(F, R, I); in ReadDecl()
67 return Reader.ReadDeclAs<T>(F, R, I); in ReadDeclAs()
72 Reader.ReadDeclarationNameLoc(F, DNLoc, Name, R, I); in ReadDeclarationNameLoc()
[all …]
DASTReaderDecl.cpp38 ASTReader &Reader; member in clang::ASTDeclReader
68 return Local ? Reader.getGlobalBitOffset(F, Local) : 0; in ReadGlobalOffset()
72 return Reader.ReadSourceLocation(F, R, I); in ReadSourceLocation()
76 return Reader.ReadSourceRange(F, R, I); in ReadSourceRange()
80 return Reader.GetTypeSourceInfo(F, R, I); in GetTypeSourceInfo()
84 return Reader.ReadDeclID(F, R, I); in ReadDeclID()
88 return Reader.ReadString(R, I); in ReadString()
97 return Reader.ReadDecl(F, R, I); in ReadDecl()
102 return Reader.ReadDeclAs<T>(F, R, I); in ReadDeclAs()
107 Reader.ReadQualifierInfo(F, Info, R, I); in ReadQualifierInfo()
[all …]
DASTReaderInternals.h42 ASTReader &Reader; variable
82 explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTDeclContextNameLookupTrait() argument
83 : Reader(Reader), F(F) { } in ASTDeclContextNameLookupTrait()
166 ASTReader &Reader; variable
177 ASTIdentifierLookupTrait(ASTReader &Reader, ModuleFile &F,
179 : Reader(Reader), F(F), KnownII(II) { } in Reader() argument
187 ASTReader &getReader() const { return Reader; } in getReader()
198 ASTReader &Reader; variable
217 ASTSelectorLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTSelectorLookupTrait() argument
218 : Reader(Reader), F(F) { } in ASTSelectorLookupTrait()
[all …]
/external/marisa-trie/lib/marisa/grimoire/io/
Dreader.cc17 Reader::Reader() in Reader() function in marisa::grimoire::io::Reader
20 Reader::~Reader() { in ~Reader()
26 void Reader::open(const char *filename) { in open()
29 Reader temp; in open()
34 void Reader::open(std::FILE *file) { in open()
37 Reader temp; in open()
42 void Reader::open(int fd) { in open()
45 Reader temp; in open()
50 void Reader::open(std::istream &stream) { in open()
51 Reader temp; in open()
[all …]
/external/llvm-project/clang/include/clang/Serialization/
DASTRecordReader.h34 ASTReader *Reader; variable
44 ASTRecordReader(ASTReader &Reader, ModuleFile &F) in ASTRecordReader() argument
45 : DataStreamBasicReader(Reader.getContext()), Reader(&Reader), F(&F) {} in ASTRecordReader()
56 ASTContext &getContext() { return Reader->getContext(); } in getContext()
89 return Reader->getGlobalSubmoduleID(*F, LocalID); in getGlobalSubmoduleID()
94 return Reader->getSubmodule(GlobalID); in getSubmodule()
99 return Reader->ReadLexicalDeclContextStorage(*F, F->DeclsCursor, Offset, in readLexicalDeclContextStorage()
106 return Reader->ReadVisibleDeclContextStorage(*F, F->DeclsCursor, Offset, in readVisibleDeclContextStorage()
124 return Reader->getGlobalBitOffset(*F, LocalOffset); in getGlobalBitOffset()
128 Stmt *readStmt() { return Reader->ReadStmt(*F); } in readStmt()
[all …]
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DPDBStringTable.cpp27 Error PDBStringTable::readHeader(BinaryStreamReader &Reader) { in readHeader() argument
28 if (auto EC = Reader.readObject(Header)) in readHeader()
38 assert(Reader.bytesRemaining() == 0); in readHeader()
42 Error PDBStringTable::readStrings(BinaryStreamReader &Reader) { in readStrings() argument
44 if (auto EC = Reader.readStreamRef(Stream)) in readStrings()
53 assert(Reader.bytesRemaining() == 0); in readStrings()
62 Error PDBStringTable::readHashTable(BinaryStreamReader &Reader) { in readHashTable() argument
64 if (auto EC = Reader.readObject(HashCount)) in readHashTable()
67 if (auto EC = Reader.readArray(IDs, *HashCount)) { in readHashTable()
76 Error PDBStringTable::readEpilogue(BinaryStreamReader &Reader) { in readEpilogue() argument
[all …]
DPublicsStream.cpp59 BinaryStreamReader Reader(*Stream); in reload() local
62 if (Reader.bytesRemaining() < in reload()
68 if (Reader.readObject(Header)) in reload()
73 if (auto E = PublicsTable.read(Reader)) in reload()
78 if (auto EC = Reader.readArray(AddressMap, NumAddressMapEntries)) in reload()
84 if (auto EC = Reader.readArray(ThunkMap, Header->NumThunks)) in reload()
90 if (Reader.bytesRemaining() > 0) { in reload()
91 if (auto EC = Reader.readArray(SectionOffsets, Header->NumSections)) in reload()
97 if (Reader.bytesRemaining() > 0) in reload()
DModuleDebugStream.cpp38 BinaryStreamReader Reader(*Stream); in reload() local
41 if (Error E = reloadSerialize(Reader)) in reload()
44 if (Reader.bytesRemaining() > 0) in reload()
50 Error ModuleDebugStreamRef::reloadSerialize(BinaryStreamReader &Reader) { in reloadSerialize() argument
61 if (auto EC = Reader.readInteger(Signature)) in reloadSerialize()
63 Reader.setOffset(0); in reloadSerialize()
64 if (auto EC = Reader.readSubstream(SymbolsSubstream, SymbolSize)) in reloadSerialize()
66 if (auto EC = Reader.readSubstream(C11LinesSubstream, C11Size)) in reloadSerialize()
68 if (auto EC = Reader.readSubstream(C13LinesSubstream, C13Size)) in reloadSerialize()
82 if (auto EC = Reader.readInteger(GlobalRefsSize)) in reloadSerialize()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DPDBStringTable.cpp27 Error PDBStringTable::readHeader(BinaryStreamReader &Reader) { in readHeader() argument
28 if (auto EC = Reader.readObject(Header)) in readHeader()
38 assert(Reader.bytesRemaining() == 0); in readHeader()
42 Error PDBStringTable::readStrings(BinaryStreamReader &Reader) { in readStrings() argument
44 if (auto EC = Reader.readStreamRef(Stream)) in readStrings()
53 assert(Reader.bytesRemaining() == 0); in readStrings()
62 Error PDBStringTable::readHashTable(BinaryStreamReader &Reader) { in readHashTable() argument
64 if (auto EC = Reader.readObject(HashCount)) in readHashTable()
67 if (auto EC = Reader.readArray(IDs, *HashCount)) { in readHashTable()
76 Error PDBStringTable::readEpilogue(BinaryStreamReader &Reader) { in readEpilogue() argument
[all …]
DPublicsStream.cpp59 BinaryStreamReader Reader(*Stream); in reload() local
62 if (Reader.bytesRemaining() < in reload()
68 if (Reader.readObject(Header)) in reload()
73 if (auto E = PublicsTable.read(Reader)) in reload()
78 if (auto EC = Reader.readArray(AddressMap, NumAddressMapEntries)) in reload()
84 if (auto EC = Reader.readArray(ThunkMap, Header->NumThunks)) in reload()
90 if (Reader.bytesRemaining() > 0) { in reload()
91 if (auto EC = Reader.readArray(SectionOffsets, Header->NumSections)) in reload()
97 if (Reader.bytesRemaining() > 0) in reload()
DModuleDebugStream.cpp38 BinaryStreamReader Reader(*Stream); in reload() local
41 if (Error E = reloadSerialize(Reader)) in reload()
44 if (Reader.bytesRemaining() > 0) in reload()
50 Error ModuleDebugStreamRef::reloadSerialize(BinaryStreamReader &Reader) { in reloadSerialize() argument
61 if (auto EC = Reader.readInteger(Signature)) in reloadSerialize()
63 Reader.setOffset(0); in reloadSerialize()
64 if (auto EC = Reader.readSubstream(SymbolsSubstream, SymbolSize)) in reloadSerialize()
66 if (auto EC = Reader.readSubstream(C11LinesSubstream, C11Size)) in reloadSerialize()
68 if (auto EC = Reader.readSubstream(C13LinesSubstream, C13Size)) in reloadSerialize()
82 if (auto EC = Reader.readInteger(GlobalRefsSize)) in reloadSerialize()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DRecordSerialization.cpp36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) { in consume() argument
40 if (auto EC = Reader.readInteger(Short)) in consume()
52 if (auto EC = Reader.readInteger(N)) in consume()
59 if (auto EC = Reader.readInteger(N)) in consume()
66 if (auto EC = Reader.readInteger(N)) in consume()
73 if (auto EC = Reader.readInteger(N)) in consume()
80 if (auto EC = Reader.readInteger(N)) in consume()
87 if (auto EC = Reader.readInteger(N)) in consume()
94 if (auto EC = Reader.readInteger(N)) in consume()
114 Error llvm::codeview::consume_numeric(BinaryStreamReader &Reader, in consume_numeric() argument
[all …]
DDebugSubsectionVisitor.cpp31 BinaryStreamReader Reader(R.getRecordData()); in visitDebugSubsection() local
35 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
42 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
49 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
55 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
61 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
67 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
73 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
79 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
85 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
DDebugCrossImpSubsection.cpp28 BinaryStreamReader Reader(Stream); in operator ()() local
29 if (Reader.bytesRemaining() < sizeof(CrossModuleImport)) in operator ()()
33 if (auto EC = Reader.readObject(Item.Header)) in operator ()()
35 if (Reader.bytesRemaining() < Item.Header->Count * sizeof(uint32_t)) in operator ()()
39 if (auto EC = Reader.readArray(Item.Imports, Item.Header->Count)) in operator ()()
45 BinaryStreamReader Reader) { in initialize() argument
46 return Reader.readArray(References, Reader.bytesRemaining()); in initialize()
50 BinaryStreamReader Reader(Stream); in initialize() local
51 return initialize(Reader); in initialize()
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DRecordSerialization.cpp36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) { in consume() argument
40 if (auto EC = Reader.readInteger(Short)) in consume()
52 if (auto EC = Reader.readInteger(N)) in consume()
59 if (auto EC = Reader.readInteger(N)) in consume()
66 if (auto EC = Reader.readInteger(N)) in consume()
73 if (auto EC = Reader.readInteger(N)) in consume()
80 if (auto EC = Reader.readInteger(N)) in consume()
87 if (auto EC = Reader.readInteger(N)) in consume()
94 if (auto EC = Reader.readInteger(N)) in consume()
114 Error llvm::codeview::consume_numeric(BinaryStreamReader &Reader, in consume_numeric() argument
[all …]
DDebugSubsectionVisitor.cpp31 BinaryStreamReader Reader(R.getRecordData()); in visitDebugSubsection() local
35 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
42 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
49 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
55 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
61 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
67 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
73 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
79 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
85 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
DDebugCrossImpSubsection.cpp28 BinaryStreamReader Reader(Stream); in operator ()() local
29 if (Reader.bytesRemaining() < sizeof(CrossModuleImport)) in operator ()()
33 if (auto EC = Reader.readObject(Item.Header)) in operator ()()
35 if (Reader.bytesRemaining() < Item.Header->Count * sizeof(uint32_t)) in operator ()()
39 if (auto EC = Reader.readArray(Item.Imports, Item.Header->Count)) in operator ()()
45 BinaryStreamReader Reader) { in initialize() argument
46 return Reader.readArray(References, Reader.bytesRemaining()); in initialize()
50 BinaryStreamReader Reader(Stream); in initialize() local
51 return initialize(Reader); in initialize()
/external/llvm-project/llvm/unittests/BinaryFormat/
DMsgPackReaderTest.cpp23 Reader MPReader(Buffer); in TEST_F()
46 Reader MPReader(Buffer); in TEST_F()
55 Reader MPReader(Buffer); in TEST_F()
65 Reader MPReader(Buffer); in TEST_F()
80 Reader MPReader(Buffer); in TEST_F()
91 Reader MPReader(Buffer); in TEST_F()
101 Reader MPReader(Buffer); in TEST_F()
111 Reader MPReader(Buffer); in TEST_F()
121 Reader MPReader(Buffer); in TEST_F()
131 Reader MPReader(Buffer); in TEST_F()
[all …]
/external/pigweed/pw_ring_buffer/public/pw_ring_buffer/
Dprefixed_entry_ring_buffer.h58 class Reader : public IntrusiveList<Reader>::Item {
60 constexpr Reader() : buffer(nullptr), read_idx(0), entry_count(0) {} in Reader() function
160 Status AttachReader(Reader& reader);
169 Status DetachReader(Reader& reader);
249 Status InternalPeekFront(Reader& reader,
252 Status InternalPeekFront(Reader& reader, ReadOutput output);
256 Status InternalPeekFrontWithPreamble(Reader& reader,
259 Status InternalPeekFrontWithPreamble(Reader& reader, ReadOutput output);
267 Status InternalPopFront(Reader& reader);
271 size_t InternalFrontEntryDataSizeBytes(Reader& reader);
[all …]
/external/llvm/unittests/Bitcode/
DBitstreamReaderTest.cpp39 BitstreamReader Reader(std::begin(Bytes), std::end(Bytes)); in TEST() local
40 BitstreamCursor Cursor(Reader); in TEST()
59 BitstreamReader Reader(std::begin(Bytes), std::end(Bytes)); in TEST() local
60 BitstreamCursor Cursor(Reader); in TEST()
68 BitstreamReader Reader(&Dummy, &Dummy); in TEST() local
69 BitstreamCursor Cursor(Reader); in TEST()
76 BitstreamReader Reader(std::begin(Bytes), std::end(Bytes)); in TEST() local
77 SimpleBitstreamCursor Cursor(Reader); in TEST()
88 BitstreamReader Reader(std::begin(Bytes), std::end(Bytes)); in TEST() local
89 SimpleBitstreamCursor Cursor(Reader); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Support/
DBinaryStreamTest.cpp273 BinaryStreamReader Reader(Stream); in TEST_F() local
281 EXPECT_THAT_ERROR(Reader.readObject(Byte), Failed()); in TEST_F()
287 EXPECT_THAT_ERROR(Reader.readObject(Byte), Succeeded()); in TEST_F()
289 Reader.setOffset(0); in TEST_F()
290 EXPECT_THAT_ERROR(Reader.readCString(Str), Succeeded()); in TEST_F()
508 BinaryStreamReader Reader(*Stream.Input); in TEST_F() local
509 EXPECT_EQ(0U, Reader.bytesRemaining()); in TEST_F()
510 EXPECT_THAT_ERROR(Reader.readFixedString(S, 1), Failed()); in TEST_F()
517 BinaryStreamReader Reader(*Stream.Input); in TEST_F() local
518 EXPECT_EQ(Bytes.size(), Reader.bytesRemaining()); in TEST_F()
[all …]
/external/llvm-project/clang/lib/Serialization/
DASTReaderInternals.h45 ASTReader &Reader; variable
87 explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTDeclContextNameLookupTrait() argument
88 : Reader(Reader), F(F) {} in ASTDeclContextNameLookupTrait()
160 ASTReader &Reader; variable
171 ASTIdentifierLookupTrait(ASTReader &Reader, ModuleFile &F,
173 : Reader(Reader), F(F), KnownII(II) {} in Reader() function
181 ASTReader &getReader() const { return Reader; } in getReader()
192 ASTReader &Reader; variable
211 ASTSelectorLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTSelectorLookupTrait() argument
212 : Reader(Reader), F(F) {} in ASTSelectorLookupTrait()
[all …]
/external/pigweed/pw_ring_buffer/
Dprefixed_entry_ring_buffer.cc27 using Reader = PrefixedEntryRingBufferMulti::Reader; typedef
31 for (Reader& reader : readers_) { in Clear()
51 Status PrefixedEntryRingBufferMulti::AttachReader(Reader& reader) { in AttachReader()
65 Status PrefixedEntryRingBufferMulti::DetachReader(Reader& reader) { in DetachReader()
119 for (Reader& reader : readers_) { in InternalPushBack()
137 Status PrefixedEntryRingBufferMulti::InternalPeekFront(Reader& reader, in InternalPeekFront()
144 Status PrefixedEntryRingBufferMulti::InternalPeekFront(Reader& reader, in InternalPeekFront()
150 Reader& reader, std::span<byte> data, size_t* bytes_read_out) { in InternalPeekFrontWithPreamble()
156 Reader& reader, ReadOutput output) { in InternalPeekFrontWithPreamble()
165 Reader& reader, in InternalRead()
[all …]

12345678910>>...41