LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::memprof::Frame Struct Reference

#include "llvm/ProfileData/MemProf.h"

Public Member Functions

 Frame (const Frame &Other)
 
 Frame (uint64_t Hash, uint32_t Off, uint32_t Col, bool Inline)
 
bool operator== (const Frame &Other) const
 
Frameoperator= (const Frame &Other)
 
bool operator!= (const Frame &Other) const
 
void serialize (raw_ostream &OS) const
 
void printYAML (raw_ostream &OS) const
 
FrameId hash () const
 

Static Public Member Functions

static Frame deserialize (const unsigned char *Ptr)
 
static constexpr size_t serializedSize ()
 

Public Attributes

GlobalValue::GUID Function
 
std::optional< std::string > SymbolName
 
uint32_t LineOffset
 
uint32_t Column
 
bool IsInlineFrame
 

Detailed Description

Definition at line 142 of file MemProf.h.

Constructor & Destructor Documentation

◆ Frame() [1/2]

llvm::memprof::Frame::Frame ( const Frame Other)
inline

Definition at line 157 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, llvm::Other, and SymbolName.

◆ Frame() [2/2]

llvm::memprof::Frame::Frame ( uint64_t  Hash,
uint32_t  Off,
uint32_t  Col,
bool  Inline 
)
inline

Definition at line 165 of file MemProf.h.

Member Function Documentation

◆ deserialize()

static Frame llvm::memprof::Frame::deserialize ( const unsigned char Ptr)
inlinestatic

Definition at line 204 of file MemProf.h.

References llvm::CallingConv::C, F, I, and Ptr.

Referenced by llvm::memprof::FrameLookupTrait::ReadData().

◆ hash()

FrameId llvm::memprof::Frame::hash ( ) const
inline

Definition at line 238 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, and Seed.

◆ operator!=()

bool llvm::memprof::Frame::operator!= ( const Frame Other) const
inline

Definition at line 184 of file MemProf.h.

References operator==(), and llvm::Other.

◆ operator=()

Frame & llvm::memprof::Frame::operator= ( const Frame Other)
inline

Definition at line 175 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, llvm::Other, and SymbolName.

◆ operator==()

bool llvm::memprof::Frame::operator== ( const Frame Other) const
inline

Definition at line 168 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, and llvm::Other.

Referenced by operator!=().

◆ printYAML()

void llvm::memprof::Frame::printYAML ( raw_ostream OS) const
inline

Definition at line 226 of file MemProf.h.

References Column, IsInlineFrame, LineOffset, OS, and SymbolName.

◆ serialize()

void llvm::memprof::Frame::serialize ( raw_ostream OS) const
inline

Definition at line 187 of file MemProf.h.

References Column, Function, IsInlineFrame, LineOffset, llvm::little, and OS.

◆ serializedSize()

static constexpr size_t llvm::memprof::Frame::serializedSize ( )
inlinestaticconstexpr

Definition at line 220 of file MemProf.h.

References Column, Function, IsInlineFrame, and LineOffset.

Member Data Documentation

◆ Column

uint32_t llvm::memprof::Frame::Column

◆ Function

GlobalValue::GUID llvm::memprof::Frame::Function

Definition at line 145 of file MemProf.h.

Referenced by computeStackId(), serialize(), and serializedSize().

◆ IsInlineFrame

bool llvm::memprof::Frame::IsInlineFrame

Definition at line 155 of file MemProf.h.

Referenced by Frame(), hash(), operator=(), operator==(), printYAML(), serialize(), and serializedSize().

◆ LineOffset

uint32_t llvm::memprof::Frame::LineOffset

◆ SymbolName

std::optional<std::string> llvm::memprof::Frame::SymbolName

Definition at line 148 of file MemProf.h.

Referenced by Frame(), operator=(), and printYAML().


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