Home
last modified time | relevance | path

Searched refs:Abbrev (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DBitstreamRemarkSerializer.cpp56 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in setupMetaBlockInfo() local
57 Abbrev->Add(BitCodeAbbrevOp(RECORD_META_CONTAINER_INFO)); in setupMetaBlockInfo()
58 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Version. in setupMetaBlockInfo()
59 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 2)); // Type. in setupMetaBlockInfo()
61 Bitstream.EmitBlockInfoAbbrev(META_BLOCK_ID, Abbrev); in setupMetaBlockInfo()
68 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in setupMetaRemarkVersion() local
69 Abbrev->Add(BitCodeAbbrevOp(RECORD_META_REMARK_VERSION)); in setupMetaRemarkVersion()
70 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Version. in setupMetaRemarkVersion()
72 Bitstream.EmitBlockInfoAbbrev(META_BLOCK_ID, Abbrev); in setupMetaRemarkVersion()
87 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in setupMetaStrTab() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DSerializedDiagnosticPrinter.cpp412 static void AddSourceLocationAbbrev(llvm::BitCodeAbbrev &Abbrev) { in AddSourceLocationAbbrev() argument
414 Abbrev.Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // File ID. in AddSourceLocationAbbrev()
415 Abbrev.Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Line. in AddSourceLocationAbbrev()
416 Abbrev.Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Column. in AddSourceLocationAbbrev()
417 Abbrev.Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Offset; in AddSourceLocationAbbrev()
420 static void AddRangeLocationAbbrev(llvm::BitCodeAbbrev &Abbrev) { in AddRangeLocationAbbrev() argument
421 AddSourceLocationAbbrev(Abbrev); in AddRangeLocationAbbrev()
422 AddSourceLocationAbbrev(Abbrev); in AddRangeLocationAbbrev()
439 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in EmitBlockInfoBlock() local
440 Abbrev->Add(BitCodeAbbrevOp(RECORD_VERSION)); in EmitBlockInfoBlock()
[all …]
H A DTestModuleFileExtension.cpp32 auto Abbrev = Stream.EmitAbbrev(std::move(Abv)); in writeExtensionContents() local
43 Stream.EmitRecordWithBlob(Abbrev, Record, Message); in writeExtensionContents()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDWARFLinkerUnit.cpp17 void DwarfUnit::assignAbbrev(DIEAbbrev &Abbrev) { in assignAbbrev() argument
20 Abbrev.Profile(ID); in assignAbbrev()
27 Abbrev.setNumber(InSet->getNumber()); in assignAbbrev()
31 std::make_unique<DIEAbbrev>(Abbrev.getTag(), Abbrev.hasChildren())); in assignAbbrev()
32 for (const auto &Attr : Abbrev.getData()) in assignAbbrev()
36 Abbrev.setNumber(Abbreviations.size()); in assignAbbrev()
50 for (const auto &Abbrev : Abbrevs) in emitAbbreviations() local
51 emitDwarfAbbrevEntry(*Abbrev, AbbrevSection); in emitAbbreviations()
59 void DwarfUnit::emitDwarfAbbrevEntry(const DIEAbbrev &Abbrev, in emitDwarfAbbrevEntry() argument
62 encodeULEB128(Abbrev.getNumber(), AbbrevSection.OS); in emitDwarfAbbrevEntry()
[all …]
H A DDWARFLinkerUnit.h66 void assignAbbrev(DIEAbbrev &Abbrev);
166 void emitDwarfAbbrevEntry(const DIEAbbrev &Abbrev,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp1294 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in writeUnhashedControlBlock() local
1295 Abbrev->Add(BitCodeAbbrevOp(AST_BLOCK_HASH)); in writeUnhashedControlBlock()
1296 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); in writeUnhashedControlBlock()
1297 unsigned ASTBlockHashAbbrev = Stream.EmitAbbrev(std::move(Abbrev)); in writeUnhashedControlBlock()
1305 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in writeUnhashedControlBlock() local
1306 Abbrev->Add(BitCodeAbbrevOp(SIGNATURE)); in writeUnhashedControlBlock()
1307 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); in writeUnhashedControlBlock()
1308 unsigned SignatureAbbrev = Stream.EmitAbbrev(std::move(Abbrev)); in writeUnhashedControlBlock()
1371 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in writeUnhashedControlBlock() local
1372 Abbrev->Add(BitCodeAbbrevOp(HEADER_SEARCH_ENTRY_USAGE)); in writeUnhashedControlBlock()
[all …]
H A DGlobalModuleIndex.cpp832 auto Abbrev = std::make_shared<BitCodeAbbrev>(); in writeIndex() local
833 Abbrev->Add(BitCodeAbbrevOp(IDENTIFIER_INDEX)); in writeIndex()
834 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); in writeIndex()
835 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); in writeIndex()
836 unsigned IDTableAbbrev = Stream.EmitAbbrev(std::move(Abbrev)); in writeIndex()
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitstream/
H A DBitstreamWriter.h459 void EmitRecordWithAbbrevImpl(unsigned Abbrev, ArrayRef<uintty> Vals, in EmitRecordWithAbbrevImpl() argument
463 unsigned AbbrevNo = Abbrev-bitc::FIRST_APPLICATION_ABBREV; in EmitRecordWithAbbrevImpl()
467 EmitCode(Abbrev); in EmitRecordWithAbbrevImpl()
571 void EmitRecord(unsigned Code, const Container &Vals, unsigned Abbrev = 0) {
572 if (!Abbrev) {
584 EmitRecordWithAbbrevImpl(Abbrev, ArrayRef(Vals), StringRef(), Code);
591 void EmitRecordWithAbbrev(unsigned Abbrev, const Container &Vals) { in EmitRecordWithAbbrev() argument
592 EmitRecordWithAbbrevImpl(Abbrev, ArrayRef(Vals), StringRef(), std::nullopt); in EmitRecordWithAbbrev()
601 void EmitRecordWithBlob(unsigned Abbrev, const Container &Vals, in EmitRecordWithBlob() argument
603 EmitRecordWithAbbrevImpl(Abbrev, ArrayRef(Vals), Blob, std::nullopt); in EmitRecordWithBlob()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp222 unsigned Abbrev);
224 unsigned &Abbrev);
226 SmallVectorImpl<uint64_t> &Record, unsigned &Abbrev) { in writeGenericDINode() argument
230 unsigned Abbrev);
233 unsigned Abbrev) { in writeDIGenericSubrange() argument
237 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
239 unsigned Abbrev);
241 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev) { in writeDIStringType() argument
245 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
247 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.h422 struct Abbrev { struct
428 Abbrev(uint32_t Code, dwarf::Tag Tag, uint64_t AbbrevOffset, in Abbrev() function
439 const Abbrev *Abbr;
441 Entry(const NameIndex &NameIdx, const Abbrev &Abbr);
497 const Abbrev &getAbbrev() const { return *Abbr; } in getAbbrev()
523 static Abbrev getEmptyKey();
524 static Abbrev getTombstoneKey();
528 static unsigned getHashValue(const Abbrev &Abbr) { in getHashValue()
531 static bool isEqual(uint32_t LHS, const Abbrev &RHS) { in isEqual()
534 static bool isEqual(const Abbrev &LHS, const Abbrev &RHS) { in isEqual()
[all …]
H A DDWARFVerifier.h119 unsigned verifyAbbrevSection(const DWARFDebugAbbrev *Abbrev);
272 const DWARFDebugNames::Abbrev &Abbr,
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp305 unsigned Abbrev);
308 unsigned &Abbrev);
311 SmallVectorImpl<uint64_t> &Record, unsigned &Abbrev);
313 unsigned Abbrev);
316 unsigned Abbrev);
318 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
320 unsigned Abbrev);
322 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
324 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
326 SmallVectorImpl<uint64_t> &Record, unsigned Abbrev);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDIE.cpp132 for (DIEAbbrev *Abbrev : Abbreviations) in ~DIEAbbrevSet()
133 Abbrev->~DIEAbbrev(); in ~DIEAbbrevSet()
139 DIEAbbrev Abbrev = Die.generateAbbrev(); in uniqueAbbreviation() local
140 Abbrev.Profile(ID); in uniqueAbbreviation()
150 DIEAbbrev *New = new (Alloc) DIEAbbrev(std::move(Abbrev)); in uniqueAbbreviation()
175 DIEAbbrev Abbrev(Tag, hasChildren()); in generateAbbrev() local
178 Abbrev.AddImplicitConstAttribute(V.getAttribute(), in generateAbbrev()
181 Abbrev.AddAttribute(V.getAttribute(), V.getForm()); in generateAbbrev()
182 return Abbrev; in generateAbbrev()
271 const DIEAbbrev &Abbrev = AbbrevSet.uniqueAbbreviation(*this); in computeOffsetsAndAbbrevs() local
[all …]
H A DAccelTable.cpp243 for (DebugNamesAbbrev *Abbrev : AbbreviationsVector) in ~Dwarf5AccelTableWriter()
244 Abbrev->~DebugNamesAbbrev(); in ~Dwarf5AccelTableWriter()
438 DebugNamesAbbrev Abbrev(Value->getDieTag()); in populateAbbrevsMap() local
440 Abbrev.addAttribute(EntryRet->Encoding); in populateAbbrevsMap()
441 Abbrev.addAttribute({dwarf::DW_IDX_die_offset, dwarf::DW_FORM_ref4}); in populateAbbrevsMap()
443 Abbrev.addAttribute({dwarf::DW_IDX_parent, *MaybeParentForm}); in populateAbbrevsMap()
445 Abbrev.Profile(ID); in populateAbbrevsMap()
453 new (Alloc) DebugNamesAbbrev(std::move(Abbrev)); in populateAbbrevsMap()
507 for (const DebugNamesAbbrev *Abbrev : AbbreviationsVector) { in emitAbbrevs() local
509 Asm->emitULEB128(Abbrev->getNumber()); in emitAbbrevs()
[all …]
H A DAsmPrinterDwarf.cpp299 void AsmPrinter::emitDwarfAbbrev(const DIEAbbrev &Abbrev) const { in emitDwarfAbbrev()
301 emitULEB128(Abbrev.getNumber(), "Abbreviation Code"); in emitDwarfAbbrev()
304 Abbrev.Emit(this); in emitDwarfAbbrev()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFAcceleratorTable.cpp479 void DWARFDebugNames::Abbrev::dump(ScopedPrinter &W) const { in dump()
495 static DWARFDebugNames::Abbrev sentinelAbbrev() { in sentinelAbbrev()
496 return DWARFDebugNames::Abbrev(0, dwarf::Tag(0), 0, {}); in sentinelAbbrev()
499 static bool isSentinel(const DWARFDebugNames::Abbrev &Abbr) { in isSentinel()
503 DWARFDebugNames::Abbrev DWARFDebugNames::AbbrevMapInfo::getEmptyKey() { in getEmptyKey()
507 DWARFDebugNames::Abbrev DWARFDebugNames::AbbrevMapInfo::getTombstoneKey() { in getTombstoneKey()
508 return DWARFDebugNames::Abbrev(~0, dwarf::Tag(0), 0, {}); in getTombstoneKey()
537 Expected<DWARFDebugNames::Abbrev>
552 return Abbrev(Code, dwarf::Tag(Tag), AbbrevOffset, std::move(*AttrEncOr)); in extractAbbrev()
604 DWARFDebugNames::Entry::Entry(const NameIndex &NameIdx, const Abbrev &Abbr) in Entry()
[all …]
H A DDWARFVerifier.cpp361 unsigned DWARFVerifier::verifyAbbrevSection(const DWARFDebugAbbrev *Abbrev) { in verifyAbbrevSection() argument
362 if (!Abbrev) in verifyAbbrevSection()
366 Abbrev->getAbbreviationDeclarationSet(0); in verifyAbbrevSection()
1403 const DWARFDebugNames::NameIndex &NI, const DWARFDebugNames::Abbrev &Abbr, in verifyNameIndexAttribute()
1492 for (const auto &Abbrev : NI.getAbbrevs()) { in verifyNameIndexAbbrevs() local
1493 StringRef TagName = dwarf::TagString(Abbrev.Tag); in verifyNameIndexAbbrevs()
1497 NI.getUnitOffset(), Abbrev.Code, Abbrev.Tag); in verifyNameIndexAbbrevs()
1500 for (const auto &AttrEnc : Abbrev.Attributes) { in verifyNameIndexAbbrevs()
1507 NI.getUnitOffset(), Abbrev.Code, AttrEnc.Index); in verifyNameIndexAbbrevs()
1512 NumErrors += verifyNameIndexAttribute(NI, Abbrev, AttrEnc); in verifyNameIndexAbbrevs()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h94 uint64_t Emit(unsigned Code, unsigned Abbrev = 0) {
97 Writer->Stream.EmitRecord(Code, *Record, Abbrev);
103 uint64_t EmitStmt(unsigned Code, unsigned Abbrev = 0) {
106 Writer->Stream.EmitRecord(Code, *Record, Abbrev);
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDWARFYAML.cpp120 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, in mapping()
121 DWARFYAML::Abbrev &Abbrev) { in mapping() argument
122 IO.mapOptional("Code", Abbrev.Code); in mapping()
123 IO.mapRequired("Tag", Abbrev.Tag); in mapping()
124 IO.mapRequired("Children", Abbrev.Children); in mapping()
125 IO.mapOptional("Attributes", Abbrev.Attributes); in mapping()
H A DDWARFEmitter.cpp108 for (const DWARFYAML::Abbrev &AbbrevDecl : DebugAbbrev[Index].Table) { in getAbbrevTableContentByIndex()
284 ArrayRef<DWARFYAML::Abbrev> AbbrevDecls( in writeDIE()
292 const DWARFYAML::Abbrev &Abbrev = AbbrevDecls[AbbrCode - 1]; in writeDIE() local
294 auto AbbrForm = Abbrev.Attributes.begin(); in writeDIE()
295 for (; FormVal != Entry.Values.end() && AbbrForm != Abbrev.Attributes.end(); in writeDIE()
725 for (const DWARFYAML::DebugNameAbbreviation &Abbrev : Abbrevs) { in emitDebugNamesAbbrev() local
726 encodeULEB128(Abbrev.Code, OS); in emitDebugNamesAbbrev()
727 encodeULEB128(Abbrev.Tag, OS); in emitDebugNamesAbbrev()
728 for (auto [Idx, Form] : Abbrev.Indices) { in emitDebugNamesAbbrev()
782 const auto *AbbrevIt = find_if(Abbrevs, [&](const auto &Abbrev) { in getNonZeroDataSizesFor() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinker.cpp
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DDWARFYAML.h37 struct Abbrev { struct
46 std::vector<Abbrev> Table; argument
275 LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::DWARFYAML::Abbrev) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument
317 template <> struct MappingTraits<DWARFYAML::Abbrev> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
318 static void mapping(IO &IO, DWARFYAML::Abbrev &Abbrev); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinker.cpp423 const auto *Abbrev = DIE.getAbbreviationDeclarationPtr(); in getVariableRelocAdjustment() local
428 Abbrev->findAttributeIndex(dwarf::DW_AT_location); in getVariableRelocAdjustment()
434 Abbrev->getAttributeOffsetFromIndex(*LocationIdx, DIE.getOffset(), *U); in getVariableRelocAdjustment()
438 Abbrev->getAttributeValueFromOffset(*LocationIdx, AttrOffset, *U); in getVariableRelocAdjustment()
513 const auto *Abbrev = DIE.getAbbreviationDeclarationPtr(); in shouldKeepVariableDIE() local
517 Abbrev->findAttributeIndex(dwarf::DW_AT_const_value)) { in shouldKeepVariableDIE()
752 const auto *Abbrev = Die.getAbbreviationDeclarationPtr(); in lookForRefDIEsToKeep() local
753 uint64_t Offset = Die.getOffset() + getULEB128Size(Abbrev->getCode()); in lookForRefDIEsToKeep()
756 for (const auto &AttrSpec : Abbrev->attributes()) { in lookForRefDIEsToKeep()
1010 void DWARFLinker::assignAbbrev(DIEAbbrev &Abbrev) { in assignAbbrev() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h384 auto Abbrev = std::make_shared<llvm::BitCodeAbbrev>();
385 detail::emitOps<IDField, Fields...>(*Abbrev);
386 return Stream.EmitAbbrev(std::move(Abbrev));
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAsmPrinter.h768 for (const auto &Abbrev : Abbrevs) in emitDwarfAbbrevs() local
769 emitDwarfAbbrev(*Abbrev); in emitDwarfAbbrevs()
775 void emitDwarfAbbrev(const DIEAbbrev &Abbrev) const;

12