|
LLVM
7.0.0
|
This class is used to track local variable information. More...
#include "CodeGen/AsmPrinter/DwarfDebug.h"
This class is used to track local variable information.
Variables can be created from allocas, in which case they're generated from the MMI table. Such variables can have multiple expressions and frame indices.
Variables can be created from DBG_VALUE instructions. Those whose location changes over time use DebugLocListIndex, while those with a single instruction use MInsn and (optionally) a single entry of Expr.
Variables that have been optimized out use none of these fields.
Definition at line 76 of file DwarfDebug.h.
|
inline |
Frame index + expression.
Construct a DbgVariable.
Creates a variable without any DW_AT_location. Call initializeMMI() for MMI entries, or initializeDbgValue() for DBG_VALUE instructions.
Definition at line 95 of file DwarfDebug.h.
| void DbgVariable::addMMIEntry | ( | const DbgVariable & | V | ) |
Definition at line 258 of file DwarfDebug.cpp.
References llvm::all_of(), assert(), llvm::SmallVectorBase::empty(), llvm::none_of(), and Other.
Referenced by llvm::DwarfFile::addScopeVariable(), and hasFrameIndexExprs().
|
inline |
Definition at line 135 of file DwarfDebug.h.
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
|
inline |
Definition at line 133 of file DwarfDebug.h.
Referenced by llvm::DwarfCompileUnit::finishVariableDefinition().
| ArrayRef< DbgVariable::FrameIndexExpr > DbgVariable::getFrameIndexExprs | ( | ) | const |
Get the FI entries, sorted by fragment offset.
Definition at line 240 of file DwarfDebug.cpp.
References llvm::all_of(), assert(), B, and llvm::sort().
Referenced by llvm::DwarfCompileUnit::constructVariableDIE(), and getMInsn().
|
inline |
Definition at line 125 of file DwarfDebug.h.
Referenced by llvm::DwarfCompileUnit::finishVariableDefinition().
|
inline |
Definition at line 137 of file DwarfDebug.h.
References getFrameIndexExprs().
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
|
inline |
Definition at line 136 of file DwarfDebug.h.
References llvm::DIVariable::getName().
Referenced by llvm::DwarfUnit::addBlockByrefAddress(), and llvm::DwarfCompileUnit::applyVariableAttributes().
|
inline |
Definition at line 127 of file DwarfDebug.h.
References assert(), and llvm::SmallVectorBase::size().
Referenced by llvm::DwarfCompileUnit::addComplexAddress(), and llvm::DwarfCompileUnit::constructVariableDIE().
|
inline |
Definition at line 144 of file DwarfDebug.h.
References llvm::DILocalVariable::isParameter().
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
Definition at line 195 of file DwarfDebug.cpp.
References getBaseType(), getName(), llvm::DINode::getTag(), llvm::DIType::isBlockByrefStruct(), N, and llvm::MDNode::resolve().
Referenced by llvm::DwarfUnit::addBlockByrefAddress(), llvm::DwarfCompileUnit::applyVariableAttributes(), llvm::DwarfCompileUnit::constructVariableDIE(), dependencies(), hasComplexAddress(), isArtificial(), and isObjectPointer().
|
inline |
Definition at line 124 of file DwarfDebug.h.
Referenced by llvm::DwarfFile::addScopeVariable(), llvm::DwarfCompileUnit::applyVariableAttributes(), llvm::DwarfCompileUnit::constructVariableDIE(), and llvm::DwarfCompileUnit::finishVariableDefinition().
|
inline |
Definition at line 169 of file DwarfDebug.h.
References assert(), llvm::SmallVectorBase::empty(), getType(), isBlockByrefVariable(), llvm::Ref, llvm::TypedDINodeRef< T >::resolve(), and llvm::SmallVectorBase::size().
Referenced by llvm::DwarfCompileUnit::addVariableAddress().
|
inline |
Definition at line 140 of file DwarfDebug.h.
References addMMIEntry(), and llvm::SmallVectorBase::empty().
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
|
inline |
Initialize from a DBG_VALUE instruction.
Definition at line 110 of file DwarfDebug.h.
References assert(), E, llvm::SmallVectorBase::empty(), llvm::MachineInstr::getDebugExpression(), llvm::MachineInstr::getDebugLoc(), llvm::MachineInstr::getDebugVariable(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Referenced by validThroughout().
|
inline |
Initialize from the MMI table.
Definition at line 99 of file DwarfDebug.h.
References assert(), llvm::SmallVectorBase::empty(), llvm::DIExpression::isValid(), llvm::max(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
|
inline |
Return true if DbgVariable is artificial.
Definition at line 153 of file DwarfDebug.h.
References getType(), llvm::DIType::isArtificial(), and llvm::DILocalVariable::isArtificial().
Referenced by llvm::DwarfCompileUnit::applyVariableAttributes().
| bool DbgVariable::isBlockByrefVariable | ( | ) | const |
Definition at line 190 of file DwarfDebug.cpp.
References assert().
Referenced by llvm::DwarfCompileUnit::addVariableAddress(), and hasComplexAddress().
|
inline |
Definition at line 161 of file DwarfDebug.h.
References getType(), llvm::DIType::isObjectPointer(), and llvm::DILocalVariable::isObjectPointer().
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
|
inline |
Definition at line 134 of file DwarfDebug.h.
References llvm::RISCVFenceField::O.
|
inline |
Definition at line 132 of file DwarfDebug.h.
References D.
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
1.8.13