ΒΆvoid annotateValueSite(
    llvm::Module& M,
    llvm::Instruction& Inst,
    const llvm::InstrProfRecord& InstrProfR,
    llvm::InstrProfValueKind ValueKind,
    uint32_t SiteIndx,
    uint32_t MaxMDCount = 3)

Description

Get the value profile data for value site \p SiteIdx from \p InstrProfR and annotate the instruction \p Inst with the value profile meta data. Annotate up to \p MaxMDCount (default 3) number of records per value site.

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

Parameters

llvm::Module& M
llvm::Instruction& Inst
const llvm::InstrProfRecord& InstrProfR
llvm::InstrProfValueKind ValueKind
uint32_t SiteIndx
uint32_t MaxMDCount = 3