LLVM
15.0.0git
|
This class is used to track local variable information. More...
#include "CodeGen/AsmPrinter/DwarfDebug.h"
Static Public Member Functions | |
static bool | classof (const DbgEntity *N) |
![]() | |
static bool | classof (const DbgEntity *N) |
Additional Inherited Members | |
![]() | |
enum | DbgEntityKind { DbgVariableKind, DbgLabelKind } |
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 location use ValueLoc and (optionally) a single entry of Expr.
Variables that have been optimized out use none of these fields.
Definition at line 115 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 136 of file DwarfDebug.h.
void DbgVariable::addMMIEntry | ( | const DbgVariable & | V | ) |
Definition at line 290 of file DwarfDebug.cpp.
References llvm::all_of(), assert(), llvm::DbgEntity::getInlinedAt(), getVariable(), llvm::none_of(), and Other.
Referenced by llvm::DwarfFile::addScopeVariable().
Definition at line 223 of file DwarfDebug.h.
References llvm::DbgEntity::DbgVariableKind, and N.
|
inline |
Definition at line 176 of file DwarfDebug.h.
|
inline |
Definition at line 178 of file DwarfDebug.h.
ArrayRef< DbgVariable::FrameIndexExpr > DbgVariable::getFrameIndexExprs | ( | ) | const |
Get the FI entries, sorted by fragment offset.
Definition at line 272 of file DwarfDebug.cpp.
References llvm::all_of(), assert(), B, and llvm::sort().
|
inline |
Definition at line 179 of file DwarfDebug.h.
References llvm::DIVariable::getName(), and getVariable().
Referenced by llvm::DwarfCompileUnit::applyVariableAttributes().
|
inline |
Definition at line 170 of file DwarfDebug.h.
References assert().
Referenced by llvm::DwarfCompileUnit::addComplexAddress().
|
inline |
Definition at line 187 of file DwarfDebug.h.
References getVariable().
Definition at line 228 of file DwarfDebug.cpp.
References llvm::DIVariable::getType(), and getVariable().
Referenced by llvm::DwarfCompileUnit::applyVariableAttributes(), dependencies(), isArtificial(), and isObjectPointer().
|
inline |
Definition at line 180 of file DwarfDebug.h.
|
inline |
Definition at line 166 of file DwarfDebug.h.
References llvm::DbgEntity::getEntity().
Referenced by addMMIEntry(), llvm::DwarfFile::addScopeVariable(), llvm::DwarfCompileUnit::applyVariableAttributes(), getName(), getTag(), getType(), initializeDbgValue(), isArtificial(), and isObjectPointer().
|
inline |
Definition at line 212 of file DwarfDebug.h.
References assert().
Referenced by llvm::DwarfCompileUnit::addVariableAddress().
|
inline |
Definition at line 183 of file DwarfDebug.h.
void DbgVariable::initializeDbgValue | ( | const MachineInstr * | DbgValue | ) |
Initialize from a DBG_VALUE instruction.
Definition at line 258 of file DwarfDebug.cpp.
References assert(), E, getDebugLocValue(), llvm::DbgEntity::getInlinedAt(), and getVariable().
|
inline |
Definition at line 151 of file DwarfDebug.h.
Referenced by llvm::DebugLocStream::ListBuilder::~ListBuilder().
|
inline |
Initialize from the MMI table.
Definition at line 140 of file DwarfDebug.h.
References assert(), E, and llvm::max().
|
inline |
Return true if DbgVariable is artificial.
Definition at line 196 of file DwarfDebug.h.
References getType(), and getVariable().
Referenced by llvm::DwarfCompileUnit::applyVariableAttributes().
|
inline |
Definition at line 204 of file DwarfDebug.h.
References getType(), and getVariable().
Referenced by llvm::DwarfCompileUnit::constructVariableDIE().
|
inline |
Definition at line 175 of file DwarfDebug.h.
References llvm::RISCVFenceField::O.
Referenced by llvm::DebugLocStream::ListBuilder::~ListBuilder().
|
inline |
Definition at line 177 of file DwarfDebug.h.
References llvm::RISCVFenceField::O.
Referenced by llvm::DebugLocStream::ListBuilder::~ListBuilder().