llvm::createPGOFuncNameVar

Create the global variable that stores F's PGO function name.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

GlobalVariable*
createPGOFuncNameVar(
    Function& F,
    StringRef PGOFuncName);

Description

PGOFuncName is the IRPGO name for LLVM IR instrumentation or the PGO name for front-end instrumentation.

Return Value

Newly created PGO function-name global variable.

Parameters

NameDescription
FFunction that owns the name variable.
PGOFuncNamePGO name string stored in the variable.