LLVM 22.0.0git
DwarfCompileUnit.cpp File Reference

Go to the source code of this file.

Functions

static bool AddLinkageNamesToDeclCallOriginsForTuning (const DwarfDebug *DD)
static dwarf::Tag GetCompileUnitType (UnitKind Kind, DwarfDebug *DW)
static unsigned translateToNVVMDWARFAddrSpace (unsigned AddrSpace)
 Translate NVVM IR address space code to DWARF correspondent value.
static SmallVector< const DIVariable *, 2 > dependencies (DbgVariable *Var)
 Return all DIVariables that appear in count: expressions.
static SmallVector< DbgVariable *, 8 > sortLocalVars (SmallVectorImpl< DbgVariable * > &Input)
 Sort local variables so that variables appearing inside of helper expressions come first.

Variables

static cl::opt< cl::boolOrDefaultAddLinkageNamesToDeclCallOrigins ("add-linkage-names-to-declaration-call-origins", cl::Hidden, cl::desc("Add DW_AT_linkage_name to function declaration DIEs " "referenced by DW_AT_call_origin attributes. Enabled by default " "for -gsce debugger tuning."))
 Query value using AddLinkageNamesToDeclCallOriginsForTuning.
static cl::opt< boolEmitFuncLineTableOffsetsOption ("emit-func-debug-line-table-offsets", cl::Hidden, cl::desc("Include line table offset in function's debug info and emit end " "sequence after each function's line data."), cl::init(false))

Function Documentation

◆ AddLinkageNamesToDeclCallOriginsForTuning()

bool AddLinkageNamesToDeclCallOriginsForTuning ( const DwarfDebug * DD)
static

◆ dependencies()

SmallVector< const DIVariable *, 2 > dependencies ( DbgVariable * Var)
static

Return all DIVariables that appear in count: expressions.

Definition at line 1023 of file DwarfCompileUnit.cpp.

References llvm::Count, llvm::dyn_cast(), llvm::dyn_cast_if_present(), and llvm::DbgVariable::getType().

Referenced by sortLocalVars().

◆ GetCompileUnitType()

dwarf::Tag GetCompileUnitType ( UnitKind Kind,
DwarfDebug * DW )
static

◆ sortLocalVars()

◆ translateToNVVMDWARFAddrSpace()

Variable Documentation

◆ AddLinkageNamesToDeclCallOrigins

cl::opt< cl::boolOrDefault > AddLinkageNamesToDeclCallOrigins("add-linkage-names-to-declaration-call-origins", cl::Hidden, cl::desc("Add DW_AT_linkage_name to function declaration DIEs " "referenced by DW_AT_call_origin attributes. Enabled by default " "for -gsce debugger tuning.")) ( "add-linkage-names-to-declaration-call-origins" ,
cl::Hidden ,
cl::desc("Add DW_AT_linkage_name to function declaration DIEs " "referenced by DW_AT_call_origin attributes. Enabled by default " "for -gsce debugger tuning.")  )
static

Query value using AddLinkageNamesToDeclCallOriginsForTuning.

Referenced by AddLinkageNamesToDeclCallOriginsForTuning().

◆ EmitFuncLineTableOffsetsOption

cl::opt< bool > EmitFuncLineTableOffsetsOption("emit-func-debug-line-table-offsets", cl::Hidden, cl::desc("Include line table offset in function's debug info and emit end " "sequence after each function's line data."), cl::init(false)) ( "emit-func-debug-line-table-offsets" ,
cl::Hidden ,
cl::desc("Include line table offset in function's debug info and emit end " "sequence after each function's line data.") ,
cl::init(false)  )
static