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

#include "CodeGen/BranchFolding.h"


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

Public Member Functions

 BranchFolder (bool defaultEnableTailMerge, bool CommonHoist, MBFIWrapper &MBFI, const MachineBranchProbabilityInfo &MBPI, unsigned MinCommonTailLength=0)
bool OptimizeFunction (MachineFunction &MF, const TargetInstrInfo *tii, const TargetRegisterInfo *tri, MachineModuleInfo *mmi, MachineLoopInfo *mli=nullptr, bool AfterPlacement=false)
 Perhaps branch folding, tail merging and other CFG optimizations on the given function. More...

Detailed Description

Definition at line 35 of file BranchFolding.h.

Constructor & Destructor Documentation

◆ BranchFolder()

BranchFolder::BranchFolder ( bool  defaultEnableTailMerge,
bool  CommonHoist,
const MachineBranchProbabilityInfo MBPI,
unsigned  MinCommonTailLength = 0 

Member Function Documentation

◆ OptimizeFunction()

bool BranchFolder::OptimizeFunction ( MachineFunction MF,
const TargetInstrInfo tii,
const TargetRegisterInfo tri,
MachineModuleInfo mmi,
MachineLoopInfo mli = nullptr,
bool  AfterPlacement = false 

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