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)
 
SimplifyCFGOptionshoistLoadsStoresWithCondFaulting (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 HoistLoadsStoresWithCondFaulting = 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 39 of file SimplifyCFGOptions.h.

References BonusInstThreshold, and I.

◆ convertSwitchRangeToICmp()

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

Definition at line 47 of file SimplifyCFGOptions.h.

References B, and ConvertSwitchRangeToICmp.

◆ convertSwitchToLookupTable()

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

Definition at line 51 of file SimplifyCFGOptions.h.

References B, and ConvertSwitchToLookupTable.

◆ forwardSwitchCondToPhi()

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

Definition at line 43 of file SimplifyCFGOptions.h.

References B, and ForwardSwitchCondToPhi.

◆ hoistCommonInsts()

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

Definition at line 59 of file SimplifyCFGOptions.h.

References B, and HoistCommonInsts.

◆ hoistLoadsStoresWithCondFaulting()

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

Definition at line 63 of file SimplifyCFGOptions.h.

References B, and HoistLoadsStoresWithCondFaulting.

◆ needCanonicalLoops()

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

Definition at line 55 of file SimplifyCFGOptions.h.

References B, and NeedCanonicalLoop.

◆ setAssumptionCache()

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

Definition at line 71 of file SimplifyCFGOptions.h.

References AC.

◆ setSimplifyCondBranch()

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

Definition at line 75 of file SimplifyCFGOptions.h.

References B, and SimplifyCondBranch.

◆ sinkCommonInsts()

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

Definition at line 67 of file SimplifyCFGOptions.h.

References B, and SinkCommonInsts.

◆ speculateBlocks()

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

Definition at line 80 of file SimplifyCFGOptions.h.

References B, and SpeculateBlocks.

◆ speculateUnpredictables()

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

Definition at line 84 of file SimplifyCFGOptions.h.

References B, and SpeculateUnpredictables.

Member Data Documentation

◆ AC

AssumptionCache* llvm::SimplifyCFGOptions::AC = nullptr

Definition at line 36 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().

◆ HoistLoadsStoresWithCondFaulting

bool llvm::SimplifyCFGOptions::HoistLoadsStoresWithCondFaulting = false

◆ NeedCanonicalLoop

bool llvm::SimplifyCFGOptions::NeedCanonicalLoop = true

◆ SimplifyCondBranch

bool llvm::SimplifyCFGOptions::SimplifyCondBranch = true

◆ SinkCommonInsts

bool llvm::SimplifyCFGOptions::SinkCommonInsts = false

Definition at line 31 of file SimplifyCFGOptions.h.

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

◆ SpeculateBlocks

bool llvm::SimplifyCFGOptions::SpeculateBlocks = true

Definition at line 33 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: