llvm::SampleProfileLoaderPass::SampleProfileLoaderPass

Construct a sample profile loader pass.

Synopsis

Declared in <llvm/Transforms/IPO/SampleProfile.h>

SampleProfileLoaderPass(
    std::string File = "",
    std::string RemappingFile = "",
    ThinOrFullLTOPhase LTOPhase = ThinOrFullLTOPhase::None,
    IntrusiveRefCntPtr<vfs::FileSystem> FS = nullptr,
    bool DisableSampleProfileInlining = false,
    bool UseFlattenedProfile = false);

Parameters

NameDescription
FilePath to the sample profile file; empty uses the default.
RemappingFileOptional profile remapping file path.
LTOPhaseThin/full LTO phase in which this pass runs.
FSFile system used to read profile and remapping files.
DisableSampleProfileInliningIf true, skip inline transforms.
UseFlattenedProfileIf true, load a flattened sample profile.