Returns a metadata node containing unknown branch weights if the function has an entry count, otherwise returns nullptr.
Declared in <llvm/IR/ProfDataUtils.h>
MDNode*
getExplicitlyUnknownBranchWeightsIfProfiled(
Function& F,
StringRef PassName);
A metadata node with unknown branch weights if F has an entry count; nullptr otherwise.
| Name | Description |
|---|---|
| F | The function whose entry count is checked. |
| PassName | The pass name (typically DEBUG_TYPE) recorded for debugging. |