LLVM API Documentation

Public Member Functions | Static Public Attributes
llvm::MachineBranchProbabilityInfo Class Reference

#include <MachineBranchProbabilityInfo.h>

Inheritance diagram for llvm::MachineBranchProbabilityInfo:
Inheritance graph
[legend]
Collaboration diagram for llvm::MachineBranchProbabilityInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MachineBranchProbabilityInfo ()
void getAnalysisUsage (AnalysisUsage &AU) const override
uint32_t getEdgeWeight (const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
uint32_t getEdgeWeight (const MachineBasicBlock *Src, MachineBasicBlock::const_succ_iterator Dst) const
uint32_t getSumForBlock (const MachineBasicBlock *MBB, uint32_t &Scale) const
bool isEdgeHot (const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
MachineBasicBlockgetHotSucc (MachineBasicBlock *MBB) const
BranchProbability getEdgeProbability (const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
raw_ostreamprintEdgeProbability (raw_ostream &OS, const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const

Static Public Attributes

static char ID = 0

Detailed Description

Definition at line 24 of file MachineBranchProbabilityInfo.h.


Constructor & Destructor Documentation


Member Function Documentation

void llvm::MachineBranchProbabilityInfo::getAnalysisUsage ( AnalysisUsage ) const [inline, override, virtual]

getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.

Reimplemented from llvm::Pass.

Definition at line 43 of file MachineBranchProbabilityInfo.h.

References llvm::AnalysisUsage::setPreservesAll().

Definition at line 64 of file MachineBranchProbabilityInfo.cpp.

uint32_t MachineBranchProbabilityInfo::getSumForBlock ( const MachineBasicBlock MBB,
uint32_t &  Scale 
) const

Definition at line 81 of file MachineBranchProbabilityInfo.cpp.

References getEdgeProbability().

Referenced by printEdgeProbability().


Member Data Documentation

machine branch Machine Branch Probability true char MachineBranchProbabilityInfo::ID = 0 [static]

Definition at line 36 of file MachineBranchProbabilityInfo.h.


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