llvm::sampleprof::SampleProfileReader::read

Read sample profiles for selected functions into Profiles.

Synopsis

Declared in <llvm/ProfileData/SampleProfReader.h>

virtual
std::error_code
read(
    DenseSet<StringRef> const& FuncsToUse,
    SampleProfileMap& Profiles);

Description

Currently it's only used for extended binary format to load the profiles on-demand.

Return Value

Success, or an error if reading fails.

Parameters

NameDescription
FuncsToUseFunctions whose profiles should be loaded.
ProfilesMap receiving the loaded FunctionSamples.