LLVM 22.0.0git
llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator Struct Reference

#include "llvm/Analysis/MemoryProfileInfo.h"

Public Member Functions

 CallStackIterator (const NodeT *N, bool End)
uint64_t operator* ()
bool operator== (const CallStackIterator &rhs)
bool operator!= (const CallStackIterator &rhs)
void operator++ ()
LLVM_ABI CallStackIterator (const MDNode *N, bool End)
 Specializations for iterating through IR metadata stack contexts.
LLVM_ABI uint64_t operator* ()

Public Attributes

const NodeT * N = nullptr
IteratorT Iter

Detailed Description

template<class NodeT, class IteratorT>
struct llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator

Definition at line 194 of file MemoryProfileInfo.h.

Constructor & Destructor Documentation

◆ CallStackIterator() [1/2]

template<class NodeT, class IteratorT>
llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::CallStackIterator ( const NodeT * N,
bool End )

Definition at line 216 of file MemoryProfileInfo.h.

References Iter, and N.

Referenced by operator!=(), and operator==().

◆ CallStackIterator() [2/2]

Specializations for iterating through IR metadata stack contexts.

References LLVM_ABI, and N.

Member Function Documentation

◆ operator!=()

template<class NodeT, class IteratorT>
bool llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::operator!= ( const CallStackIterator & rhs)
inline

Definition at line 200 of file MemoryProfileInfo.h.

References CallStackIterator().

◆ operator*() [1/2]

template<class NodeT, class IteratorT>
uint64_t llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::operator* ( )

Definition at line 227 of file MemoryProfileInfo.h.

References assert(), Iter, and N.

◆ operator*() [2/2]

◆ operator++()

template<class NodeT, class IteratorT>
void llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::operator++ ( )
inline

Definition at line 201 of file MemoryProfileInfo.h.

References Iter.

◆ operator==()

template<class NodeT, class IteratorT>
bool llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::operator== ( const CallStackIterator & rhs)
inline

Definition at line 199 of file MemoryProfileInfo.h.

References CallStackIterator(), and Iter.

Member Data Documentation

◆ Iter

template<class NodeT, class IteratorT>
IteratorT llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::Iter

Definition at line 196 of file MemoryProfileInfo.h.

Referenced by CallStackIterator(), operator*(), operator++(), and operator==().

◆ N

template<class NodeT, class IteratorT>
const NodeT* llvm::memprof::CallStack< NodeT, IteratorT >::CallStackIterator::N = nullptr

Definition at line 195 of file MemoryProfileInfo.h.

Referenced by CallStackIterator(), CallStackIterator(), and operator*().


The documentation for this struct was generated from the following file: