LLVM  17.0.0git
Public Member Functions | List of all members
llvm::sampleprof::SampleProfileWriterExtBinary Class Reference

#include "llvm/ProfileData/SampleProfWriter.h"

Inheritance diagram for llvm::sampleprof::SampleProfileWriterExtBinary:
Inheritance graph
Collaboration diagram for llvm::sampleprof::SampleProfileWriterExtBinary:
Collaboration graph

Public Member Functions

 SampleProfileWriterExtBinary (std::unique_ptr< raw_ostream > &OS)
- Public Member Functions inherited from llvm::sampleprof::SampleProfileWriterExtBinaryBase
std::error_code write (const SampleProfileMap &ProfileMap) override
 Write all the sample profiles in the given map of samples. More...
void setToCompressAllSections () override
void setToCompressSection (SecType Type)
std::error_code writeSample (const FunctionSamples &S) override
 Write samples of a top-level function to a binary file. More...
void setUseMD5 () override
void setPartialProfile () override
void setProfileSymbolList (ProfileSymbolList *PSL) override
void resetSecLayout (SectionLayout SL) override
- Public Member Functions inherited from llvm::sampleprof::SampleProfileWriterBinary
 SampleProfileWriterBinary (std::unique_ptr< raw_ostream > &OS)
- Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter
virtual ~SampleProfileWriter ()=default
raw_ostreamgetOutputStream ()

Additional Inherited Members

- Static Public Member Functions inherited from llvm::sampleprof::SampleProfileWriter
static ErrorOr< std::unique_ptr< SampleProfileWriter > > create (StringRef Filename, SampleProfileFormat Format)
 Profile writer factory. More...
static ErrorOr< std::unique_ptr< SampleProfileWriter > > create (std::unique_ptr< raw_ostream > &OS, SampleProfileFormat Format)
 Create a new stream writer based on the value of Format. More...
- Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriterExtBinaryBase
uint64_t markSectionStart (SecType Type, uint32_t LayoutIdx)
 Return the current position and prepare to use it as the start position of a section given the section type Type and its position LayoutIdx in SectionHdrLayout. More...
std::error_code addNewSection (SecType Sec, uint32_t LayoutIdx, uint64_t SectionStart)
 Add a new section into section header table given the section type Type, its position LayoutIdx in SectionHdrLayout and the location SectionStart where the section should be written to. More...
template<class SecFlagType >
void addSectionFlag (SecType Type, SecFlagType Flag)
template<class SecFlagType >
void addSectionFlag (uint32_t SectionIdx, SecFlagType Flag)
void addContext (const SampleContext &Context) override
virtual std::error_code writeOneSection (SecType Type, uint32_t LayoutIdx, const SampleProfileMap &ProfileMap)
std::error_code writeNameTable () override
std::error_code writeContextIdx (const SampleContext &Context) override
std::error_code writeCSNameIdx (const SampleContext &Context)
std::error_code writeCSNameTableSection ()
std::error_code writeFuncMetadata (const SampleProfileMap &Profiles)
std::error_code writeFuncMetadata (const FunctionSamples &Profile)
std::error_code writeNameTableSection (const SampleProfileMap &ProfileMap)
std::error_code writeFuncOffsetTable ()
std::error_code writeProfileSymbolListSection ()
- Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriterBinary
virtual MapVector< StringRef, uint32_t > & getNameTable ()
virtual std::error_code writeMagicIdent (SampleProfileFormat Format)
std::error_code writeSummary ()
std::error_code writeNameIdx (StringRef FName)
std::error_code writeBody (const FunctionSamples &S)
void stablizeNameTable (MapVector< StringRef, uint32_t > &NameTable, std::set< StringRef > &V)
void addName (StringRef FName)
void addNames (const FunctionSamples &S)
- Protected Member Functions inherited from llvm::sampleprof::SampleProfileWriter
 SampleProfileWriter (std::unique_ptr< raw_ostream > &OS)
virtual std::error_code writeFuncProfiles (const SampleProfileMap &ProfileMap)
void computeSummary (const SampleProfileMap &ProfileMap)
 Compute summary for this profile. More...
- Protected Attributes inherited from llvm::sampleprof::SampleProfileWriterExtBinaryBase
SectionLayout SecLayout = DefaultLayout
SmallVector< SecHdrTableEntry, 8 > SectionHdrLayout
uint64_t SecLBRProfileStart = 0
- Protected Attributes inherited from llvm::sampleprof::SampleProfileWriterBinary
MapVector< StringRef, uint32_tNameTable
- Protected Attributes inherited from llvm::sampleprof::SampleProfileWriter
std::unique_ptr< raw_ostreamOutputStream
 Output stream where to emit the profile to. More...
std::unique_ptr< ProfileSummarySummary
 Profile summary. More...
SampleProfileFormat Format = SPF_None
 Profile format. More...

Detailed Description

Definition at line 325 of file SampleProfWriter.h.

Constructor & Destructor Documentation

◆ SampleProfileWriterExtBinary()

llvm::sampleprof::SampleProfileWriterExtBinary::SampleProfileWriterExtBinary ( std::unique_ptr< raw_ostream > &  OS)

Definition at line 327 of file SampleProfWriter.h.

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