llvm::hasProfMD

Checks if an Instruction has MD_prof Metadata

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

bool
hasProfMD(Instruction const& I);

Return Value

True if I has MD_prof metadata. False otherwise.

Parameters

NameDescription
IThe instruction to check