LLVM 22.0.0git
|
Utility class used to find and store the live debug ranges for variables in a module. More...
#include "llvm/Transforms/Utils/DebugSSAUpdater.h"
Public Member Functions | |
void | addVariable (Function *F, DebugVariableAggregate DVA) |
bool | hasVariableEntry (DebugVariableAggregate DVA) const |
bool | hasSingleLocEntry (DebugVariableAggregate DVA) const |
ArrayRef< DbgRangeEntry > | getVariableRanges (DebugVariableAggregate DVA) |
DbgValueDef | getSingleLoc (DebugVariableAggregate DVA) |
void | printValues (DebugVariableAggregate DVA, raw_ostream &OS) |
Utility class used to find and store the live debug ranges for variables in a module.
This class uses the DebugSSAUpdater for each variable added with addVariable
to find either a single-location value, e.g. #dbg_declare, or a set of live value ranges corresponding to the set of #dbg_value records.
Definition at line 339 of file DebugSSAUpdater.h.
void DbgValueRangeTable::addVariable | ( | Function * | F, |
DebugVariableAggregate | DVA ) |
Definition at line 229 of file DebugSSAUpdater.cpp.
References assert(), llvm::cast(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::contains(), llvm::dbgs(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), F, llvm::filterDbgVars(), llvm::for_each(), llvm::DebugVariable::getInlinedAt(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::DILocalVariable::getScope(), llvm::DebugVariable::getVariable(), I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), isContained(), LLVM_DEBUG, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
|
inline |
Definition at line 356 of file DebugSSAUpdater.h.
|
inline |
Definition at line 353 of file DebugSSAUpdater.h.
|
inline |
Definition at line 350 of file DebugSSAUpdater.h.
Referenced by printValues().
|
inline |
Definition at line 346 of file DebugSSAUpdater.h.
Referenced by printValues().
void DbgValueRangeTable::printValues | ( | DebugVariableAggregate | DVA, |
raw_ostream & | OS ) |
Definition at line 346 of file DebugSSAUpdater.cpp.
References llvm::DebugVariable::getInlinedAt(), llvm::DIVariable::getName(), llvm::DebugVariable::getVariable(), hasSingleLocEntry(), and hasVariableEntry().