llvm::getNumBranchWeights

Return the number of branch weights stored in ProfileData

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

unsigned int
getNumBranchWeights(MDNode const& ProfileData);

Return Value

The number of branch weights in ProfileData.

Parameters

NameDescription
ProfileDataThe MD_prof metadata node to inspect