LLVM  8.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::SimplifyCFGOptions Struct Reference

A set of parameters used to control the transforms in the SimplifyCFG pass. More...

#include "llvm/Transforms/Utils/Local.h"

Collaboration diagram for llvm::SimplifyCFGOptions:
Collaboration graph
[legend]

Public Member Functions

 SimplifyCFGOptions (unsigned BonusThreshold=1, bool ForwardSwitchCond=false, bool SwitchToLookup=false, bool CanonicalLoops=true, bool SinkCommon=false, AssumptionCache *AssumpCache=nullptr)
 
SimplifyCFGOptionsbonusInstThreshold (int I)
 
SimplifyCFGOptionsforwardSwitchCondToPhi (bool B)
 
SimplifyCFGOptionsconvertSwitchToLookupTable (bool B)
 
SimplifyCFGOptionsneedCanonicalLoops (bool B)
 
SimplifyCFGOptionssinkCommonInsts (bool B)
 
SimplifyCFGOptionssetAssumptionCache (AssumptionCache *Cache)
 

Public Attributes

int BonusInstThreshold
 
bool ForwardSwitchCondToPhi
 
bool ConvertSwitchToLookupTable
 
bool NeedCanonicalLoop
 
bool SinkCommonInsts
 
AssumptionCacheAC
 

Detailed Description

A set of parameters used to control the transforms in the SimplifyCFG pass.

Options may change depending on the position in the optimization pipeline. For example, canonical form that includes switches and branches may later be replaced by lookup tables and selects.

Definition at line 65 of file Local.h.

Constructor & Destructor Documentation

◆ SimplifyCFGOptions()

llvm::SimplifyCFGOptions::SimplifyCFGOptions ( unsigned  BonusThreshold = 1,
bool  ForwardSwitchCond = false,
bool  SwitchToLookup = false,
bool  CanonicalLoops = true,
bool  SinkCommon = false,
AssumptionCache AssumpCache = nullptr 
)
inline

Definition at line 73 of file Local.h.

Member Function Documentation

◆ bonusInstThreshold()

SimplifyCFGOptions& llvm::SimplifyCFGOptions::bonusInstThreshold ( int  I)
inline

Definition at line 86 of file Local.h.

References I.

◆ convertSwitchToLookupTable()

SimplifyCFGOptions& llvm::SimplifyCFGOptions::convertSwitchToLookupTable ( bool  B)
inline

Definition at line 94 of file Local.h.

References B.

◆ forwardSwitchCondToPhi()

SimplifyCFGOptions& llvm::SimplifyCFGOptions::forwardSwitchCondToPhi ( bool  B)
inline

Definition at line 90 of file Local.h.

References B.

◆ needCanonicalLoops()

SimplifyCFGOptions& llvm::SimplifyCFGOptions::needCanonicalLoops ( bool  B)
inline

Definition at line 98 of file Local.h.

References B.

◆ setAssumptionCache()

SimplifyCFGOptions& llvm::SimplifyCFGOptions::setAssumptionCache ( AssumptionCache Cache)
inline

◆ sinkCommonInsts()

SimplifyCFGOptions& llvm::SimplifyCFGOptions::sinkCommonInsts ( bool  B)
inline

Definition at line 102 of file Local.h.

References B.

Member Data Documentation

◆ AC

AssumptionCache* llvm::SimplifyCFGOptions::AC

Definition at line 71 of file Local.h.

Referenced by llvm::getKnownAlignment(), llvm::SimplifyCFGPass::run(), and setAssumptionCache().

◆ BonusInstThreshold

int llvm::SimplifyCFGOptions::BonusInstThreshold

◆ ConvertSwitchToLookupTable

bool llvm::SimplifyCFGOptions::ConvertSwitchToLookupTable

Definition at line 68 of file Local.h.

Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().

◆ ForwardSwitchCondToPhi

bool llvm::SimplifyCFGOptions::ForwardSwitchCondToPhi

Definition at line 67 of file Local.h.

Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().

◆ NeedCanonicalLoop

bool llvm::SimplifyCFGOptions::NeedCanonicalLoop

Definition at line 69 of file Local.h.

Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().

◆ SinkCommonInsts

bool llvm::SimplifyCFGOptions::SinkCommonInsts

Definition at line 70 of file Local.h.

Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().


The documentation for this struct was generated from the following file: