LLVM 22.0.0git
|
Helper class to iterate through stack ids in both metadata (memprof MIB and callsite) and the corresponding ThinLTO summary data structures (CallsiteInfo and MIBInfo). More...
#include "llvm/Analysis/MemoryProfileInfo.h"
Classes | |
struct | CallStackIterator |
Public Member Functions | |
CallStack (const NodeT *N=nullptr) | |
bool | empty () const |
CallStackIterator | begin () const |
CallStackIterator | end () const |
CallStackIterator | beginAfterSharedPrefix (const CallStack &Other) |
uint64_t | back () const |
LLVM_ABI uint64_t | back () const |
Helper class to iterate through stack ids in both metadata (memprof MIB and callsite) and the corresponding ThinLTO summary data structures (CallsiteInfo and MIBInfo).
This simplifies implementation of client code which doesn't need to worry about whether we are operating with IR (Regular LTO), or summary (ThinLTO).
Definition at line 178 of file MemoryProfileInfo.h.
|
inline |
Definition at line 180 of file MemoryProfileInfo.h.
uint64_t llvm::memprof::CallStack< NodeT, IteratorT >::back |
Definition at line 225 of file MemoryProfileInfo.h.
References assert().
LLVM_ABI uint64_t llvm::memprof::CallStack< MDNode, MDNode::op_iterator >::back | ( | ) | const |
CallStack< NodeT, IteratorT >::CallStackIterator llvm::memprof::CallStack< NodeT, IteratorT >::begin |
Definition at line 232 of file MemoryProfileInfo.h.
Referenced by llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix().
CallStack< NodeT, IteratorT >::CallStackIterator llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix | ( | const CallStack< NodeT, IteratorT > & | Other | ) |
Definition at line 238 of file MemoryProfileInfo.h.
References assert(), llvm::memprof::CallStack< NodeT, IteratorT >::begin(), llvm::memprof::CallStack< NodeT, IteratorT >::end(), and llvm::Other.
Referenced by checkAllocContextIds(), and computeFunctionSummary().
|
inline |
Definition at line 196 of file MemoryProfileInfo.h.
Referenced by computeFunctionSummary().
|
inline |
Definition at line 199 of file MemoryProfileInfo.h.
Referenced by llvm::memprof::CallStack< NodeT, IteratorT >::beginAfterSharedPrefix(), checkAllocContextIds(), and computeFunctionSummary().