Checks if an instructions has Branch Weight Metadata

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

bool
hasBranchWeightMD(Instruction const& I);

Return Value

True if I has an MD_prof node containing Branch Weights. False otherwise.

Parameters

Name

Description

I

The instruction to check

Created with MrDocs