Check if Branch Weight Metadata has an "expected" field from an llvm.expect* intrinsic
Declared in <llvm/IR/ProfDataUtils.h>
Check if Branch Weight Metadata has an "expected" field from an llvm.expect* intrinsic
bool
hasBranchWeightOrigin(Instruction const& I);
» more...
Check if Branch Weight Metadata has an "expected" field from an llvm.expect* intrinsic
bool
hasBranchWeightOrigin(MDNode const* ProfileData);
» more...
| Name | Description |
|---|---|
| I | The instruction to check |
| ProfileData | The MD_prof metadata node to inspect |