LLVM 22.0.0git
llvm::sampleprof::ProfileConverter Class Reference

Helper class for profile conversion. More...

#include "llvm/ProfileData/SampleProf.h"

Classes

struct  FrameNode

Public Member Functions

LLVM_ABI ProfileConverter (SampleProfileMap &Profiles)
LLVM_ABI void convertCSProfiles ()

Static Public Member Functions

static void flattenProfile (SampleProfileMap &ProfileMap, bool ProfileIsCS=false)
static void flattenProfile (const SampleProfileMap &InputProfiles, SampleProfileMap &OutputProfiles, bool ProfileIsCS=false)

Detailed Description

Helper class for profile conversion.

It supports full context-sensitive profile to nested profile conversion, nested profile to flatten profile conversion, etc.

Definition at line 1527 of file SampleProf.h.

Constructor & Destructor Documentation

◆ ProfileConverter()

ProfileConverter::ProfileConverter ( SampleProfileMap & Profiles)

Definition at line 512 of file SampleProf.cpp.

References assert(), and llvm::sampleprof::FunctionSamples::getContext().

Member Function Documentation

◆ convertCSProfiles()

void ProfileConverter::convertCSProfiles ( )

Definition at line 587 of file SampleProf.cpp.

References convertCSProfiles().

Referenced by convertCSProfiles().

◆ flattenProfile() [1/2]

void llvm::sampleprof::ProfileConverter::flattenProfile ( const SampleProfileMap & InputProfiles,
SampleProfileMap & OutputProfiles,
bool ProfileIsCS = false )
inlinestatic

Definition at line 1559 of file SampleProf.h.

References llvm::sampleprof::SampleProfileMap::create(), and I.

◆ flattenProfile() [2/2]

void llvm::sampleprof::ProfileConverter::flattenProfile ( SampleProfileMap & ProfileMap,
bool ProfileIsCS = false )
inlinestatic

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