|
LLVM 24.0.0git
|
Utility to find all debug info in a module. More...
#include "llvm/IR/DebugInfo.h"
Public Types | |
| using | DIMacroEntry = std::pair<DIMacro *, DIMacroFile *> |
| using | compile_unit_iterator |
| using | subprogram_iterator = SmallVectorImpl<DISubprogram *>::const_iterator |
| using | global_variable_expression_iterator |
| using | type_iterator = SmallVectorImpl<DIType *>::const_iterator |
| using | scope_iterator = SmallVectorImpl<DIScope *>::const_iterator |
| using | macro_iterator = SmallVectorImpl<DIMacroEntry>::const_iterator |
Utility to find all debug info in a module.
DebugInfoFinder tries to list all debug info MDNodes used in a module. To list debug info MDNodes used by an instruction, DebugInfoFinder uses processDeclare, processValue and processLocation to handle DbgDeclareInst, DbgValueInst and DbgLoc attached to instructions. processModule will go through all DICompileUnits in llvm.dbg.cu and list debug info MDNodes used by the CUs.
Definition at line 105 of file DebugInfo.h.
Definition at line 142 of file DebugInfo.h.
| using llvm::DebugInfoFinder::DIMacroEntry = std::pair<DIMacro *, DIMacroFile *> |
Definition at line 141 of file DebugInfo.h.
Definition at line 145 of file DebugInfo.h.
Definition at line 149 of file DebugInfo.h.
Definition at line 148 of file DebugInfo.h.
Definition at line 144 of file DebugInfo.h.
Definition at line 147 of file DebugInfo.h.
|
inline |
Definition at line 165 of file DebugInfo.h.
|
inline |
Definition at line 151 of file DebugInfo.h.
Referenced by llvm::CloneFunctionInto(), printModuleDebugInfo(), llvm::dxil::DXILDebugInfoPass::run(), and stripDeadDebugInfoImpl().
|
inline |
Definition at line 166 of file DebugInfo.h.
|
inline |
Definition at line 155 of file DebugInfo.h.
Referenced by printModuleDebugInfo(), and llvm::dxil::DXILDebugInfoPass::run().
|
inline |
Definition at line 170 of file DebugInfo.h.
|
inline |
Definition at line 163 of file DebugInfo.h.
Referenced by printModuleDebugInfo().
Definition at line 243 of file DebugInfo.cpp.
References llvm::dyn_cast(), llvm::DebugLoc::get(), llvm::DbgRecord::getDebugLoc(), processLocation(), and processVariable().
Referenced by processInstruction().
| void DebugInfoFinder::processInstruction | ( | const Module & | M, |
| const Instruction & | I ) |
Process a single instruction and collect debug info anchors.
Definition at line 224 of file DebugInfo.cpp.
References llvm::dyn_cast(), I, processDbgRecord(), processLocation(), and processVariable().
Referenced by collectDebugInfoFromInstructions(), processModule(), and stripDeadDebugInfoImpl().
| void DebugInfoFinder::processLocation | ( | const Module & | M, |
| const DILocation * | Loc ) |
Process debug info location.
Definition at line 236 of file DebugInfo.cpp.
References processLocation().
Referenced by processDbgRecord(), processInstruction(), and processLocation().
Process entire module and collect debug info anchors.
Definition at line 183 of file DebugInfo.cpp.
References llvm::cast_or_null(), F, I, processInstruction(), and processSubprogram().
Referenced by llvm::SPIRVNonSemanticDebugHandler::beginModule(), and llvm::dxil::DXILDebugInfoPass::run().
| void DebugInfoFinder::processSubprogram | ( | DISubprogram * | SP | ) |
Process subprogram.
Definition at line 389 of file DebugInfo.cpp.
References llvm::dyn_cast(), processVariable(), and T.
Referenced by processModule(), and stripDeadDebugInfoImpl().
| void DebugInfoFinder::processVariable | ( | const DILocalVariable * | DVI | ) |
Definition at line 418 of file DebugInfo.cpp.
References llvm::DILocalVariable::getScope(), and llvm::DIVariable::getType().
Referenced by processDbgRecord(), processInstruction(), and processSubprogram().
| void DebugInfoFinder::reset | ( | ) |
Clear all lists.
Definition at line 173 of file DebugInfo.cpp.
Referenced by llvm::dxil::DXILDebugInfoPass::run().
|
inline |
Definition at line 169 of file DebugInfo.h.
|
inline |
Definition at line 161 of file DebugInfo.h.
Referenced by llvm::dxil::DXILDebugInfoPass::run().
|
inline |
Definition at line 167 of file DebugInfo.h.
|
inline |
Definition at line 153 of file DebugInfo.h.
Referenced by llvm::SPIRVNonSemanticDebugHandler::beginModule(), printModuleDebugInfo(), and llvm::dxil::DXILDebugInfoPass::run().
|
inline |
Definition at line 168 of file DebugInfo.h.
|
inline |
Definition at line 159 of file DebugInfo.h.
Referenced by llvm::SPIRVNonSemanticDebugHandler::beginModule(), printModuleDebugInfo(), and llvm::dxil::DXILDebugInfoPass::run().