Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DRecordSerialization.h45 inline Error consume(BinaryStreamReader &Reader) { return Error::success(); } in consume() argument
51 Error consume(BinaryStreamReader &Reader, APSInt &Num);
54 Error consume_numeric(BinaryStreamReader &Reader, uint64_t &Value);
57 Error consume(BinaryStreamReader &Reader, uint32_t &Item);
58 Error consume(BinaryStreamReader &Reader, int32_t &Item);
61 Error consume(BinaryStreamReader &Reader, StringRef &Item);
68 template <typename T> Error consume(BinaryStreamReader &Reader, T *&Item) { in consume() argument
69 return Reader.readObject(Item); in consume()
75 Error deserialize(BinaryStreamReader &Reader) const { in deserialize()
78 return consume(Reader, Item); in deserialize()
[all …]
H A DTypeDeserializer.h31 : Stream(RecordData, llvm::endianness::little), Reader(Stream), in MappingInfo()
32 Mapping(Reader) {} in MappingInfo()
35 BinaryStreamReader Reader; member
105 : Reader(R), Mapping(Reader), StartOffset(0) {} in MappingInfo()
107 BinaryStreamReader &Reader; member
113 explicit FieldListDeserializer(BinaryStreamReader &Reader) : Mapping(Reader) { in FieldListDeserializer() argument
126 Mapping.StartOffset = Mapping.Reader.getOffset(); in visitMemberBegin()
151 uint32_t EndOffset = Mapping.Reader in visitKnownMemberImpl()
[all...]
H A DCodeViewRecordIO.h48 return Reader->getOffset(); in getCurrentOffset()
55 explicit CodeViewRecordIO(BinaryStreamReader &Reader) : Reader(&Reader) {} in CodeViewRecordIO() argument
70 return (Streamer != nullptr) && (Reader == nullptr) && (Writer == nullptr); in isStreaming()
73 return (Reader != nullptr) && (Streamer == nullptr) && (Writer == nullptr); in isReading()
76 return (Writer != nullptr) && (Streamer == nullptr) && (Reader == nullptr); in isWriting()
94 if (auto EC = Reader->readObject(ValuePtr)) in mapObject()
111 return Reader->readInteger(Value);
166 if (auto EC = Reader->readInteger(Size))
191 while (!Reader->empty() && Reader->peek() < 0xf0 /* LF_PAD0 */) {
262 BinaryStreamReader *Reader = nullptr; variable
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBStringTable.cpp26 Error PDBStringTable::readHeader(BinaryStreamReader &Reader) { in readHeader() argument
27 if (auto EC = Reader.readObject(Header)) in readHeader()
37 assert(Reader.bytesRemaining() == 0); in readHeader()
41 Error PDBStringTable::readStrings(BinaryStreamReader &Reader) { in readStrings() argument
43 if (auto EC = Reader.readStreamRef(Stream)) in readStrings()
52 assert(Reader.bytesRemaining() == 0); in readStrings()
61 Error PDBStringTable::readHashTable(BinaryStreamReader &Reader) { in readHashTable() argument
63 if (auto EC = Reader.readObject(HashCount)) in readHashTable()
66 if (auto EC = Reader.readArray(IDs, *HashCount)) { in readHashTable()
75 Error PDBStringTable::readEpilogue(BinaryStreamReader &Reader) { in readEpilogue() argument
[all …]
H A DPublicsStream.cpp56 BinaryStreamReader Reader(*Stream); in reload()
59 if (Reader.bytesRemaining() < in reload()
65 if (Reader.readObject(Header)) in reload()
70 if (auto E = PublicsTable.read(Reader)) in reload()
75 if (auto EC = Reader.readArray(AddressMap, NumAddressMapEntries)) in reload()
81 if (auto EC = Reader.readArray(ThunkMap, Header->NumThunks)) in reload()
87 if (Reader.bytesRemaining() > 0) { in reload()
88 if (auto EC = Reader.readArray(SectionOffsets, Header->NumSections)) in reload()
94 if (Reader.bytesRemaining() > 0) in reload()
57 BinaryStreamReader Reader(*Stream); reload() local
H A DModuleDebugStream.cpp39 BinaryStreamReader Reader(*Stream); in reload() local
42 if (Error E = reloadSerialize(Reader)) in reload()
45 if (Reader.bytesRemaining() > 0) in reload()
51 Error ModuleDebugStreamRef::reloadSerialize(BinaryStreamReader &Reader) { in reloadSerialize() argument
62 if (auto EC = Reader.readInteger(Signature)) in reloadSerialize()
64 Reader.setOffset(0); in reloadSerialize()
65 if (auto EC = Reader.readSubstream(SymbolsSubstream, SymbolSize)) in reloadSerialize()
67 if (auto EC = Reader.readSubstream(C11LinesSubstream, C11Size)) in reloadSerialize()
69 if (auto EC = Reader.readSubstream(C13LinesSubstream, C13Size)) in reloadSerialize()
83 if (auto EC = Reader.readInteger(GlobalRefsSize)) in reloadSerialize()
[all …]
H A DGlobalsStream.cpp42 BinaryStreamReader Reader(*Stream); in reload() local
43 if (auto E = GlobalsTable.read(Reader)) in reload()
95 BinaryStreamReader &Reader) { in readGSIHashHeader() argument
96 if (Reader.readObject(HashHdr)) in readGSIHashHeader()
110 BinaryStreamReader &Reader) { in readGSIHashRecords() argument
120 if (auto EC = Reader.readArray(HashRecords, NumHashRecords)) in readGSIHashRecords()
133 BinaryStreamReader &Reader) { in readGSIHashBuckets() argument
141 if (auto EC = Reader.readArray(HashBitmap, NumBitmapEntries)) in readGSIHashBuckets()
162 if (auto EC = Reader.readArray(HashBuckets, NumBuckets)) in readGSIHashBuckets()
170 Error GSIHashTable::read(BinaryStreamReader &Reader) { in read() argument
[all …]
H A DInfoStream.cpp24 BinaryStreamReader Reader(*Stream); in reload() local
26 if (auto EC = Reader.readObject(Header)) in reload()
43 uint32_t Offset = Reader.getOffset(); in reload()
44 if (auto EC = NamedStreams.load(Reader)) in reload()
46 uint32_t NewOffset = Reader.getOffset(); in reload()
49 Reader.setOffset(Offset); in reload()
50 if (auto EC = Reader.readSubstream(SubNamedStreams, NamedStreamMapByteSize)) in reload()
54 while (!Stop && !Reader.empty()) { in reload()
56 if (auto EC = Reader.readEnum(Sig)) in reload()
H A DDbiStream.cpp33 BinaryStreamReader &Reader) { in loadSectionContribs() argument
34 if (Reader.bytesRemaining() % sizeof(ContribType) != 0) in loadSectionContribs()
39 uint32_t Count = Reader.bytesRemaining() / sizeof(ContribType); in loadSectionContribs()
40 if (auto EC = Reader.readArray(Output, Count)) in loadSectionContribs()
51 BinaryStreamReader Reader(*Stream); in reload() local
56 if (auto EC = Reader.readObject(Header)) in reload()
98 if (auto EC = Reader.readSubstream(ModiSubstream, Header->ModiSubstreamSize)) in reload()
101 if (auto EC = Reader.readSubstream(SecContrSubstream, in reload()
104 if (auto EC = Reader.readSubstream(SecMapSubstream, Header->SectionMapSize)) in reload()
106 if (auto EC = Reader.readSubstream(FileInfoSubstream, Header->FileInfoSize)) in reload()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordReader.h37 ASTReader *Reader; variable
47 ASTRecordReader(ASTReader &Reader, ModuleFile &F) in ASTRecordReader() argument
48 : DataStreamBasicReader(Reader.getContext()), Reader(&Reader), F(&F) {} in ASTRecordReader()
59 ASTContext &getContext() { return Reader->getContext(); } in getContext()
92 return Reader->getGlobalSubmoduleID(*F, LocalID); in getGlobalSubmoduleID()
97 return Reader->getSubmodule(GlobalID); in getSubmodule()
102 return Reader->ReadLexicalDeclContextStorage(*F, F->DeclsCursor, Offset, in readLexicalDeclContextStorage()
120 return Reader->getGlobalBitOffset(*F, LocalOffset); in getGlobalBitOffset()
124 Stmt *readStmt() { return Reader->ReadStmt(*F); } in readStmt()
128 Expr *readExpr() { return Reader->ReadExpr(*F); } in readExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A 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
126 consume(BinaryStreamReader & Reader,uint32_t & Item) consume() argument
139 consume(BinaryStreamReader & Reader,int32_t & Item) consume() argument
143 consume(BinaryStreamReader & Reader,StringRef & Item) consume() argument
[all...]
H A DDebugSubsectionVisitor.cpp32 BinaryStreamReader Reader(R.getRecordData()); in visitDebugSubsection() local
36 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
43 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
50 if (auto EC = Fragment.initialize(Reader)) in visitDebugSubsection()
56 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
62 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
68 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
74 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
80 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
86 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
H A 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()
H A DDebugFrameDataSubsection.cpp17 Error DebugFrameDataSubsectionRef::initialize(BinaryStreamReader Reader) { in initialize() argument
18 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) { in initialize()
19 if (auto EC = Reader.readObject(RelocPtr)) in initialize()
23 if (Reader.bytesRemaining() % sizeof(FrameData) != 0) in initialize()
27 uint32_t Count = Reader.bytesRemaining() / sizeof(FrameData); in initialize()
28 if (auto EC = Reader.readArray(Frames, Count)) in initialize()
34 BinaryStreamReader Reader(Section); in initialize() local
35 return initialize(Reader); in initialize()
H A DDebugInlineeLinesSubsection.cpp26 BinaryStreamReader Reader(Stream); in operator ()() local
28 if (auto EC = Reader.readObject(Item.Header)) in operator ()()
33 if (auto EC = Reader.readInteger(ExtraFileCount)) in operator ()()
35 if (auto EC = Reader.readArray(Item.ExtraFiles, ExtraFileCount)) in operator ()()
39 Len = Reader.getOffset(); in operator ()()
46 Error DebugInlineeLinesSubsectionRef::initialize(BinaryStreamReader Reader) { in initialize() argument
47 if (auto EC = Reader.readEnum(Signature)) in initialize()
51 if (auto EC = Reader.readArray(Lines, Reader.bytesRemaining())) in initialize()
54 assert(Reader.bytesRemaining() == 0); in initialize()
H A DDebugCrossExSubsection.cpp20 BinaryStreamReader Reader) { in initialize() argument
21 if (Reader.bytesRemaining() % sizeof(CrossModuleExport) != 0) in initialize()
26 uint32_t Size = Reader.bytesRemaining() / sizeof(CrossModuleExport); in initialize()
27 return Reader.readArray(References, Size); in initialize()
31 BinaryStreamReader Reader(Stream); in initialize() local
32 return initialize(Reader); in initialize()
H A DDebugChecksumsSubsection.cpp36 BinaryStreamReader Reader(Stream); in operator ()() local
39 if (auto EC = Reader.readObject(Header)) in operator ()()
44 if (auto EC = Reader.readBytes(Item.Checksum, Header->ChecksumSize)) in operator ()()
51 Error DebugChecksumsSubsectionRef::initialize(BinaryStreamReader Reader) { in initialize() argument
52 if (auto EC = Reader.readArray(Checksums, Reader.bytesRemaining())) in initialize()
59 BinaryStreamReader Reader(Section); in initialize() local
60 return initialize(Reader); in initialize()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderInternals.h44 ASTReader &Reader; variable
86 explicit ASTDeclContextNameLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTDeclContextNameLookupTrait() argument
87 : Reader(Reader), F(F) {} in ASTDeclContextNameLookupTrait()
159 ASTReader &Reader; variable
170 ASTIdentifierLookupTrait(ASTReader &Reader, ModuleFile &F,
172 : Reader(Reader), F(F), KnownII(II) {} in Reader() function
180 ASTReader &getReader() const { return Reader; } in getReader()
191 ASTReader &Reader; variable
210 ASTSelectorLookupTrait(ASTReader &Reader, ModuleFile &F) in ASTSelectorLookupTrait() argument
211 : Reader(Reader), F(F) {} in ASTSelectorLookupTrait()
[all …]
H A DASTReaderDecl.cpp85 ASTReader &Reader; member in clang::ASTDeclReader
176 static NamedDecl *getAnonymousDeclForMerging(ASTReader &Reader,
179 static void setAnonymousDeclForMerging(ASTReader &Reader, DeclContext *DC,
186 static CXXRecordDecl *getOrFakePrimaryClassDefinition(ASTReader &Reader,
216 ASTReader &Reader; member in clang::ASTDeclReader::FindExistingResult
224 FindExistingResult(ASTReader &Reader) : Reader(Reader) {} in FindExistingResult() argument
226 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing, in FindExistingResult() argument
229 : Reader(Reader), New(New), Existing(Existing), AddResult(true), in FindExistingResult()
234 : Reader(Other.Reader), New(Other.New), Existing(Other.Existing), in FindExistingResult()
254 static DeclContext *getPrimaryContextForMerging(ASTReader &Reader,
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DChainedIncludesSource.cpp62 std::unique_ptr<ASTReader> Reader; in createASTReader() local
63 Reader.reset(new ASTReader( in createASTReader()
69 Reader->addInMemoryBuffer(sr, std::move(MemBufs[ti])); in createASTReader()
71 Reader->setDeserializationListener(deserialListener); in createASTReader()
72 switch (Reader->ReadAST(pchFile, serialization::MK_PCH, SourceLocation(), in createASTReader()
76 PP.setPredefines(Reader->getSuggestedPredefines()); in createASTReader()
77 return Reader.release(); in createASTReader()
91 CompilerInstance &CI, IntrusiveRefCntPtr<ExternalSemaSource> &Reader) { in createChainedIncludesSource() argument
164 IntrusiveRefCntPtr<ASTReader> Reader; in createChainedIncludesSource() local
165 Reader = createASTReader( in createChainedIncludesSource()
[all …]
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp59 if (auto Reader = Entry.second.dyn_cast<APINotesReader *>()) in ~APINotesManager() local
60 delete Reader; in ~APINotesManager()
101 auto Reader = APINotesReader::Create(std::move(CompiledBuffer), SwiftVersion); in loadAPINotes() local
102 assert(Reader && "Could not load the API notes we just generated?"); in loadAPINotes()
103 return Reader; in loadAPINotes()
122 auto Reader = APINotesReader::Create(std::move(CompiledBuffer), SwiftVersion); in loadAPINotes() local
123 assert(Reader && "Could not load the API notes we just generated?"); in loadAPINotes()
124 return Reader; in loadAPINotes()
130 if (auto Reader = loadAPINotes(APINotesFile)) { in loadAPINotes() local
131 Readers[HeaderDir] = Reader.release(); in loadAPINotes()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h18 /// msgpack::Reader MPReader(input);
104 class Reader {
107 Reader(MemoryBufferRef InputBuffer);
109 Reader(StringRef Input);
111 Reader(const Reader &) = delete;
112 Reader &operator=(const Reader &) = delete;
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCodeViewYAMLTypeHashing.cpp52 BinaryStreamReader Reader(DebugH, llvm::endianness::little); in fromDebugH() local
54 cantFail(Reader.readInteger(DHS.Magic)); in fromDebugH()
55 cantFail(Reader.readInteger(DHS.Version)); in fromDebugH()
56 cantFail(Reader.readInteger(DHS.HashAlgorithm)); in fromDebugH()
58 while (Reader.bytesRemaining() != 0) { in fromDebugH()
60 cantFail(Reader.readBytes(S, 8)); in fromDebugH()
63 assert(Reader.bytesRemaining() == 0); in fromDebugH()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBStringTable.h28 Error reload(BinaryStreamReader &Reader);
43 Error readHeader(BinaryStreamReader &Reader);
44 Error readStrings(BinaryStreamReader &Reader);
45 Error readHashTable(BinaryStreamReader &Reader);
46 Error readEpilogue(BinaryStreamReader &Reader);
/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DTrace.cpp47 DataExtractor Reader(Data, IsLittleEndian, 8); in loadNaiveFormatLog() local
49 auto FileHeaderOrError = readBinaryFormatHeader(Reader, OffsetPtr); in loadNaiveFormatLog()
54 size_t NumReservations = llvm::divideCeil(Reader.size() - OffsetPtr, 32U); in loadNaiveFormatLog()
67 while (Reader.isValidOffset(OffsetPtr)) { in loadNaiveFormatLog()
68 if (!Reader.isValidOffsetForDataOfSize(OffsetPtr, 32)) in loadNaiveFormatLog()
74 auto RecordType = Reader.getU16(&OffsetPtr); in loadNaiveFormatLog()
87 Record.CPU = Reader.getU8(&OffsetPtr); in loadNaiveFormatLog()
94 auto Type = Reader.getU8(&OffsetPtr); in loadNaiveFormatLog()
121 Record.FuncId = Reader.getSigned(&OffsetPtr, sizeof(int32_t)); in loadNaiveFormatLog()
129 Record.TSC = Reader in loadNaiveFormatLog()
[all...]

1234567