LLVM 19.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 1392 of file SampleProf.h.

Constructor & Destructor Documentation

◆ ProfileConverter()

ProfileConverter::ProfileConverter ( SampleProfileMap Profiles)

Definition at line 428 of file SampleProf.cpp.

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

Member Function Documentation

◆ convertCSProfiles()

void ProfileConverter::convertCSProfiles ( )

Definition at line 503 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 1424 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: