LLVM 22.0.0git
llvm::ctx_profile::ProfileWriter Class Referenceabstract

Abstraction for the parameter passed to __llvm_ctx_profile_fetch. More...

#include "llvm/ProfileData/CtxInstrContextNode.h"

Inheritance diagram for llvm::ctx_profile::ProfileWriter:
[legend]

Public Member Functions

virtual void startContextSection ()=0
virtual void writeContextual (const ctx_profile::ContextNode &RootNode, const ctx_profile::ContextNode *Unhandled, uint64_t TotalRootEntryCount)=0
virtual void endContextSection ()=0
virtual void startFlatSection ()=0
virtual void writeFlat (ctx_profile::GUID Guid, const uint64_t *Buffer, size_t BufferSize)=0
virtual void endFlatSection ()=0
virtual ~ProfileWriter ()=default

Detailed Description

Abstraction for the parameter passed to __llvm_ctx_profile_fetch.

startContextSection is called before any context roots are sent for writing. Then one or more writeContextual calls are made; finally, endContextSection is called.

Definition at line 140 of file CtxInstrContextNode.h.

Constructor & Destructor Documentation

◆ ~ProfileWriter()

virtual llvm::ctx_profile::ProfileWriter::~ProfileWriter ( )
virtualdefault

Member Function Documentation

◆ endContextSection()

virtual void llvm::ctx_profile::ProfileWriter::endContextSection ( )
pure virtual

Implemented in llvm::PGOCtxProfileWriter.

◆ endFlatSection()

virtual void llvm::ctx_profile::ProfileWriter::endFlatSection ( )
pure virtual

Implemented in llvm::PGOCtxProfileWriter.

◆ startContextSection()

virtual void llvm::ctx_profile::ProfileWriter::startContextSection ( )
pure virtual

Implemented in llvm::PGOCtxProfileWriter.

◆ startFlatSection()

virtual void llvm::ctx_profile::ProfileWriter::startFlatSection ( )
pure virtual

Implemented in llvm::PGOCtxProfileWriter.

◆ writeContextual()

virtual void llvm::ctx_profile::ProfileWriter::writeContextual ( const ctx_profile::ContextNode & RootNode,
const ctx_profile::ContextNode * Unhandled,
uint64_t TotalRootEntryCount )
pure virtual

◆ writeFlat()

virtual void llvm::ctx_profile::ProfileWriter::writeFlat ( ctx_profile::GUID Guid,
const uint64_t * Buffer,
size_t BufferSize )
pure virtual

Implemented in llvm::PGOCtxProfileWriter.

References llvm::Guid.


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