llvm::getPGOFuncName

Return a front-end PGO lookup name from raw name, linkage, and file name.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

std::string
getPGOFuncName(
    StringRef RawFuncName,
    GlobalValue::LinkageTypes Linkage,
    StringRef FileName,
    uint64_t Version = INSTR_PROF_INDEX_VERSION);

Description

The function's original name is RawFuncName and has linkage of type Linkage. The function is defined in module FileName.

Return Value

Front-end PGO lookup name for the given function identity.

Parameters

NameDescription
RawFuncNameOriginal function name.
LinkageLinkage of the function.
FileNameSource module file name used for local-linkage mangling.
VersionIndexed profile format version used when forming the name.