Check if Branch Weight Metadata has an "expected" field from an llvm.expect* intrinsic

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

bool
hasBranchWeightOrigin(MDNode const* ProfileData);

Return Value

True if ProfileData has an "expected" field from an llvm.expect* intrinsic. False otherwise.

Parameters

Name

Description

ProfileData

The MD_prof metadata node to inspect

Created with MrDocs