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 48 of file MemProf.h.

Constructor & Destructor Documentation

◆ PortableMemInfoBlock() [1/3]

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

Referenced by clear().

◆ PortableMemInfoBlock() [2/3]

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

Definition at line 50 of file MemProf.h.

◆ PortableMemInfoBlock() [3/3]

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

Definition at line 56 of file MemProf.h.

References deserialize(), and Ptr.

Member Function Documentation

◆ clear()

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

Definition at line 115 of file MemProf.h.

References PortableMemInfoBlock().

◆ deserialize()

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

Definition at line 62 of file MemProf.h.

References llvm_unreachable.

Referenced by PortableMemInfoBlock().

◆ getSchema()

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

Definition at line 118 of file MemProf.h.

References llvm::List.

Referenced by writeMemProfV0(), and writeMemProfV1().

◆ operator!=()

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

Definition at line 135 of file MemProf.h.

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

◆ operator==()

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

Definition at line 126 of file MemProf.h.

Referenced by operator!=().

◆ printYAML()

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

Definition at line 101 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

Definition at line 82 of file MemProf.h.

References llvm::little, llvm_unreachable, and OS.

◆ serializedSize()

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

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