14 #ifndef LLVM_CODEGEN_MACHINEBLOCKFREQUENCYINFO_H 15 #define LLVM_CODEGEN_MACHINEBLOCKFREQUENCYINFO_H 25 template <
class BlockT>
class BlockFrequencyInfoImpl;
26 class MachineBasicBlock;
27 class MachineBranchProbabilityInfo;
28 class MachineFunction;
29 class MachineLoopInfo;
36 std::unique_ptr<ImplType> MBFI;
85 #endif // LLVM_CODEGEN_MACHINEBLOCKFREQUENCYINFO_H This class represents lattice values for constants.
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic b...
amdgpu Simplify well known AMD library false Value Value const Twine & Name
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
void view(const Twine &Name, bool isSimple=true) const
Pop up a ghostview window with the current block frequency propagation rendered using dot...
static bool isSimple(Instruction *I)
Optional< uint64_t > getBlockProfileCount(const MachineBasicBlock *MBB) const
~MachineBlockFrequencyInfo() override
BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const
getblockFreq - Return block frequency.
raw_ostream & printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const
Represent the analysis usage information of a pass.
const MachineBranchProbabilityInfo * getMBPI() const
const MachineFunction * getFunction() const
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
MachineBlockFrequencyInfo()
bool runOnMachineFunction(MachineFunction &F) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
uint64_t getEntryFreq() const
Optional< uint64_t > getProfileCountFromFreq(uint64_t Freq) const
bool isIrrLoopHeader(const MachineBasicBlock *MBB)
This class implements an extremely fast bulk output stream that can only output to a stream...
void calculate(const MachineFunction &F, const MachineBranchProbabilityInfo &MBPI, const MachineLoopInfo &MLI)
calculate - compute block frequency info for the given function.
Shared implementation for block frequency analysis.