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

#include "llvm/ProfileData/MemProf.h"

Public Member Functions

 PortableMemInfoBlock ()=default
 
 PortableMemInfoBlock (const MemInfoBlock &Block)
 
 PortableMemInfoBlock (const MemProfSchema &Schema, const unsigned char *Ptr)
 
void deserialize (const MemProfSchema &Schema, const unsigned char *Ptr)
 
void serialize (const MemProfSchema &Schema, raw_ostream &OS) const
 
void printYAML (raw_ostream &OS) const
 
void clear ()
 
bool operator== (const PortableMemInfoBlock &Other) const
 
bool operator!= (const PortableMemInfoBlock &Other) const
 

Static Public Member Functions

static MemProfSchema getSchema ()
 
static constexpr size_t serializedSize ()
 

Detailed Description

Definition at line 50 of file MemProf.h.

Constructor & Destructor Documentation

◆ PortableMemInfoBlock() [1/3]

llvm::memprof::PortableMemInfoBlock::PortableMemInfoBlock ( )
default

Referenced by clear().

◆ PortableMemInfoBlock() [2/3]

llvm::memprof::PortableMemInfoBlock::PortableMemInfoBlock ( const MemInfoBlock &  Block)
inlineexplicit

Definition at line 52 of file MemProf.h.

◆ PortableMemInfoBlock() [3/3]

llvm::memprof::PortableMemInfoBlock::PortableMemInfoBlock ( const MemProfSchema Schema,
const unsigned char Ptr 
)
inline

Definition at line 58 of file MemProf.h.

References deserialize(), and Ptr.

Member Function Documentation

◆ clear()

void llvm::memprof::PortableMemInfoBlock::clear ( )
inline

Definition at line 117 of file MemProf.h.

References PortableMemInfoBlock().

◆ deserialize()

void llvm::memprof::PortableMemInfoBlock::deserialize ( const MemProfSchema Schema,
const unsigned char Ptr 
)
inline

Definition at line 64 of file MemProf.h.

References llvm_unreachable.

Referenced by PortableMemInfoBlock().

◆ getSchema()

static MemProfSchema llvm::memprof::PortableMemInfoBlock::getSchema ( )
inlinestatic

Definition at line 120 of file MemProf.h.

References llvm::List.

Referenced by writeMemProfV0(), and writeMemProfV1().

◆ operator!=()

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

Definition at line 137 of file MemProf.h.

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

◆ operator==()

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

Definition at line 128 of file MemProf.h.

Referenced by operator!=().

◆ printYAML()

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

Definition at line 103 of file MemProf.h.

References OS.

Referenced by llvm::memprof::AllocationInfo::printYAML().

◆ serialize()

void llvm::memprof::PortableMemInfoBlock::serialize ( const MemProfSchema Schema,
raw_ostream OS 
) const
inline

Definition at line 84 of file MemProf.h.

References llvm::little, llvm_unreachable, and OS.

◆ serializedSize()

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

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