LLVM  8.0.1
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(), isSimple(), and Name.

Member Function Documentation

◆ getBlockFreq()

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

Definition at line 551 of file BranchFolding.cpp.

References I.

Referenced by ComputeCommonTailLength(), and mergeOperations().

◆ getEntryFreq()

uint64_t BranchFolder::MBFIWrapper::getEntryFreq ( ) const

Definition at line 582 of file BranchFolding.cpp.

◆ printBlockFreq() [1/2]

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

Definition at line 566 of file BranchFolding.cpp.

◆ printBlockFreq() [2/2]

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

Definition at line 572 of file BranchFolding.cpp.

◆ setBlockFreq()

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

Definition at line 560 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 577 of file BranchFolding.cpp.


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