14#ifndef LLVM_CODEGEN_MBFIWRAPPER_H
15#define LLVM_CODEGEN_MBFIWRAPPER_H
24class MachineBasicBlock;
25class MachineBlockFrequencyInfo;
33 std::optional<uint64_t>
This file defines the DenseMap class.
static bool isSimple(Instruction *I)
const MachineBlockFrequencyInfo & getMBFI()
std::optional< uint64_t > getBlockProfileCount(const MachineBasicBlock *MBB) const
BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const
raw_ostream & printBlockFreq(raw_ostream &OS, const MachineBasicBlock *MBB) const
uint64_t getEntryFreq() const
void view(const Twine &Name, bool isSimple=true)
void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F)
MBFIWrapper(const MachineBlockFrequencyInfo &I)
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic b...
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.