Home
last modified time | relevance | path

Searched full:reader (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/freebsd-src/sys/contrib/ck/include/
H A Dck_brlock.h31 * Big reader spinlocks provide cache-local contention-free read
38 * of larger reader objects due to necessary linkage overhead. In
88 /* The reader list is protected under the writer br. */ in ck_brlock_write_lock()
142 ck_brlock_read_register(struct ck_brlock *br, struct ck_brlock_reader *reader) in ck_brlock_read_register() argument
145 reader->n_readers = 0; in ck_brlock_read_register()
146 reader->previous = NULL; in ck_brlock_read_register()
151 reader->next = ck_pr_load_ptr(&br->readers); in ck_brlock_read_register()
152 if (reader->next != NULL) in ck_brlock_read_register()
153 reader->next->previous = reader; in ck_brlock_read_register()
154 ck_pr_store_ptr(&br->readers, reader); in ck_brlock_read_register()
[all …]
/freebsd-src/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.getOffset(); in visitKnownMemberImpl()
153 Mapping.Reader.setOffset(Mapping.StartOffset); in visitKnownMemberImpl()
154 if (auto EC = Mapping.Reader.readBytes(CVR.Data, RecordLength)) 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-src/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 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 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 …]
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 DPublicsStream.cpp56 BinaryStreamReader Reader(*Stream); in reload() local
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()
/freebsd-src/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordReader.h37 ASTReader *Reader;
47 ASTRecordReader(ASTReader &Reader, ModuleFile &F) in ASTRecordReader()
48 : DataStreamBasicReader(Reader.getContext()), Reader(&Reader), F(&F) {}
58 /// Retrieve the AST context that this AST reader supplements. in getContext()
59 ASTContext &getContext() { return Reader->getContext(); }
92 return Reader->getGlobalSubmoduleID(*F, LocalID); in getGlobalSubmoduleID()
97 return Reader->getSubmodule(GlobalID); in getSubmodule()
102 return Reader in readLexicalDeclContextStorage()
36 ASTReader *Reader; global() variable
46 ASTRecordReader(ASTReader & Reader,ModuleFile & F) ASTRecordReader() argument
[all...]
/freebsd-src/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
[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 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 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 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-src/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderInternals.h1 //===- ASTReaderInternals.h - AST Reader Internals --------------*- C++ -*-===//
9 // This file provides internal definitions used in the AST reader.
39 namespace reader {
44 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(Reade argument
191 ASTReader &Reader; global() variable
210 ASTSelectorLookupTrait(ASTReader & Reader,ModuleFile & F) ASTSelectorLookupTrait() argument
244 ASTReader &Reader; global() variable
265 HeaderFileInfoTrait(ASTReader & Reader,ModuleFile & M,HeaderSearch * HS,const char * FrameworkStrings) HeaderFileInfoTrait() argument
[all...]
H A DASTReaderDecl.cpp85 ASTReader &Reader;
176 static NamedDecl *getAnonymousDeclForMerging(ASTReader &Reader,
179 static void setAnonymousDeclForMerging(ASTReader &Reader, DeclContext *DC,
186 static CXXRecordDecl *getOrFakePrimaryClassDefinition(ASTReader &Reader,
216 ASTReader &Reader;
224 FindExistingResult(ASTReader &Reader) : Reader(Reader) {}
226 FindExistingResult(ASTReader &Reader, NamedDecl *New, NamedDecl *Existing,
229 : Reader(Reade argument
84 ASTReader &Reader; global() member in clang::ASTDeclReader
219 ASTReader &Reader; global() member in clang::ASTDeclReader::FindExistingResult
227 FindExistingResult(ASTReader & Reader) FindExistingResult() argument
262 ASTDeclReader(ASTReader & Reader,ASTRecordReader & Record,ASTReader::RecordLocation Loc,DeclID thisDeclID,SourceLocation ThisDeclLoc) ASTDeclReader() argument
3098 ASTRecordReader &Reader; global() member in __anonaf7a990c0511::AttrReader
3101 AttrReader(ASTRecordReader & Reader) AttrReader() argument
3265 getOrFakePrimaryClassDefinition(ASTReader & Reader,CXXRecordDecl * RD) getOrFakePrimaryClassDefinition() argument
3292 getPrimaryContextForMerging(ASTReader & Reader,DeclContext * DC) getPrimaryContextForMerging() argument
3400 getAnonymousDeclForMerging(ASTReader & Reader,DeclContext * DC,unsigned Index) getAnonymousDeclForMerging() argument
3427 setAnonymousDeclForMerging(ASTReader & Reader,DeclContext * DC,unsigned Index,NamedDecl * D) setAnonymousDeclForMerging() argument
3562 mergeInheritableAttributes(ASTReader & Reader,Decl * D,Decl * Previous) mergeInheritableAttributes() argument
3583 attachPreviousDeclImpl(ASTReader & Reader,Redeclarable<DeclT> * D,Decl * Previous,Decl * Canon) attachPreviousDeclImpl() argument
3593 attachPreviousDeclImpl(ASTReader & Reader,Redeclarable<VarDecl> * D,Decl * Previous,Decl * Canon) attachPreviousDeclImpl() argument
3621 attachPreviousDeclImpl(ASTReader & Reader,Redeclarable<FunctionDecl> * D,Decl * Previous,Decl * Canon) attachPreviousDeclImpl() argument
3676 attachPreviousDeclImpl(ASTReader & Reader,...) attachPreviousDeclImpl() argument
3713 attachPreviousDecl(ASTReader & Reader,Decl * D,Decl * Previous,Decl * Canon) attachPreviousDecl() argument
3813 ASTDeclReader Reader(*this, Record, Loc, ID, DeclLoc); ReadDeclRecord() local
4235 ASTDeclReader Reader(*this, Record, RecordLocation(F, Offset), ID, loadDeclUpdateRecords() local
4333 ASTReader &Reader; global() member in __anonaf7a990c0811::ObjCCategoriesVisitor
4380 ObjCCategoriesVisitor(ASTReader & Reader,ObjCInterfaceDecl * Interface,llvm::SmallPtrSetImpl<ObjCCategoryDecl * > & Deserialized,serialization::GlobalDeclID InterfaceID,unsigned PreviousGeneration) ObjCCategoriesVisitor() argument
[all...]
/freebsd-src/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()
75 // Set the predefines buffer as suggested by the PCH reader. 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
[all …]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackReader.h1 //===- MsgPackReader.h - Simple MsgPack reader ------------------*- C++ -*-===//
10 /// This is a MessagePack reader.
18 /// msgpack::Reader MPReader(input);
104 class Reader {
106 /// Construct a reader, keeping a reference to the \p InputBuffer.
107 Reader(MemoryBufferRef InputBuffer);
108 /// Construct a reader, keeping a reference to the \p Input.
109 Reader(StringRef Input);
111 Reader(const Reader &) = delete;
112 Reader &operator=(const Reader &) = delete;
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMappingReader.h1 //===- CoverageMappingReader.h - Code coverage mapping reader ---*- C++ -*-===//
45 CoverageMappingReader *Reader; variable
59 : Reader(nullptr), ReadErr(coveragemap_error::success) {} in CoverageMappingIterator()
61 CoverageMappingIterator(CoverageMappingReader *Reader) in CoverageMappingIterator() argument
62 : Reader(Reader), ReadErr(coveragemap_error::success) { in CoverageMappingIterator()
76 return Reader == RHS.Reader;
79 return Reader != RHS.Reader;
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp1 //===- MsgPackReader.cpp - Simple MsgPack reader ----------------*- C++ -*-===//
10 /// This file implements a MessagePack reader.
23 Reader::Reader(MemoryBufferRef InputBuffer) in Reader() function in Reader
27 Reader::Reader(StringRef Input) : Reader({Input, "MsgPack"}) {} in Reader() function in Reader
29 Expected<bool> Reader::read(Object &Obj) { in read()
184 template <class T> Expected<bool> Reader::readRaw(Object &Obj) { in readRaw()
194 template <class T> Expected<bool> Reader::readInt(Object &Obj) { in readInt()
204 template <class T> Expected<bool> Reader::readUInt(Object &Obj) { in readUInt()
214 template <class T> Expected<bool> Reader::readLength(Object &Obj) { in readLength()
224 template <class T> Expected<bool> Reader::readExt(Object &Obj) { in readExt()
[all …]
/freebsd-src/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp59 if (auto Reader = Entry.second.dyn_cast<APINotesReader *>()) in ~APINotesManager()
60 delete Reader; in ~APINotesManager()
101 auto Reader = APINotesReader::Create(std::move(CompiledBuffer), SwiftVersion); in loadAPINotes()
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()
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()
131 Readers[HeaderDir] = Reader in loadAPINotes()
58 if (auto Reader = Entry.second.dyn_cast<APINotesReader *>()) ~APINotesManager() local
100 auto Reader = APINotesReader::Create(std::move(CompiledBuffer), SwiftVersion); loadAPINotes() local
121 auto Reader = APINotesReader::Create(std::move(CompiledBuffer), SwiftVersion); loadAPINotes() local
129 if (auto Reader = loadAPINotes(APINotesFile)) { loadAPINotes() local
317 auto Reader = loadAPINotes(Buf); loadCurrentModuleAPINotesFromBuffer() local
378 if (auto Reader = Known->second.dyn_cast<APINotesReader *>()) findAPINotes() local
415 if (auto Reader = Readers[*Dir].dyn_cast<APINotesReader *>()) findAPINotes() local
430 if (auto Reader = Readers[*Dir].dyn_cast<APINotesReader *>()) findAPINotes() local
[all...]
/freebsd-src/share/misc/
H A Dusb_vendors51 0600 eBook Reader
59 0112 Card Reader
118 2049 Stripe Snoop Magnetic Stripe Reader
239 0223 Digital Drive Flash Reader
356 1539 Mini Magnetic Stripe Reader
452 2724 Magnetic Stripe Reader IDRA-334133-HP
485 3102 PhotoSmart P1100 Printer w/ Card Reader
800 5635 M5635 Flash Card Reader
1221 6510 Weltrend Bar Code Reader
1224 6543 Manhattan Magnetic Card Strip Reader
[all...]

12345678910>>...29