LLVM 20.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, const MemProfSchema &IncomingSchema)
 
 PortableMemInfoBlock (const MemProfSchema &Schema, const unsigned char *Ptr)
 
void deserialize (const MemProfSchema &IncomingSchema, const unsigned char *Ptr)
 
void serialize (const MemProfSchema &Schema, raw_ostream &OS) const
 
void printYAML (raw_ostream &OS) const
 
std::bitset< llvm::to_underlying(Meta::Size)> getSchema () const
 
void clear ()
 
bool operator== (const PortableMemInfoBlock &Other) const
 
bool operator!= (const PortableMemInfoBlock &Other) const
 

Static Public Member Functions

static size_t serializedSize (const MemProfSchema &Schema)
 

Detailed Description

Definition at line 61 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,
const MemProfSchema IncomingSchema 
)
inlineexplicit

Definition at line 63 of file MemProf.h.

References llvm::to_underlying().

◆ PortableMemInfoBlock() [3/3]

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

Definition at line 72 of file MemProf.h.

References deserialize(), and Ptr.

Member Function Documentation

◆ clear()

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

Definition at line 150 of file MemProf.h.

References PortableMemInfoBlock().

◆ deserialize()

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

Definition at line 78 of file MemProf.h.

References llvm_unreachable, and llvm::to_underlying().

Referenced by PortableMemInfoBlock().

◆ getSchema()

std::bitset< llvm::to_underlying(Meta::Size)> llvm::memprof::PortableMemInfoBlock::getSchema ( ) const
inline

Definition at line 137 of file MemProf.h.

◆ operator!=()

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

Definition at line 165 of file MemProf.h.

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

◆ operator==()

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

Definition at line 152 of file MemProf.h.

References llvm::Other.

Referenced by operator!=().

◆ printYAML()

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

Definition at line 121 of file MemProf.h.

References I, and OS.

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

◆ serialize()

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

Definition at line 102 of file MemProf.h.

References llvm::little, llvm_unreachable, and OS.

◆ serializedSize()

static size_t llvm::memprof::PortableMemInfoBlock::serializedSize ( const MemProfSchema Schema)
inlinestatic

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