llvm::extractProfTotalWeight

Retrieve the total of all weights from MD_prof data.

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

bool
extractProfTotalWeight(
    MDNode const* ProfileData,
    uint64_t& TotalWeights);

Return Value

True on success with profile total weights filled in. False if no metadata was found.

Parameters

NameDescription
ProfileDataThe profile data to extract the total weight from
TotalWeights [out]input variable to fill with total weights