/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | MetadataLoader.cpp | 1 //===- MetadataLoader.cpp - Internal BitcodeReader implementation ---------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 69 #define DEBUG_TYPE "bitcode-reader" 78 "import-full-type-definitions", cl::init(false), cl::Hidden, 82 "disable-ondemand-mds-loading", cl::init(false), cl::Hidden, 83 cl::desc("Force disable the lazy-loading on-demand of metadata when " 126 unsigned size() const { return MetadataPtrs.size(); } in size() function in __anon7965f5d30111::BitcodeReaderMetadataList 135 assert(i < MetadataPtrs.size()); in operator []() 140 if (I < MetadataPtrs.size()) in lookup() [all …]
|
H A D | BitcodeReader.cpp | 1 //===- BitcodeReader.cpp - Internal BitcodeReader implementation ----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 #include "llvm/Config/llvm-config.h" 96 "print-summary-global-ids", cl::init(false), cl::Hidden, 101 "expand-constant-exprs", cl::Hidden, 110 "load-bitcode-into-experimental-debuginfo-iterators", cl::Hidden, 159 // If we have a wrapper header, parse it and ignore the non-bc file contents. in initStream() 172 /// Convert a string from a record into an std::string, return true on failure. 174 static bool convertToString(ArrayRef<uint64_t> Record, unsigned Idx, in convertToString() argument [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | ndef.c | 2 * NDEF(NFC Data Exchange Format) routines for Wi-Fi Protected Setup 3 * Reference is "NFCForum-TS-NDEF_1.0 2006-07-24". 4 * Copyright (c) 2009-2012, Masashi Honma <masashi.honma@gmail.com> 35 static int ndef_parse_record(const u8 *data, u32 size, in ndef_parse_record() argument 36 struct ndef_record *record) in ndef_parse_record() argument 40 if (size < 2) in ndef_parse_record() 41 return -1; in ndef_parse_record() 42 record->type_length = *pos++; in ndef_parse_record() 44 if (size < 3) in ndef_parse_record() 45 return -1; in ndef_parse_record() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | MergingTypeTableBuilder.cpp | 1 //===- MergingTypeTableBuilder.cpp ----------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 25 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 61 return Index.toArrayIndex() < SeenRecords.size(); in contains() 64 uint32_t MergingTypeTableBuilder::size() { return SeenRecords.size(); } in size() function in MergingTypeTableBuilder 66 uint32_t MergingTypeTableBuilder::capacity() { return SeenRecords.size(); } in capacity() 79 uint8_t *Stable = Alloc.Allocate<uint8_t>(Data.size()); in stabilize() 80 memcpy(Stable, Data.data(), Data.size()); in stabilize() 81 return ArrayRef(Stable, Data.size()); in stabilize() [all …]
|
H A D | GlobalTypeTableBuilder.cpp | 1 //===- GlobalTypeTableBuilder.cpp -----------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 60 return Index.toArrayIndex() < SeenRecords.size(); in contains() 63 uint32_t GlobalTypeTableBuilder::size() { return SeenRecords.size(); } in size() function in GlobalTypeTableBuilder 65 uint32_t GlobalTypeTableBuilder::capacity() { return SeenRecords.size(); } in capacity() 82 uint8_t *Stable = Alloc.Allocate<uint8_t>(Data.size()); in stabilize() 83 memcpy(Stable, Data.data(), Data.size()); in stabilize() 84 return ArrayRef(Stable, Data.size()); in stabilize() [all …]
|
H A D | TypeRecordMapping.cpp | 1 //===- TypeRecordMapping.cpp ------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 156 Method.VFTableOffset = -1; in operator ()() 188 size_t BytesNeeded = Name.size() + UniqueName.size() + 2; in mapNameAndUniqueName() 197 assert(UniqueB.size() == 36); in mapNameAndUniqueName() 202 size_t TakeN = std::min(MaxTakeN, BytesLeft - UniqueB.size() - 2) - 32; in mapNameAndUniqueName() 217 auto N = StringRef(Name).take_front(BytesLeft - 1); in mapNameAndUniqueName() 222 // record. Truncating large names are done during writing, so its not in mapNameAndUniqueName() 237 // split with continuation records. All other record types cannot be in visitTypeBegin() [all …]
|
H A D | AppendingTypeTableBuilder.cpp | 1 //===- AppendingTypeTableBuilder.cpp --------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 return TypeIndex::fromArrayIndex(SeenRecords.size()); in nextTypeIndex() 57 return Index.toArrayIndex() < SeenRecords.size(); in contains() 60 uint32_t AppendingTypeTableBuilder::size() { return SeenRecords.size(); } in size() function in AppendingTypeTableBuilder 62 uint32_t AppendingTypeTableBuilder::capacity() { return SeenRecords.size(); } in capacity() 71 ArrayRef<uint8_t> Record) { in stabilize() argument 72 uint8_t *Stable = RecordStorage.Allocate<uint8_t>(Record.size()); in stabilize() 73 memcpy(Stable, Record.data(), Record.size()); in stabilize() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | SerializedDiagnosticReader.cpp | 1 //===- SerializedDiagnosticReader.cpp - Reads diagnostics -----------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 110 Record = 1, enumerator 128 // We found a record. in skipUntilRecordOrBlock() 130 return Cursor::Record; in skipUntilRecordOrBlock() 179 case Cursor::Record: in readMetaBlock() 194 SmallVector<uint64_t, 1> Record; in readMetaBlock() local 195 Expected<unsigned> MaybeRecordID = Stream.readRecord(BlockOrCode, Record); in readMetaBlock() 201 if (Record.size() < 1) in readMetaBlock() [all …]
|
H A D | SerializedDiagnosticPrinter.cpp | 1 //===--- SerializedDiagnosticPrinter.cpp - Serializer for diagnostics -----===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 110 std::error_code visitFilenameRecord(unsigned ID, unsigned Size, 121 std::error_code adjustSourceLocFilename(RecordData &Record, 124 void adjustAbbrevID(RecordData &Record, AbbrevLookup &Lookup, 127 void writeRecordWithAbbrev(unsigned ID, RecordData &Record); 129 void writeRecordWithBlob(unsigned ID, RecordData &Record, StringRef Blob); 187 /// Emit a DIAG record. 197 /// Emit a record for a CharSourceRange. [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | MemProf.cpp | 28 size_t Size = 0; in serializedSizeV0() local 30 Size += sizeof(uint64_t); in serializedSizeV0() 32 Size += sizeof(FrameId) * IAI.CallStack.size(); in serializedSizeV0() 33 // The size of the payload. in serializedSizeV0() 34 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV0() 35 return Size; in serializedSizeV0() 40 size_t Size = 0; in serializedSizeV2() local 42 Size += sizeof(CallStackId); in serializedSizeV2() 43 // The size of the payload. in serializedSizeV2() 44 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV2() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/Breakpad/ |
H A D | SymbolFileBreakpad.cpp | 1 //===-- SymbolFileBreakpad.cpp --------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 37 LineIterator(ObjectFile &obj, Record::Kind section_type) in LineIterator() 44 LineIterator(ObjectFile &obj, Record::Kind section_type, Bookmark bookmark); 49 m_next_section_idx(m_obj->GetSectionList()->GetNumSections(0)), in LineIterator() 84 if (m_next_line >= m_section_text.size()) in FindNextLine() 91 Record::Kind section_type, in LineIterator() 96 *obj.GetSectionList()->GetSectionAtIndex(m_next_section_idx - 1); in LineIterator() 103 assert(m_current_line < m_section_text.size()); in LineIterator() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/XRay/ |
H A D | RecordInitializer.cpp | 1 //===- FDRRecordProducer.cpp - XRay FDR Mode Record Producer --------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 20 R.Size = E.getU64(&OffsetPtr); in visit() 26 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit() 35 "Invalid offset for a wallclock record (%" PRId64 ").", OffsetPtr); in visit() 53 // Align to metadata record size boundary. in visit() 54 assert(OffsetPtr - BeginOffset <= MetadataRecord::kMetadataBodySize); in visit() 55 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - BeginOffset); in visit() 64 "Invalid offset for a new cpu id record (%" PRId64 ").", OffsetPtr); in visit() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/XRay/ |
H A D | FDRRecords.h | 1 //===- FDRRecords.h - XRay Flight Data Recorder Mode Records --------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 31 class Record { 56 Record(const Record &) = delete; 57 Record(Record &&) = delete; 58 Record &operator=(const Record &) = delete; 59 Record &operator=(Record &&) = delete; 60 explicit Record(RecordKind T) : T(T) {} in Record() function [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | RecordLayout.h | 1 //===- RecordLayout.h - Layout information for a struct/union ---*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 31 /// ASTRecordLayout - 36 /// ObjCInterfaceDecl. FIXME - Find appropriate name. 41 /// The offset to this virtual base in the complete-object layout 64 /// Size - Size of record in characters. 65 CharUnits Size; variable 67 /// DataSize - Size of record in characters without tail padding. [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | GOFFObjectWriter.cpp | 1 //===- lib/MC/GOFFObjectWriter.cpp - GOFF File Writer ---------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 24 #define DEBUG_TYPE "goff-writer" 28 // The standard System/390 convention is to name the high-order (leftmost) bit 39 uint8_t Mask = ((1 << Length) - 1) << (8 - BitIndex - Length); in bits() 40 Value = Value << (8 - BitIndex - Length); in bits() 60 // Flag: This record is continued. 63 // Flag: This record is a continuation. [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/ |
H A D | BreakpadRecords.h | 1 //===-- BreakpadRecords.h ------------------------------------- -*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 13 #include "lldb/lldb-types.h" 22 class Record { 37 /// Attempt to guess the kind of the record present in the argument without 43 Record(Kind K) : TheKind(K) {} in Record() function 45 ~Record() = default; 54 llvm::StringRef toString(Record::Kind K); 55 inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, Record::Kind K) { [all …]
|
H A D | BreakpadRecords.cpp | 1 //===-- BreakpadRecords.cpp -------- 269 parsePublicOrFunc(llvm::StringRef Line,bool & Multiple,lldb::addr_t & Address,lldb::addr_t * Size,lldb::addr_t & ParamSize,llvm::StringRef & Name) parsePublicOrFunc() argument 308 lldb::addr_t Address, Size, ParamSize; parse() local 349 InlineRecord Record = InlineRecord(InlineNestLevel, CallSiteLineNum, parse() local 355 lldb::addr_t Size; parse() local 387 lldb::addr_t Size; parse() local 459 std::optional<lldb::addr_t> Size; parse() local [all...] |
/freebsd/lib/libc/db/man/ |
H A D | recno.3 | 33 .Nd "record number database access method" 41 One of the supported file formats is record number files. 48 The record number data structure is either variable or fixed-length 49 records stored in a flat-file format, accessed by the logical record 51 The existence of record number five implies the existence of records 52 one through four, and the deletion of record number one causes 53 record number five to be renumbered to record number four, as well 54 as the cursor, if positioned after record number one, to shift down 55 one record. 64 .Bd -literal [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTWriter.cpp | 1 //===- ASTWriter.cpp - AST File Writer ------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 130 sizeof(T) * v.size()); in bytes() 136 sizeof(T) * v.size()); in bytes() 141 Str.reserve(V.size() / 8); in bytes() 142 for (unsigned I = 0, E = V.size(); I < E;) { in bytes() 151 //===----------------------------------------------------------------------===// 153 //===----------------------------------------------------------------------===// [all …]
|
H A D | GlobalModuleIndex.cpp | 1 //===--- GlobalModuleIndex.cpp - Global Module Index ------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 37 //----------------------------------------------------------------------------// 39 //----------------------------------------------------------------------------// 46 /// Describes the record types in the index. 64 //----------------------------------------------------------------------------// 66 //----------------------------------------------------------------------------// 70 /// Trait used to read the identifier index from the on-disk hash [all …]
|
H A D | ASTReader.cpp | 1 //===- ASTReader.cpp - AST File Reader ------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 154 //===----------------------------------------------------------------------===// 156 //===----------------------------------------------------------------------===// 160 return First->ReadFullVersionInformation(FullVersion) || in ReadFullVersionInformation() 161 Second->ReadFullVersionInformation(FullVersion); in ReadFullVersionInformation() 165 First->ReadModuleName(ModuleName); in ReadModuleName() 166 Second->ReadModuleName(ModuleName); in ReadModuleName() [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data_tlv.c | 1 /*- 55 * The CFE-defined TLV NVRAM format is used on the WGT634U. 67 /** Minimal TLV_ENV record header */ 70 uint8_t size; member 73 /** Minimal TLV_ENV record */ 82 (((_env)->hdr.size < sizeof((_env)->flags)) ? 0 : \ 83 ((_env)->hdr.size - sizeof((_env)->flags))) 87 (UINT8_MAX - sizeof(uint8_t) /* flags */) 91 size_t *size); 146 /* First entry should be a variable record (which we statically in bhnd_nvram_tlv_probe() [all …]
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | ClangOpcodesEmitter.cpp | 1 //=== ClangOpcodesEmitter.cpp - constexpr interpreter opcodes ---*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 15 #include "llvm/TableGen/Record.h" 28 : Records(R), NumTypes(Records.getAllDerivedDefinitions("Type").size()) {} in ClangOpcodesEmitter() 35 void EmitEnum(raw_ostream &OS, StringRef N, const Record *R); 38 void EmitInterp(raw_ostream &OS, StringRef N, const Record *R); 41 void EmitDisasm(raw_ostream &OS, StringRef N, const Record *R); 44 void EmitEmitter(raw_ostream &OS, StringRef N, const Record *R); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 1 //===- Bitcode/Writer/BitcodeWriter.cpp - Bitcode Writer ------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 31 #include "llvm/Config/llvm-config.h" 88 IndexThreshold("bitcode-mdindex-threshold", cl::Hidden, cl::init(25), 90 "to enable lazy-loading")); 92 "bitcode-flush-threshold", cl::Hidden, cl::init(512), 96 "write-relbf-to-summary", cl::Hidden, cl::init(false), 172 /// Optional per-module index to write for ThinLTO. [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | GOFFObjectFile.cpp | 1 //===- GOFFObjectFile.cpp - GOFF object file implementation -----*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 39 // Object file isn't the right size, bail out early. in GOFFObjectFile() 43 "object file is not the right size. Must be a multiple " in GOFFObjectFile() 53 "object file must start with HDR record"); in GOFFObjectFile() 56 if ((base()[Object.getBufferSize() - GOFF::RecordLength + 1] & 0xF0) >> 4 != in GOFFObjectFile() 59 "object file must end with END record"); in GOFFObjectFile() 74 size_t RecordNum = (I - base()) / GOFF::RecordLength; in GOFFObjectFile() [all …]
|