Returns a metadata node containing unknown branch weights if the function has an entry count, otherwise returns nullptr.

Synopsis

Declared in <llvm/IR/ProfDataUtils.h>

MDNode*
getExplicitlyUnknownBranchWeightsIfProfiled(
    Function& F,
    StringRef PassName);

Return Value

A metadata node with unknown branch weights if F has an entry count; nullptr otherwise.

Parameters

Name

Description

F

The function whose entry count is checked.

PassName

The pass name (typically DEBUG_TYPE) recorded for debugging.

Created with MrDocs