LLVM 20.0.0git
|
#include "llvm/DebugInfo/LogicalView/Core/LVScope.h"
Public Attributes | |
LVNameInfo | NameNone = {UINT64_MAX, 0} |
Protected Member Functions | |
void | printSizes (raw_ostream &OS) const override |
void | printSummary (raw_ostream &OS) const override |
Protected Member Functions inherited from llvm::logicalview::LVScope | |
void | resolveTemplate () |
void | printEncodedArgs (raw_ostream &OS, bool Full) const |
void | printActiveRanges (raw_ostream &OS, bool Full=true) const |
virtual void | printSizes (raw_ostream &OS) const |
virtual void | printSummary (raw_ostream &OS) const |
virtual StringRef | getEncodedArgs () const |
virtual void | setEncodedArgs (StringRef EncodedArgs) |
Protected Member Functions inherited from llvm::logicalview::LVElement | |
void | printFileIndex (raw_ostream &OS, bool Full=true) const override |
Protected Member Functions inherited from llvm::logicalview::LVObject | |
std::string | lineAsString (uint32_t LineNumber, LVHalf Discriminator, bool ShowZero) const |
std::string | referenceAsString (uint32_t LineNumber, bool Spaces) const |
virtual void | printFileIndex (raw_ostream &OS, bool Full=true) const |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::logicalview::LVScope | |
static bool | classof (const LVElement *Element) |
static void | markMissingParents (const LVScopes *References, const LVScopes *Targets, bool TraverseChildren) |
static bool | equals (const LVScopes *References, const LVScopes *Targets) |
static LVScopeDispatch & | getDispatch () |
Static Public Member Functions inherited from llvm::logicalview::LVElement | |
static LVElementDispatch & | getDispatch () |
Protected Attributes inherited from llvm::logicalview::LVScope | |
std::unique_ptr< LVTypes > | Types |
std::unique_ptr< LVSymbols > | Symbols |
std::unique_ptr< LVScopes > | Scopes |
std::unique_ptr< LVLines > | Lines |
std::unique_ptr< LVLocations > | Ranges |
std::unique_ptr< LVElements > | Children |
Protected Attributes inherited from llvm::logicalview::LVElement | |
LVElement * | ElementType = nullptr |
|
inline |
|
delete |
|
default |
void LVScopeCompileUnit::addDebugTag | ( | dwarf::Tag | Target, |
LVOffset | Offset | ||
) |
Definition at line 1345 of file LVScope.cpp.
References llvm::logicalview::Offset.
void LVScopeCompileUnit::addedElement | ( | LVLine * | Line | ) |
Definition at line 1327 of file LVScope.cpp.
References llvm::logicalview::getReader(), increment(), and llvm::logicalview::LVReader::notifyAddedElement().
Referenced by llvm::logicalview::LVScope::addElement().
void LVScopeCompileUnit::addedElement | ( | LVScope * | Scope | ) |
Definition at line 1331 of file LVScope.cpp.
References llvm::logicalview::getReader(), increment(), llvm::logicalview::LVReader::notifyAddedElement(), and llvm::logicalview::LVObject::Scope.
void LVScopeCompileUnit::addedElement | ( | LVSymbol * | Symbol | ) |
Definition at line 1335 of file LVScope.cpp.
References llvm::logicalview::getReader(), increment(), llvm::logicalview::LVReader::notifyAddedElement(), and llvm::logicalview::LVObject::Symbol.
void LVScopeCompileUnit::addedElement | ( | LVType * | Type | ) |
Definition at line 1339 of file LVScope.cpp.
References llvm::logicalview::getReader(), increment(), and llvm::logicalview::LVReader::notifyAddedElement().
|
inline |
Definition at line 532 of file LVScope.h.
References llvm::logicalview::getStringPool(), and llvm::logicalview::Name.
void LVScopeCompileUnit::addInvalidCoverage | ( | LVSymbol * | Symbol | ) |
Definition at line 1356 of file LVScope.cpp.
References llvm::logicalview::LVObject::getOffset(), llvm::logicalview::Offset, and llvm::logicalview::LVObject::Symbol.
Referenced by llvm::logicalview::LVSymbol::calculateCoverage().
void LVScopeCompileUnit::addInvalidLocation | ( | LVLocation * | Location | ) |
Definition at line 1363 of file LVScope.cpp.
References llvm::logicalview::Location.
Referenced by processRangeLocationCoverage().
Definition at line 1350 of file LVScope.cpp.
References llvm::logicalview::LVObject::Element, and llvm::logicalview::Offset.
Referenced by addLineZero().
void LVScopeCompileUnit::addInvalidRange | ( | LVLocation * | Location | ) |
Definition at line 1369 of file LVScope.cpp.
References llvm::logicalview::Location.
Referenced by processRangeLocationCoverage().
void LVScopeCompileUnit::addLineZero | ( | LVLine * | Line | ) |
Definition at line 1375 of file LVScope.cpp.
References addInvalidOffset(), llvm::logicalview::LVObject::getOffset(), llvm::logicalview::Offset, and llvm::logicalview::LVObject::Scope.
void LVScopeCompileUnit::addMapping | ( | LVLine * | Line, |
LVSectionIndex | SectionIndex | ||
) |
Definition at line 1243 of file LVScope.cpp.
References llvm::Address.
|
inline |
Definition at line 575 of file LVScope.h.
References llvm::logicalview::LVObject::Element, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
inline |
Definition at line 576 of file LVScope.h.
References llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::logicalview::LVObject::Scope.
|
inline |
Definition at line 506 of file LVScope.h.
References llvm::logicalview::LVObject::Scope.
Referenced by llvm::logicalview::LVSymbolVisitor::visitKnownRecord().
Definition at line 1178 of file LVScope.cpp.
References llvm::dbgs(), llvm::format(), llvm::logicalview::LVObject::getOffset(), LLVM_DEBUG, llvm::Lower, llvm::logicalview::LVObject::Scope, Size, and llvm::Upper.
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1286 of file LVScope.cpp.
References llvm::logicalview::LVScope::equals(), llvm::logicalview::LVElement::getNameIndex(), and llvm::logicalview::LVObject::Scope.
|
inline |
Definition at line 510 of file LVScope.h.
References NameNone, and llvm::logicalview::LVObject::Scope.
|
inline |
Definition at line 520 of file LVScope.h.
References llvm::logicalview::LVScope::Ranges.
|
inline |
Definition at line 524 of file LVScope.h.
References llvm::logicalview::LVStringPool::getString(), and llvm::logicalview::getStringPool().
|
inlineoverridevirtual |
Reimplemented from llvm::logicalview::LVScope.
|
inline |
|
inline |
StringRef LVScopeCompileUnit::getFilename | ( | size_t | Index | ) | const |
Definition at line 1280 of file LVScope.cpp.
References llvm::logicalview::LVStringPool::getString(), and llvm::logicalview::getStringPool().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from llvm::logicalview::LVElement.
Definition at line 536 of file LVScope.h.
References llvm::logicalview::LVStringPool::getString(), and llvm::logicalview::getStringPool().
Referenced by printExtra().
|
inline |
|
inline |
void LVScopeCompileUnit::increment | ( | LVLine * | Line | ) |
Definition at line 1307 of file LVScope.cpp.
References llvm::logicalview::LVCounter::Lines.
Referenced by addedElement().
void LVScopeCompileUnit::increment | ( | LVScope * | Scope | ) |
Definition at line 1311 of file LVScope.cpp.
References llvm::logicalview::LVObject::Scope, and llvm::logicalview::LVCounter::Scopes.
void LVScopeCompileUnit::increment | ( | LVSymbol * | Symbol | ) |
Definition at line 1315 of file LVScope.cpp.
References llvm::logicalview::LVObject::Symbol, and llvm::logicalview::LVCounter::Symbols.
void LVScopeCompileUnit::increment | ( | LVType * | Type | ) |
Definition at line 1319 of file LVScope.cpp.
References llvm::logicalview::LVCounter::Types.
void LVScopeCompileUnit::incrementPrintedLines | ( | ) |
Definition at line 1293 of file LVScope.cpp.
References llvm::logicalview::LVCounter::Lines, and llvm::logicalview::options().
Referenced by llvm::logicalview::LVLine::print().
void LVScopeCompileUnit::incrementPrintedScopes | ( | ) |
Definition at line 1296 of file LVScope.cpp.
References llvm::logicalview::options(), and llvm::logicalview::LVCounter::Scopes.
Referenced by llvm::logicalview::LVScope::print().
void LVScopeCompileUnit::incrementPrintedSymbols | ( | ) |
Definition at line 1299 of file LVScope.cpp.
References llvm::logicalview::options(), and llvm::logicalview::LVCounter::Symbols.
Referenced by llvm::logicalview::LVSymbol::print().
void LVScopeCompileUnit::incrementPrintedTypes | ( | ) |
Definition at line 1302 of file LVScope.cpp.
References llvm::logicalview::options(), and llvm::logicalview::LVCounter::Types.
Referenced by llvm::logicalview::LVType::print().
LVLineRange LVScopeCompileUnit::lineRange | ( | LVLocation * | Location | ) | const |
Definition at line 1270 of file LVScope.cpp.
References llvm::logicalview::LVObject::Element, llvm::logicalview::LVObject::getParentScope(), and llvm::logicalview::Location.
Referenced by llvm::logicalview::LVLocation::validateRanges().
|
delete |
|
overridevirtual |
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1697 of file LVScope.cpp.
References llvm::logicalview::LVReader::doPrintScope(), llvm::Full, llvm::logicalview::getReader(), llvm::logicalview::options(), OS, llvm::logicalview::LVScope::print(), and llvm::logicalview::LVCounter::reset().
Referenced by printMatchedElements().
|
overridevirtual |
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1708 of file LVScope.cpp.
References llvm::logicalview::formattedKind(), llvm::Full, llvm::logicalview::LVElement::getName(), getProducer(), llvm::logicalview::LVScope::kind(), llvm::logicalview::options(), OS, llvm::logicalview::LVScope::printActiveRanges(), llvm::logicalview::LVObject::printAttributes(), printLocalNames(), and llvm::logicalview::LVOptions::resetFilenameIndex().
void LVScopeCompileUnit::printLocalNames | ( | raw_ostream & | OS, |
bool | Full = true |
||
) | const |
Definition at line 1382 of file LVScope.cpp.
References llvm::Address, llvm::logicalview::formattedKind(), llvm::logicalview::formattedName(), llvm::logicalview::LVObject::getLevel(), llvm::logicalview::LVStringPool::getString(), llvm::logicalview::getStringPool(), llvm::logicalview::hexString(), llvm::logicalview::LVObject::indentAsString(), llvm::logicalview::LVOptions::indentationSize(), llvm::logicalview::Kind, llvm::logicalview::LVObject::lineNumberAsString(), llvm::logicalview::Name, llvm::logicalview::options(), OS, and Size.
Referenced by printExtra().
|
overridevirtual |
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1626 of file LVScope.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::logicalview::LVObject::Element, llvm::logicalview::Elements, llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::logicalview::LVScope::getChildren(), llvm::logicalview::getSortFunction(), llvm::logicalview::LVCounter::Lines, llvm::logicalview::options(), OS, llvm::logicalview::LVObject::print(), llvm::logicalview::LVScope::print(), print(), printSummary(), llvm::logicalview::LVObject::Scope, llvm::logicalview::LVCounter::Scopes, llvm::logicalview::LVCounter::Symbols, and llvm::logicalview::LVCounter::Types.
|
overrideprotectedvirtual |
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1551 of file LVScope.cpp.
References llvm::logicalview::LVObject::getLevel(), llvm::logicalview::getReader(), llvm::logicalview::LVScope::getScopes(), llvm::logicalview::options(), OS, llvm::logicalview::LVObject::Scope, llvm::logicalview::LVScope::Scopes, and llvm::logicalview::LVReader::setCompileUnit().
|
overrideprotectedvirtual |
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1595 of file LVScope.cpp.
References llvm::logicalview::options(), OS, and printSummary().
Referenced by printMatchedElements(), and printSummary().
void LVScopeCompileUnit::printSummary | ( | raw_ostream & | OS, |
const LVCounter & | Counter, | ||
const char * | Header | ||
) | const |
Definition at line 1600 of file LVScope.cpp.
References llvm::format(), llvm::logicalview::LVCounter::Lines, OS, llvm::logicalview::LVCounter::Scopes, llvm::logicalview::LVCounter::Symbols, and llvm::logicalview::LVCounter::Types.
|
overridevirtual |
Reimplemented from llvm::logicalview::LVScope.
Definition at line 1441 of file LVScope.cpp.
References llvm::logicalview::LVObject::Element, llvm::format(), llvm::logicalview::formattedKind(), llvm::logicalview::formattedName(), llvm::logicalview::LVSymbol::getCoveragePercentage(), llvm::logicalview::LVElement::getName(), llvm::logicalview::getReader(), llvm::logicalview::hexSquareString(), llvm::logicalview::hexString(), llvm::logicalview::LVObject::kind(), llvm::logicalview::LVSymbol::kind(), llvm::logicalview::Location, llvm::logicalview::Offset, llvm::logicalview::options(), OS, llvm::logicalview::LVObject::Symbol, and llvm::dwarf::TagString().
void LVScopeCompileUnit::processRangeLocationCoverage | ( | LVValidLocation | ValidLocation = &LVLocation::validateRanges | ) |
Definition at line 1216 of file LVScope.cpp.
References addInvalidLocation(), addInvalidRange(), llvm::logicalview::LVScope::getLocations(), llvm::logicalview::LVScope::getRanges(), llvm::logicalview::Location, llvm::logicalview::Locations, and llvm::logicalview::options().
void LVScopeCompileUnit::propagatePatternMatch | ( | ) |
Definition at line 1197 of file LVScope.cpp.
References llvm::logicalview::options(), llvm::logicalview::LVObject::Scope, llvm::SmallVectorBase< Size_T >::size(), and llvm::logicalview::LVScope::traverseParentsAndChildren().
|
inline |
Definition at line 527 of file LVScope.h.
References llvm::logicalview::LVStringPool::getIndex(), and llvm::logicalview::getStringPool().
|
inline |
|
inlineoverridevirtual |
Reimplemented from llvm::logicalview::LVElement.
Definition at line 539 of file LVScope.h.
References llvm::logicalview::LVStringPool::getIndex(), and llvm::logicalview::getStringPool().
LVNameInfo llvm::logicalview::LVScopeCompileUnit::NameNone = {UINT64_MAX, 0} |
Definition at line 505 of file LVScope.h.
Referenced by findPublicName().