llvm::memprof::getGUID

Return the memprof GUID for FunctionName after LTO suffix canonicalization.

Synopsis

Declared in <llvm/ProfileData/MemProf.h>

GlobalValue::GUID
getGUID(StringRef const FunctionName);

Description

For memprof, any .llvm suffix added by LTO is removed. MemProfRecords are mapped to functions using this GUID.

Return Value

Function GUID used to map MemProfRecords.

Parameters

NameDescription
FunctionNamePossibly LTO-suffixed function name.