14 #ifndef LLVM_CODEGEN_MACHINEBRANCHPROBABILITYINFO_H
15 #define LLVM_CODEGEN_MACHINEBRANCHPROBABILITYINFO_H
26 virtual void anchor();
34 static const uint32_t DEFAULT_WEIGHT = 16;
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
A global registry used in conjunction with static constructors to make pluggable components (like tar...
MachineBranchProbabilityInfo()
Represent the analysis usage information of a pass.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
ImmutablePass class - This class is used to provide information that does not need to be run...
MachineBasicBlock * getHotSucc(MachineBasicBlock *MBB) const
void setPreservesAll()
Set by analyses that do not transform their input at all.
bool isEdgeHot(const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
void initializeMachineBranchProbabilityInfoPass(PassRegistry &)
std::vector< MachineBasicBlock * >::const_iterator const_succ_iterator
This class implements an extremely fast bulk output stream that can only output to a stream...
raw_ostream & printEdgeProbability(raw_ostream &OS, const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
BranchProbability getEdgeProbability(const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const