Print an edge's probability.
Synopsis
Declared in <llvm/CodeGen/MachineBranchProbabilityInfo.h>
raw_ostream&
printEdgeProbability(
raw_ostream& OS,
MachineBasicBlock const* Src,
MachineBasicBlock const* Dst) const;
Description
Retrieves an edge's probability similarly to
Return Value
The output stream OS after writing.
Parameters
Name |
Description |
OS |
Output stream to write the probability to. |
Src |
Source block of the edge. |
Dst |
Destination block of the edge. |
See Also
getEdgeProbability, but then prints that probability to the provided stream. That stream is then returned. The printed value is between 0 (0% probability) and 1 (100% probability); it is never equal to 0, and can be 1 only if the source block has only one successor.
Created with MrDocs