LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::BranchFolder::MBFIWrapper Class Reference

This class keeps track of branch frequencies of newly created blocks and tail-merged blocks. More...

#include "CodeGen/BranchFolding.h"

Public Member Functions

 MBFIWrapper (const MachineBlockFrequencyInfo &I)
 
BlockFrequency getBlockFreq (const MachineBasicBlock *MBB) const
 
void setBlockFreq (const MachineBasicBlock *MBB, BlockFrequency F)
 
raw_ostreamprintBlockFreq (raw_ostream &OS, const MachineBasicBlock *MBB) const
 
raw_ostreamprintBlockFreq (raw_ostream &OS, const BlockFrequency Freq) const
 
void view (const Twine &Name, bool isSimple=true)
 
uint64_t getEntryFreq () const
 

Detailed Description

This class keeps track of branch frequencies of newly created blocks and tail-merged blocks.

Definition at line 137 of file BranchFolding.h.

Constructor & Destructor Documentation

◆ MBFIWrapper()

llvm::BranchFolder::MBFIWrapper::MBFIWrapper ( const MachineBlockFrequencyInfo I)
inline

Definition at line 139 of file BranchFolding.h.

References F(), and isSimple().

Member Function Documentation

◆ getBlockFreq()

BlockFrequency BranchFolder::MBFIWrapper::getBlockFreq ( const MachineBasicBlock MBB) const

Definition at line 514 of file BranchFolding.cpp.

References I.

Referenced by ComputeCommonTailLength(), and mergeOperations().

◆ getEntryFreq()

uint64_t BranchFolder::MBFIWrapper::getEntryFreq ( ) const

Definition at line 545 of file BranchFolding.cpp.

◆ printBlockFreq() [1/2]

raw_ostream & BranchFolder::MBFIWrapper::printBlockFreq ( raw_ostream OS,
const MachineBasicBlock MBB 
) const

Definition at line 529 of file BranchFolding.cpp.

◆ printBlockFreq() [2/2]

raw_ostream & BranchFolder::MBFIWrapper::printBlockFreq ( raw_ostream OS,
const BlockFrequency  Freq 
) const

Definition at line 535 of file BranchFolding.cpp.

◆ setBlockFreq()

void BranchFolder::MBFIWrapper::setBlockFreq ( const MachineBasicBlock MBB,
BlockFrequency  F 
)

Definition at line 523 of file BranchFolding.cpp.

References F().

Referenced by ComputeCommonTailLength(), and mergeOperations().

◆ view()

void BranchFolder::MBFIWrapper::view ( const Twine Name,
bool  isSimple = true 
)

Definition at line 540 of file BranchFolding.cpp.


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