llvm::getBranchWeightOffset

Return the offset to the first branch weight data

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

unsigned int
getBranchWeightOffset(MDNode const* ProfileData);

Return Value

The index of the first branch weight operand in ProfileData.

Parameters

NameDescription
ProfileDataThe MD_prof metadata node to inspect