llvm::DWARFUnitVector

Describe a collection of units. Intended to hold all units either from .debug_info and .debug_types, or from .debug_info.dwo and .debug_types.dwo.

Synopsis

Declared in <llvm/DebugInfo/DWARF/DWARFUnit.h>

class DWARFUnitVector final
    : public SmallVector<std::unique_ptr<DWARFUnit>, 1>

Base Classes

NameDescription
SmallVector<std::unique_ptr<DWARFUnit>, 1>Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference sizeof(SmallVector<T, 0>).

Type Aliases

NameDescription
UnitVector Underlying storage type for units owned by this vector.
compile_unit_range Filtered range over compile units (excluding type units) in this vector.
iterator Iterator over unique_ptr<DWARFUnit> elements in this vector.
iterator_range Iterator range over units in this vector.

Member Functions

NameDescription
operator= Assignment operators
addUnit Add an existing DWARFUnit to this UnitVector.
addUnitsForDWOSection Read units from a .debug_info.dwo or .debug_types.dwo section.
addUnitsForSection Read units from a .debug_info or .debug_types section.
finishedInfoUnits Indicate that parsing .debug_info[.dwo]is done, and remaining units will be from .debug_types[.dwo].
getNumInfoUnits Returns number of units from all .debug_info[.dwo]sections.
getNumTypesUnits Returns number of units from all .debug_types[.dwo]sections.
getNumUnits Returns number of all units held by this instance.
getUnitForIndexEntry Return the unit for package-file index entry E.
getUnitForOffset Return the unit whose DIE data covers absolute offset Offset.

Non-Member Functions

NameDescription
ComputeASanStackFrameDescriptionCompute a frame description string for AddressSanitizer reports.
ComputeASanStackFrameLayoutCompute the AddressSanitizer layout of a stack frame.
GetShadowBytesReturn shadow bytes for a stack frame with all locals in scope.
GetShadowBytesAfterScopeReturn shadow bytes after all locals have gone out of scope.
RecursivelyDeleteTriviallyDeadInstructionsRecursively delete a worklist of trivially dead instructions.
RecursivelyDeleteTriviallyDeadInstructionsPermissiveRecursively delete trivially dead instructions from a permissive worklist.
appendLEB128Append a LEB128-encoded value to a byte buffer.
capacity_in_bytesReturn the capacity of X in bytes.
filterDeadComdatFunctionsFilter out potentially dead comdat functions where other entries keep the entire comdat group alive.
findDevirtualizableCallsForTypeCheckedLoadGiven a call to the intrinsic @llvm.type.checked.load, find all devirtualizable call sites based on the call and return them in DevirtCalls.
findDevirtualizableCallsForTypeTestGiven a call to the intrinsic @llvm.type.test, find all devirtualizable call sites based on the call and return them in DevirtCalls.
formLCSSAForInstructionsEnsures LCSSA form for every instruction from the Worklist in the scope of innermost containing loop.
getDisjunctionWeightsGet the branch weights of a branch conditioned on b1 || b2.
get_thread_nameGet the name of the current thread.
isManyPotentiallyReachableFromManyDetermine whether any block in Worklist can reach any block in StopSet.
isPotentiallyReachableFromManyDetermine whether any block in Worklist can reach StopBB.
operator!=Return true if SmallVector LHS differs from ArrayRef RHS.
operator==Return true if SmallVector LHS equals ArrayRef RHS.
prepareTempFilesEnsures temporary files exist, creating or re-using them.
setDefaultDebuginfodUrlsSets the list of debuginfod server URLs to query. This overrides the environment variable DEBUGINFOD_URLS.
AArch64::fillValidCPUArchListAppend all valid CPU and architecture names to Values.
AMDGPU::fillValidArchListAMDGCNAppend the valid AMDGCN GPU names to Values.
AMDGPU::fillValidArchListR600Append the valid R600 GPU names to Values.
ARM::fillValidCPUArchListAppend every valid ARM CPU name to Values.
CSKY::fillValidCPUArchListAppend every valid CSKY CPU name to Values.
LoongArch::fillValidCPUListAppend every valid LoongArch CPU name to Values.
MachO::replace_extensionReplace extension considering frameworks.
PPC::fillValidCPUListAppend every valid PowerPC CPU name to Values.
PPC::fillValidTuneCPUListAppend every valid PowerPC tune CPU name to Values.
RISCV::fillValidCPUArchListAppend every valid RISC-V CPU name for the given bitness to Values.
RISCV::fillValidTuneCPUArchListAppend every valid RISC-V tune CPU name for the given bitness to Values.
RISCV::getAllTuneFeaturesAppend every recognized RISC-V tune-feature name to TuneFeatures.
SwitchCG::getJumpTableNumCasesReturn the number of cases within a range.
X86::fillValidCPUArchListProvide a list of valid CPU names. If Only64Bit is true, the list will only contain 64-bit capable CPUs.
X86::fillValidTuneCPUListProvide a list of valid -mtune names.
Xtensa::fillValidCPUListAppend every valid Xtensa CPU name (and aliases) to Values.
omp::getBestVariantMatchForContextReturn the index (into VMIs) of the variant with the highest score from the ones applicable in Ctx. See llvm::isVariantApplicableInContext.
yaml::yaml2ObjectFileConvenience function for tests.
support::endian::writeAppend V to Out using the given byte order.
sys::fs::current_pathGet the current path.
sys::fs::make_absoluteMake path an absolute path.
sys::path::appendAppend path components using path style separators.
sys::path::appendAppend to path.
sys::path::appendAppend to path.
sys::path::cache_directoryGet the directory where installed packages should put their machine-local cache, e.g. $XDG_CACHE_HOME.
sys::path::home_directoryGet the user's home directory.
sys::path::make_preferredFor Windows path styles, convert path to use the preferred path separators. For other styles, do nothing.
sys::path::nativeConvert path to the native form in place.
sys::path::remove_dotsRemove './' and optionally '../' components, and canonicalize separators.
sys::path::remove_filenameRemove the last component from path unless it is the root dir.
sys::path::replace_extensionReplace the file extension of path with extension.
sys::path::replace_path_prefixReplace matching path prefix with another path.
sys::path::user_config_directoryGet the directory where packages should read user-specific configurations. e.g. $XDG_CONFIG_HOME.