LLVM  6.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, AssumptionCache *AssumpCache=nullptr)
 
SimplifyCFGOptionsbonusInstThreshold (int I)
 
SimplifyCFGOptionsforwardSwitchCondToPhi (bool B)
 
SimplifyCFGOptionsconvertSwitchToLookupTable (bool B)
 
SimplifyCFGOptionsneedCanonicalLoops (bool B)
 
SimplifyCFGOptionssetAssumptionCache (AssumptionCache *Cache)
 

Public Attributes

int BonusInstThreshold
 
bool ForwardSwitchCondToPhi
 
bool ConvertSwitchToLookupTable
 
bool NeedCanonicalLoop
 
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 61 of file Local.h.

Constructor & Destructor Documentation

◆ SimplifyCFGOptions()

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

Definition at line 68 of file Local.h.

Member Function Documentation

◆ bonusInstThreshold()

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

Definition at line 78 of file Local.h.

References I.

◆ convertSwitchToLookupTable()

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

Definition at line 86 of file Local.h.

References B.

◆ forwardSwitchCondToPhi()

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

Definition at line 82 of file Local.h.

References B.

◆ needCanonicalLoops()

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

Definition at line 90 of file Local.h.

References B.

◆ setAssumptionCache()

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

Member Data Documentation

◆ AC

AssumptionCache* llvm::SimplifyCFGOptions::AC

Definition at line 66 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 64 of file Local.h.

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

◆ ForwardSwitchCondToPhi

bool llvm::SimplifyCFGOptions::ForwardSwitchCondToPhi

Definition at line 63 of file Local.h.

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

◆ NeedCanonicalLoop

bool llvm::SimplifyCFGOptions::NeedCanonicalLoop

Definition at line 65 of file Local.h.

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


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