LLVM 20.0.0git
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::sampleprof::ProfileConverter Class Reference

Helper class for profile conversion. More...

#include "llvm/ProfileData/SampleProf.h"

Classes

struct  FrameNode
 

Public Member Functions

 ProfileConverter (SampleProfileMap &Profiles)
 
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 1399 of file SampleProf.h.

Constructor & Destructor Documentation

◆ ProfileConverter()

ProfileConverter::ProfileConverter ( SampleProfileMap Profiles)

Definition at line 444 of file SampleProf.cpp.

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

Member Function Documentation

◆ convertCSProfiles()

void ProfileConverter::convertCSProfiles ( )

Definition at line 519 of file SampleProf.cpp.

References convertCSProfiles().

Referenced by convertCSProfiles().

◆ flattenProfile() [1/2]

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

Definition at line 1431 of file SampleProf.h.

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

◆ flattenProfile() [2/2]

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

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