ΒΆllvm::GlobalVariable* createPGOFuncNameVar(
    llvm::Module& M,
    GlobalValue::LinkageTypes Linkage,
    llvm::StringRef PGOFuncName)

Description

Create and return the global variable for function name used in PGO instrumentation. /// \c FuncName is the name of the function returned by \c getPGOFuncName call, \c M is the owning module, and \c Linkage is the linkage of the instrumented function.

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:196

Parameters

llvm::Module& M
GlobalValue::LinkageTypes Linkage
llvm::StringRef PGOFuncName