getEdgeProbability overloads

Synopses

Declared in <llvm/CodeGen/MachineBranchProbabilityInfo.h>

Get an edge's probability by successor index.

BranchProbability
getEdgeProbability(
    MachineBasicBlock const* Src,
    unsigned int SuccIdx) const;

Get the probability of going from Src to Dst.

Return Value

  • Relative probability of the edge, never zero.

  • Sum of probabilities of all edges from Src to Dst.

Parameters

Name

Description

Src

Source block of the edge.

SuccIdx

Index of the successor edge leaving Src.

Dst

Destination block of the edge(s).

Created with MrDocs