LLVM 22.0.0git
|
Emit unit's abbreviations. More...
Classes | |
struct | llvm::dwarf_linker::parallel::DwarfUnit::AccelInfo |
This structure keeps fields which would be used for creating accelerator table. More... |
Emit unit's abbreviations.
|
strong |
Enumerator | |
---|---|
None | |
Name | |
Namespace | |
ObjC | |
Type |
Definition at line 118 of file DWARFLinkerUnit.h.
|
inlineoverridevirtual |
Add kind of accelerator tables to be generated.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 99 of file DWARFLinkerImpl.h.
References assert(), GlobalData, and llvm::is_contained().
|
inline |
Allocate Size bytes of Alignment aligned memory.
Definition at line 43 of file PerThreadBumpPtrAllocator.h.
|
inline |
Deallocate Ptr to Size bytes of memory allocated by this allocator.
Definition at line 50 of file PerThreadBumpPtrAllocator.h.
Error DwarfUnit::emitAbbreviations | ( | ) |
Definition at line 41 of file DWARFLinkerUnit.cpp.
References llvm::dwarf_linker::DebugAbbrev, emitDwarfAbbrevEntry(), llvm::encodeULEB128(), getAbbreviations(), llvm::dwarf_linker::parallel::OutputSections::getOrCreateSectionDescriptor(), llvm::dwarf_linker::parallel::SectionDescriptor::OS, and llvm::Error::success().
Referenced by llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(), and llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit().
Emit .debug_info section for unit DIEs.
Definition at line 90 of file DWARFLinkerUnit.cpp.
References llvm::dwarf_linker::DebugAbbrev, llvm::dwarf_linker::DebugInfo, Emitter, llvm::dwarf_linker::parallel::OutputSections::getFormParams(), llvm::dwarf_linker::parallel::OutputSections::getOrCreateSectionDescriptor(), getOutUnitDIE(), llvm::dwarf_linker::DWARFLinkerBase::Object, llvm::dwarf_linker::parallel::SectionDescriptor::OS, OutUnitDIE, llvm::dwarf_linker::parallel::SectionDescriptor::setSizesForSectionCreatedByAsmPrinter(), and llvm::Error::success().
Referenced by llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(), and llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit().
Error DwarfUnit::emitDebugLine | ( | const Triple & | TargetTriple, |
const DWARFDebugLine::LineTable & | OutLineTable ) |
Emit .debug_line section.
Definition at line 121 of file DWARFLinkerUnit.cpp.
References llvm::dwarf_linker::parallel::DebugLineSectionEmitter::emit().
Referenced by llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmitLineTable(), and llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit().
Error DwarfUnit::emitDebugStringOffsetSection | ( | ) |
Emit the .debug_str_offsets section for current unit.
Definition at line 128 of file DWARFLinkerUnit.cpp.
References llvm::dwarf_linker::parallel::SectionDescriptor::apply(), DebugStringIndexMap, llvm::dwarf_linker::DebugStrOffsets, llvm::dwarf_linker::parallel::SectionDescriptor::emitIntVal(), llvm::dwarf_linker::parallel::SectionDescriptor::emitOffset(), llvm::dwarf_linker::parallel::SectionDescriptor::emitUnitLength(), llvm::dwarf::FormParams::getDwarfOffsetByteSize(), llvm::dwarf_linker::parallel::SectionDescriptorBase::getFormParams(), llvm::dwarf_linker::parallel::OutputSections::getOrCreateSectionDescriptor(), llvm::dwarf_linker::parallel::OutputSections::getVersion(), llvm::dwarf_linker::parallel::SectionDescriptor::OS, llvm::String, llvm::Error::success(), and llvm::raw_ostream::tell().
Referenced by llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(), and llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit().
void DwarfUnit::emitPubAccelerators | ( | ) |
Emit .debug_pubnames and .debug_pubtypes for Unit
.
Definition at line 200 of file DWARFLinkerUnit.cpp.
References llvm::dwarf_linker::parallel::SectionDescriptor::apply(), llvm::dwarf_linker::DebugPubNames, llvm::dwarf_linker::DebugPubTypes, llvm::dwarf_linker::parallel::SectionDescriptor::emitIntVal(), emitPubAcceleratorEntry(), forEachAcceleratorRecord(), llvm::dwarf::FormParams::getDwarfOffsetByteSize(), llvm::dwarf_linker::parallel::SectionDescriptorBase::getFormParams(), llvm::dwarf_linker::parallel::OutputSections::getOrCreateSectionDescriptor(), Name, llvm::dwarf_linker::parallel::SectionDescriptor::OS, llvm::raw_ostream::tell(), and Type.
Referenced by llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(), and llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit().
|
inline |
Definition at line 556 of file DWARFLinkerCompileUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), and llvm::dwarf_linker::parallel::OutputSections::GlobalData.
|
inline |
Definition at line 560 of file DWARFLinkerCompileUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, llvm::handleAllErrors(), and Info.
Definition at line 111 of file DWARFLinkerUnit.h.
References getUnitName(), and llvm::dwarf_linker::parallel::OutputSections::GlobalData.
|
pure virtual |
Enumerates accelerator data.
Implemented in llvm::dwarf_linker::parallel::CompileUnit, and llvm::dwarf_linker::parallel::TypeUnit.
Referenced by emitPubAccelerators().
|
inline |
Return allocated size by all allocators.
Definition at line 86 of file PerThreadBumpPtrAllocator.h.
Referenced by llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::getBytesAllocated().
|
inline |
Definition at line 62 of file PerThreadBumpPtrAllocator.h.
Referenced by llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::getBytesAllocated(), llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::getTotalMemory(), llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::PrintStats(), llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::Reset(), and llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::setRedZoneSize().
|
inline |
Return allocator corresponding to the current thread.
Definition at line 56 of file PerThreadBumpPtrAllocator.h.
|
inline |
Return total memory size used by all allocators.
Definition at line 76 of file PerThreadBumpPtrAllocator.h.
Referenced by llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::getTotalMemory().
|
inline |
Print statistic for each allocator.
Definition at line 102 of file PerThreadBumpPtrAllocator.h.
|
inline |
Reset state of allocators.
Definition at line 70 of file PerThreadBumpPtrAllocator.h.
Referenced by llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::Reset().
|
inlineoverridevirtual |
Allow generating valid, but non-deterministic output.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 83 of file DWARFLinkerImpl.h.
References GlobalData.
|
overridevirtual |
Set estimated objects files amount, for preliminary data allocation.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 85 of file DWARFLinkerImpl.cpp.
References ObjectContexts.
|
inlineoverridevirtual |
Set verification handler which would be used to report verification errors.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 115 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Set to keep the enclosing function for a static variable.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 89 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Do not unique types according to ODR.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 74 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Use specified number of threads for parallel files linking.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 94 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Set prefix map for objects.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 125 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Set prepend path for clang modules.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 105 of file DWARFLinkerImpl.h.
References GlobalData.
|
inline |
Set red zone for all allocators.
Definition at line 96 of file PerThreadBumpPtrAllocator.h.
Referenced by llvm::parallel::PerThreadAllocator< BumpPtrAllocator >::setRedZoneSize().
|
inlineoverridevirtual |
Print statistics to standard output.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 64 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Set map for Swift interfaces.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 120 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Set target DWARF version.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 130 of file DWARFLinkerImpl.h.
References llvm::createStringError(), GlobalData, and llvm::Error::success().
|
inlineoverridevirtual |
Update index tables only(do not modify rest of DWARF).
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 77 of file DWARFLinkerImpl.h.
References GlobalData.
|
inlineoverridevirtual |
Allows to generate log of linking process to the standard output.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 59 of file DWARFLinkerImpl.h.
References GlobalData, and llvm::Verbose.
|
inlineoverridevirtual |
Verify the input DWARF.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 69 of file DWARFLinkerImpl.h.
References GlobalData, and Verify.
|
inline |
Definition at line 546 of file DWARFLinkerCompileUnit.h.
References getOrigUnit(), llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, and llvm::Warning.
|
inline |
Definition at line 536 of file DWARFLinkerCompileUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, and llvm::Warning.
Referenced by analyzeImportedModule(), cloneAndEmitLineTable(), cloneDieAttrExpression(), and getDirAndFilenameFromLineTable().
|
inline |
Definition at line 540 of file DWARFLinkerCompileUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, llvm::handleAllErrors(), Info, and llvm::Warning.
Definition at line 109 of file DWARFLinkerUnit.h.
References getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, and llvm::Warning.