LLVM 20.0.0git
|
#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_ostream & | printEdgeProbability (raw_ostream &OS, const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const |
Definition at line 23 of file MachineBranchProbabilityInfo.h.
BranchProbability MachineBranchProbabilityInfo::getEdgeProbability | ( | const MachineBasicBlock * | Src, |
const MachineBasicBlock * | Dst | ||
) | const |
Definition at line 88 of file MachineBranchProbabilityInfo.cpp.
References llvm::find(), and getEdgeProbability().
Referenced by llvm::AsmPrinter::emitBBAddrMapSection(), llvm::X86AsmPrinter::emitInstruction(), llvm::RegBankSelect::EdgeInsertPoint::frequency(), llvm::HexagonInstrInfo::getDotNewPredJumpOp(), getEdgeProbability(), getNewValueJumpOpcode(), isEdgeHot(), llvm::MachineBlockFrequencyInfo::onEdgeSplit(), printEdgeProbability(), llvm::MIRProfileLoader::setBranchProbs(), and splitMBB().
BranchProbability MachineBranchProbabilityInfo::getEdgeProbability | ( | const MachineBasicBlock * | Src, |
MachineBasicBlock::const_succ_iterator | Dst | ||
) | const |
Definition at line 82 of file MachineBranchProbabilityInfo.cpp.
bool MachineBranchProbabilityInfo::invalidate | ( | MachineFunction & | , |
const PreservedAnalyses & | PA, | ||
MachineFunctionAnalysisManager::Invalidator & | |||
) |
Definition at line 75 of file MachineBranchProbabilityInfo.cpp.
References llvm::PreservedAnalyses::getChecker().
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().
raw_ostream & MachineBranchProbabilityInfo::printEdgeProbability | ( | raw_ostream & | OS, |
const MachineBasicBlock * | Src, | ||
const MachineBasicBlock * | Dst | ||
) | const |
Definition at line 101 of file MachineBranchProbabilityInfo.cpp.
References getEdgeProbability(), isEdgeHot(), OS, and llvm::printMBBReference().