LLVM 20.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 llvm::dwarf_linker::parallel::DWARFLinkerOptions::AccelTables, assert(), llvm::SmallVectorImpl< T >::emplace_back(), llvm::dwarf_linker::parallel::LinkingGlobalData::getOptions(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::is_contained(), and llvm::dwarf_linker::parallel::LinkingGlobalData::Options.
|
inline |
Allocate Size bytes of Alignment aligned memory.
Definition at line 43 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, assert(), llvm::parallel::getThreadIndex(), llvm::parallel::PerThreadAllocator< AllocatorTy >::NumOfAllocators, and Size.
|
inline |
Deallocate Ptr to Size bytes of memory allocated by this allocator.
Definition at line 50 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, assert(), llvm::parallel::getThreadIndex(), llvm::parallel::PerThreadAllocator< AllocatorTy >::NumOfAllocators, Ptr, and Size.
Error DwarfUnit::emitAbbreviations | ( | ) |
Definition at line 41 of file DWARFLinkerUnit.cpp.
References llvm::encodeULEB128(), 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 Emitter, llvm::dwarf_linker::parallel::SectionDescriptor::OS, 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(), 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::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 Info.
Referenced by llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(), and llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit().
Definition at line 111 of file DWARFLinkerUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, and llvm::dwarf_linker::parallel::LinkingGlobalData::warn().
|
inline |
Definition at line 556 of file DWARFLinkerCompileUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, and llvm::dwarf_linker::parallel::LinkingGlobalData::warn().
|
pure virtual |
Enumerates accelerator data.
Implemented in llvm::dwarf_linker::parallel::CompileUnit, and llvm::dwarf_linker::parallel::TypeUnit.
|
inline |
Return allocated size by all allocators.
Definition at line 86 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, llvm::parallel::PerThreadAllocator< AllocatorTy >::getBytesAllocated(), llvm::parallel::PerThreadAllocator< AllocatorTy >::getNumberOfAllocators(), and Idx.
Referenced by llvm::parallel::PerThreadAllocator< AllocatorTy >::getBytesAllocated().
|
inline |
Definition at line 62 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::NumOfAllocators.
Referenced by llvm::parallel::PerThreadAllocator< AllocatorTy >::getBytesAllocated(), llvm::parallel::PerThreadAllocator< AllocatorTy >::getTotalMemory(), llvm::parallel::PerThreadAllocator< AllocatorTy >::PrintStats(), llvm::parallel::PerThreadAllocator< AllocatorTy >::Reset(), and llvm::parallel::PerThreadAllocator< AllocatorTy >::setRedZoneSize().
|
inline |
Return allocator corresponding to the current thread.
Definition at line 56 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, assert(), llvm::parallel::getThreadIndex(), and llvm::parallel::PerThreadAllocator< AllocatorTy >::NumOfAllocators.
|
inline |
Return total memory size used by all allocators.
Definition at line 76 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, llvm::parallel::PerThreadAllocator< AllocatorTy >::getNumberOfAllocators(), llvm::parallel::PerThreadAllocator< AllocatorTy >::getTotalMemory(), and Idx.
Referenced by llvm::parallel::PerThreadAllocator< AllocatorTy >::getTotalMemory().
|
inline |
Print statistic for each allocator.
Definition at line 102 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, llvm::errs(), llvm::parallel::PerThreadAllocator< AllocatorTy >::getNumberOfAllocators(), and Idx.
|
inline |
Reset state of allocators.
Definition at line 70 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, llvm::parallel::PerThreadAllocator< AllocatorTy >::getNumberOfAllocators(), Idx, and llvm::parallel::PerThreadAllocator< AllocatorTy >::Reset().
Referenced by llvm::parallel::PerThreadAllocator< AllocatorTy >::Reset().
|
inlineoverridevirtual |
Allow generating valid, but non-deterministic output.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 83 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerOptions::AllowNonDeterministicOutput, llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, and llvm::dwarf_linker::parallel::LinkingGlobalData::Options.
|
overridevirtual |
Set estimated objects files amount, for preliminary data allocation.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 86 of file DWARFLinkerImpl.cpp.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::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 llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::DWARFLinkerOptions::InputVerificationHandler, and llvm::dwarf_linker::parallel::LinkingGlobalData::Options.
|
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 llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::DWARFLinkerOptions::KeepFunctionForStatic, and llvm::dwarf_linker::parallel::LinkingGlobalData::Options.
|
inlineoverridevirtual |
Do not unique types according to ODR.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 74 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::DWARFLinkerOptions::NoODR, and llvm::dwarf_linker::parallel::LinkingGlobalData::Options.
|
inlineoverridevirtual |
Use specified number of threads for parallel files linking.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 94 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::Threads.
|
inlineoverridevirtual |
Set prefix map for objects.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 125 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::DWARFLinkerOptions::ObjectPrefixMap, and llvm::dwarf_linker::parallel::LinkingGlobalData::Options.
|
inlineoverridevirtual |
Set prepend path for clang modules.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 105 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::PrependPath.
|
inline |
Set red zone for all allocators.
Definition at line 96 of file PerThreadBumpPtrAllocator.h.
References llvm::parallel::PerThreadAllocator< AllocatorTy >::Allocators, llvm::parallel::PerThreadAllocator< AllocatorTy >::getNumberOfAllocators(), Idx, and llvm::parallel::PerThreadAllocator< AllocatorTy >::setRedZoneSize().
Referenced by llvm::parallel::PerThreadAllocator< AllocatorTy >::setRedZoneSize().
|
inlineoverridevirtual |
Print statistics to standard output.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 64 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::Statistics.
|
inlineoverridevirtual |
Set map for Swift interfaces.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 120 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::ParseableSwiftInterfaces.
|
inlineoverridevirtual |
Set target DWARF version.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 130 of file DWARFLinkerImpl.h.
References llvm::createStringError(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, llvm::Error::success(), and llvm::dwarf_linker::parallel::DWARFLinkerOptions::TargetDWARFVersion.
|
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 llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::UpdateIndexTablesOnly.
|
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 llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, llvm::Verbose, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::Verbose.
|
inlineoverridevirtual |
Verify the input DWARF.
Implements llvm::dwarf_linker::DWARFLinkerBase.
Definition at line 69 of file DWARFLinkerImpl.h.
References llvm::dwarf_linker::parallel::DWARFLinkerImpl::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::Options, Verify, and llvm::dwarf_linker::parallel::DWARFLinkerOptions::VerifyInputDWARF.
Definition at line 109 of file DWARFLinkerUnit.h.
References llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::warn(), and llvm::Warning.
|
inline |
Definition at line 546 of file DWARFLinkerCompileUnit.h.
References llvm::dwarf_linker::parallel::CompileUnit::getOrigUnit(), llvm::dwarf_linker::parallel::DwarfUnit::getUnitName(), llvm::dwarf_linker::parallel::OutputSections::GlobalData, llvm::dwarf_linker::parallel::LinkingGlobalData::warn(), 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, llvm::dwarf_linker::parallel::LinkingGlobalData::warn(), and llvm::Warning.
Referenced by llvm::dwarf_linker::parallel::CompileUnit::analyzeImportedModule(), llvm::dwarf_linker::parallel::DIEAttributeCloner::clone(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneAddressAttr(), llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmitLineTable(), llvm::dwarf_linker::parallel::CompileUnit::cloneDieAttrExpression(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneDieRefAttr(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneScalarAttr(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneStringAttr(), and llvm::dwarf_linker::parallel::CompileUnit::getDirAndFilenameFromLineTable().