LLVM  16.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"

Collaboration diagram for llvm::memprof::Frame:
Collaboration graph
[legend]

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
 
llvm::Optional< std::string > SymbolName
 
uint32_t LineOffset
 
uint32_t Column
 
bool IsInlineFrame
 

Detailed Description

Definition at line 141 of file MemProf.h.

Constructor & Destructor Documentation

◆ Frame() [1/2]

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

Definition at line 156 of file MemProf.h.

References Other, and llvm::AMDGPU::HSAMD::Kernel::Key::SymbolName.

◆ Frame() [2/2]

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

Definition at line 164 of file MemProf.h.

Member Function Documentation

◆ deserialize()

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

Definition at line 203 of file MemProf.h.

References F, I, Ptr, and support().

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

◆ hash()

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

Definition at line 233 of file MemProf.h.

References Seed.

◆ operator!=()

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

Definition at line 183 of file MemProf.h.

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

◆ operator=()

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

Definition at line 174 of file MemProf.h.

References Other, and llvm::AMDGPU::HSAMD::Kernel::Key::SymbolName.

◆ operator==()

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

Definition at line 167 of file MemProf.h.

References Other.

◆ printYAML()

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

Definition at line 221 of file MemProf.h.

References llvm::AMDGPU::HSAMD::Kernel::Key::SymbolName.

◆ serialize()

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

◆ serializedSize()

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

Definition at line 215 of file MemProf.h.

References Column, Function, IsInlineFrame, and LineOffset.

Referenced by llvm::memprof::FrameWriterTrait::EmitKeyDataLength().

Member Data Documentation

◆ Column

uint32_t llvm::memprof::Frame::Column

Definition at line 152 of file MemProf.h.

Referenced by computeStackId(), and serializedSize().

◆ Function

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

Definition at line 144 of file MemProf.h.

Referenced by computeStackId(), and serializedSize().

◆ IsInlineFrame

bool llvm::memprof::Frame::IsInlineFrame

Definition at line 154 of file MemProf.h.

Referenced by serializedSize().

◆ LineOffset

uint32_t llvm::memprof::Frame::LineOffset

Definition at line 149 of file MemProf.h.

Referenced by computeStackId(), and serializedSize().

◆ SymbolName

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

Definition at line 147 of file MemProf.h.


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