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, 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 58 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 60 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 69 of file MemProf.h.

References deserialize(), and Ptr.

Member Function Documentation

◆ clear()

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

Definition at line 140 of file MemProf.h.

References PortableMemInfoBlock().

◆ deserialize()

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

Definition at line 75 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 127 of file MemProf.h.

◆ operator!=()

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

Definition at line 155 of file MemProf.h.

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

◆ operator==()

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

Definition at line 142 of file MemProf.h.

References llvm::Other.

Referenced by operator!=().

◆ printYAML()

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

Definition at line 118 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 99 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: