llvm::getPGOFuncName

getPGOFuncName overloads

Synopses

Declared in <llvm/ProfileData/InstrProf.h>

Return a front-end PGO lookup name for function F.

std::string
getPGOFuncName(
    Function const& F,
    bool InLTO = false,
    uint64_t Version = INSTR_PROF_INDEX_VERSION);
» more...

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

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

Return Value

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

Parameters

NameDescription
FFunction whose profile name is formed.
InLTOWhether this is called from LTO optimization passes.
VersionIndexed profile format version used when forming the name.
RawFuncNameOriginal function name.
LinkageLinkage of the function.
FileNameSource module file name used for local-linkage mangling.