llvm::hasBranchWeightMD

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

NameDescription
IThe instruction to check