LLVM 20.0.0git
Public Member Functions | List of all members
llvm::MachineBranchProbabilityInfo Class Reference

#include "llvm/CodeGen/MachineBranchProbabilityInfo.h"

Public Member Functions

bool invalidate (MachineFunction &, const PreservedAnalyses &PA, MachineFunctionAnalysisManager::Invalidator &)
 
BranchProbability getEdgeProbability (const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
 
BranchProbability getEdgeProbability (const MachineBasicBlock *Src, MachineBasicBlock::const_succ_iterator Dst) const
 
bool isEdgeHot (const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
 
raw_ostreamprintEdgeProbability (raw_ostream &OS, const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
 

Detailed Description

Definition at line 23 of file MachineBranchProbabilityInfo.h.

Member Function Documentation

◆ getEdgeProbability() [1/2]

BranchProbability MachineBranchProbabilityInfo::getEdgeProbability ( const MachineBasicBlock Src,
const MachineBasicBlock Dst 
) const

◆ getEdgeProbability() [2/2]

BranchProbability MachineBranchProbabilityInfo::getEdgeProbability ( const MachineBasicBlock Src,
MachineBasicBlock::const_succ_iterator  Dst 
) const

Definition at line 82 of file MachineBranchProbabilityInfo.cpp.

◆ invalidate()

bool MachineBranchProbabilityInfo::invalidate ( MachineFunction ,
const PreservedAnalyses PA,
MachineFunctionAnalysisManager::Invalidator  
)

◆ isEdgeHot()

bool MachineBranchProbabilityInfo::isEdgeHot ( const MachineBasicBlock Src,
const MachineBasicBlock Dst 
) const

Definition at line 95 of file MachineBranchProbabilityInfo.cpp.

References getEdgeProbability(), and llvm::StaticLikelyProb.

Referenced by printEdgeProbability().

◆ printEdgeProbability()

raw_ostream & MachineBranchProbabilityInfo::printEdgeProbability ( raw_ostream OS,
const MachineBasicBlock Src,
const MachineBasicBlock Dst 
) const

The documentation for this class was generated from the following files: