LLVM  12.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SimplifyCFGOptions Struct Reference

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

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

Public Member Functions

SimplifyCFGOptionsbonusInstThreshold (int I)
 
SimplifyCFGOptionsforwardSwitchCondToPhi (bool B)
 
SimplifyCFGOptionsconvertSwitchToLookupTable (bool B)
 
SimplifyCFGOptionsneedCanonicalLoops (bool B)
 
SimplifyCFGOptionshoistCommonInsts (bool B)
 
SimplifyCFGOptionssinkCommonInsts (bool B)
 
SimplifyCFGOptionssetAssumptionCache (AssumptionCache *Cache)
 
SimplifyCFGOptionssetSimplifyCondBranch (bool B)
 
SimplifyCFGOptionssetFoldTwoEntryPHINode (bool B)
 

Public Attributes

int BonusInstThreshold = 1
 
bool ForwardSwitchCondToPhi = false
 
bool ConvertSwitchToLookupTable = false
 
bool NeedCanonicalLoop = true
 
bool HoistCommonInsts = false
 
bool SinkCommonInsts = false
 
bool SimplifyCondBranch = true
 
bool FoldTwoEntryPHINode = true
 
AssumptionCacheAC = nullptr
 

Detailed Description

Definition at line 23 of file SimplifyCFGOptions.h.

Member Function Documentation

◆ bonusInstThreshold()

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

Definition at line 36 of file SimplifyCFGOptions.h.

References BonusInstThreshold, and I.

◆ convertSwitchToLookupTable()

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

Definition at line 44 of file SimplifyCFGOptions.h.

References B, and ConvertSwitchToLookupTable.

◆ forwardSwitchCondToPhi()

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

Definition at line 40 of file SimplifyCFGOptions.h.

References B, and ForwardSwitchCondToPhi.

◆ hoistCommonInsts()

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

Definition at line 52 of file SimplifyCFGOptions.h.

References B, and HoistCommonInsts.

◆ needCanonicalLoops()

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

Definition at line 48 of file SimplifyCFGOptions.h.

References B, and NeedCanonicalLoop.

◆ setAssumptionCache()

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

Definition at line 60 of file SimplifyCFGOptions.h.

References AC.

◆ setFoldTwoEntryPHINode()

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

Definition at line 69 of file SimplifyCFGOptions.h.

References B, and FoldTwoEntryPHINode.

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

◆ setSimplifyCondBranch()

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

Definition at line 64 of file SimplifyCFGOptions.h.

References B, and SimplifyCondBranch.

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

◆ sinkCommonInsts()

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

Definition at line 56 of file SimplifyCFGOptions.h.

References B, and SinkCommonInsts.

Member Data Documentation

◆ AC

AssumptionCache* llvm::SimplifyCFGOptions::AC = nullptr

Definition at line 33 of file SimplifyCFGOptions.h.

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

◆ BonusInstThreshold

int llvm::SimplifyCFGOptions::BonusInstThreshold = 1

Definition at line 24 of file SimplifyCFGOptions.h.

Referenced by applyCommandLineOverridesToOptions(), and bonusInstThreshold().

◆ ConvertSwitchToLookupTable

bool llvm::SimplifyCFGOptions::ConvertSwitchToLookupTable = false

◆ FoldTwoEntryPHINode

bool llvm::SimplifyCFGOptions::FoldTwoEntryPHINode = true

Definition at line 31 of file SimplifyCFGOptions.h.

Referenced by setFoldTwoEntryPHINode().

◆ ForwardSwitchCondToPhi

bool llvm::SimplifyCFGOptions::ForwardSwitchCondToPhi = false

◆ HoistCommonInsts

bool llvm::SimplifyCFGOptions::HoistCommonInsts = false

Definition at line 28 of file SimplifyCFGOptions.h.

Referenced by applyCommandLineOverridesToOptions(), and hoistCommonInsts().

◆ NeedCanonicalLoop

bool llvm::SimplifyCFGOptions::NeedCanonicalLoop = true

Definition at line 27 of file SimplifyCFGOptions.h.

Referenced by applyCommandLineOverridesToOptions(), and needCanonicalLoops().

◆ SimplifyCondBranch

bool llvm::SimplifyCFGOptions::SimplifyCondBranch = true

Definition at line 30 of file SimplifyCFGOptions.h.

Referenced by setSimplifyCondBranch().

◆ SinkCommonInsts

bool llvm::SimplifyCFGOptions::SinkCommonInsts = false

Definition at line 29 of file SimplifyCFGOptions.h.

Referenced by applyCommandLineOverridesToOptions(), and sinkCommonInsts().


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