LLVM
8.0.1
|
A set of parameters used to control the transforms in the SimplifyCFG pass. More...
#include "llvm/Transforms/Utils/Local.h"
Public Member Functions | |
SimplifyCFGOptions (unsigned BonusThreshold=1, bool ForwardSwitchCond=false, bool SwitchToLookup=false, bool CanonicalLoops=true, bool SinkCommon=false, AssumptionCache *AssumpCache=nullptr) | |
SimplifyCFGOptions & | bonusInstThreshold (int I) |
SimplifyCFGOptions & | forwardSwitchCondToPhi (bool B) |
SimplifyCFGOptions & | convertSwitchToLookupTable (bool B) |
SimplifyCFGOptions & | needCanonicalLoops (bool B) |
SimplifyCFGOptions & | sinkCommonInsts (bool B) |
SimplifyCFGOptions & | setAssumptionCache (AssumptionCache *Cache) |
Public Attributes | |
int | BonusInstThreshold |
bool | ForwardSwitchCondToPhi |
bool | ConvertSwitchToLookupTable |
bool | NeedCanonicalLoop |
bool | SinkCommonInsts |
AssumptionCache * | AC |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 106 of file Local.h.
References AC, BonusInstThreshold, llvm::ConstantFoldTerminator(), llvm::DemotePHIToStack(), llvm::DemoteRegToStack(), llvm::EliminateDuplicatePHINodes(), llvm::FlattenCFG(), llvm::FoldBranchToCommonDest(), llvm::getOrEnforceKnownAlignment(), I, llvm::isInstructionTriviallyDead(), llvm::MergeBasicBlockIntoOnlyPred(), P, llvm::RecursivelyDeleteDeadPHINode(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::RemovePredecessorAndSimplify(), llvm::replaceDbgUsesWithUndef(), llvm::simplifyCFG(), llvm::SimplifyInstructionsInBlock(), llvm::TryToSimplifyUncondBranchFromEmptyBlock(), llvm::wouldInstructionBeTriviallyDead(), and X.
|
inline |
AssumptionCache* llvm::SimplifyCFGOptions::AC |
Definition at line 71 of file Local.h.
Referenced by llvm::getKnownAlignment(), llvm::SimplifyCFGPass::run(), and setAssumptionCache().
int llvm::SimplifyCFGOptions::BonusInstThreshold |
Definition at line 66 of file Local.h.
Referenced by llvm::SimplifyCFGPass::run(), setAssumptionCache(), and llvm::SimplifyCFGPass::SimplifyCFGPass().
bool llvm::SimplifyCFGOptions::ConvertSwitchToLookupTable |
Definition at line 68 of file Local.h.
Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().
bool llvm::SimplifyCFGOptions::ForwardSwitchCondToPhi |
Definition at line 67 of file Local.h.
Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().
bool llvm::SimplifyCFGOptions::NeedCanonicalLoop |
Definition at line 69 of file Local.h.
Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().
bool llvm::SimplifyCFGOptions::SinkCommonInsts |
Definition at line 70 of file Local.h.
Referenced by llvm::SimplifyCFGPass::run(), and llvm::SimplifyCFGPass::SimplifyCFGPass().