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

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

Public Member Functions

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

Public Attributes

int BonusInstThreshold = 1
 
bool ForwardSwitchCondToPhi = false
 
bool ConvertSwitchRangeToICmp = false
 
bool ConvertSwitchToLookupTable = false
 
bool NeedCanonicalLoop = true
 
bool HoistCommonInsts = false
 
bool SinkCommonInsts = false
 
bool SimplifyCondBranch = true
 
bool SpeculateBlocks = true
 
bool SpeculateUnpredictables = false
 
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 38 of file SimplifyCFGOptions.h.

References BonusInstThreshold, and I.

◆ convertSwitchRangeToICmp()

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

Definition at line 46 of file SimplifyCFGOptions.h.

References B, and ConvertSwitchRangeToICmp.

◆ convertSwitchToLookupTable()

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

Definition at line 50 of file SimplifyCFGOptions.h.

References B, and ConvertSwitchToLookupTable.

◆ forwardSwitchCondToPhi()

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

Definition at line 42 of file SimplifyCFGOptions.h.

References B, and ForwardSwitchCondToPhi.

◆ hoistCommonInsts()

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

Definition at line 58 of file SimplifyCFGOptions.h.

References B, and HoistCommonInsts.

◆ needCanonicalLoops()

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

Definition at line 54 of file SimplifyCFGOptions.h.

References B, and NeedCanonicalLoop.

◆ setAssumptionCache()

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

Definition at line 66 of file SimplifyCFGOptions.h.

References AC.

◆ setSimplifyCondBranch()

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

Definition at line 70 of file SimplifyCFGOptions.h.

References B, and SimplifyCondBranch.

◆ sinkCommonInsts()

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

Definition at line 62 of file SimplifyCFGOptions.h.

References B, and SinkCommonInsts.

◆ speculateBlocks()

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

Definition at line 75 of file SimplifyCFGOptions.h.

References B, and SpeculateBlocks.

◆ speculateUnpredictables()

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

Definition at line 79 of file SimplifyCFGOptions.h.

References B, and SpeculateUnpredictables.

Member Data Documentation

◆ AC

AssumptionCache* llvm::SimplifyCFGOptions::AC = nullptr

Definition at line 35 of file SimplifyCFGOptions.h.

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

◆ BonusInstThreshold

int llvm::SimplifyCFGOptions::BonusInstThreshold = 1

◆ ConvertSwitchRangeToICmp

bool llvm::SimplifyCFGOptions::ConvertSwitchRangeToICmp = false

◆ ConvertSwitchToLookupTable

bool llvm::SimplifyCFGOptions::ConvertSwitchToLookupTable = false

◆ ForwardSwitchCondToPhi

bool llvm::SimplifyCFGOptions::ForwardSwitchCondToPhi = false

◆ HoistCommonInsts

bool llvm::SimplifyCFGOptions::HoistCommonInsts = false

Definition at line 29 of file SimplifyCFGOptions.h.

Referenced by hoistCommonInsts(), and llvm::SimplifyCFGPass::printPipeline().

◆ NeedCanonicalLoop

bool llvm::SimplifyCFGOptions::NeedCanonicalLoop = true

◆ SimplifyCondBranch

bool llvm::SimplifyCFGOptions::SimplifyCondBranch = true

◆ SinkCommonInsts

bool llvm::SimplifyCFGOptions::SinkCommonInsts = false

Definition at line 30 of file SimplifyCFGOptions.h.

Referenced by llvm::SimplifyCFGPass::printPipeline(), and sinkCommonInsts().

◆ SpeculateBlocks

bool llvm::SimplifyCFGOptions::SpeculateBlocks = true

Definition at line 32 of file SimplifyCFGOptions.h.

Referenced by llvm::SimplifyCFGPass::printPipeline(), and speculateBlocks().

◆ SpeculateUnpredictables

bool llvm::SimplifyCFGOptions::SpeculateUnpredictables = false

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