struct SimplifyCFGOptions
Declaration
struct SimplifyCFGOptions { /* full declaration omitted */ };
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.
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:63
Member Variables
- public int BonusInstThreshold
- public bool ForwardSwitchCondToPhi
- public bool ConvertSwitchToLookupTable
- public bool NeedCanonicalLoop
- public bool SinkCommonInsts
- public llvm::AssumptionCache* AC
Method Overview
- public SimplifyCFGOptions(unsigned int BonusThreshold = 1, bool ForwardSwitchCond = false, bool SwitchToLookup = false, bool CanonicalLoops = true, bool SinkCommon = false, llvm::AssumptionCache * AssumpCache = nullptr)
- public llvm::SimplifyCFGOptions & bonusInstThreshold(int I)
- public llvm::SimplifyCFGOptions & convertSwitchToLookupTable(bool B)
- public llvm::SimplifyCFGOptions & forwardSwitchCondToPhi(bool B)
- public llvm::SimplifyCFGOptions & needCanonicalLoops(bool B)
- public llvm::SimplifyCFGOptions & setAssumptionCache(llvm::AssumptionCache * Cache)
- public llvm::SimplifyCFGOptions & sinkCommonInsts(bool B)
Methods
¶SimplifyCFGOptions(
unsigned int BonusThreshold = 1,
bool ForwardSwitchCond = false,
bool SwitchToLookup = false,
bool CanonicalLoops = true,
bool SinkCommon = false,
llvm::AssumptionCache* AssumpCache = nullptr)
SimplifyCFGOptions(
unsigned int BonusThreshold = 1,
bool ForwardSwitchCond = false,
bool SwitchToLookup = false,
bool CanonicalLoops = true,
bool SinkCommon = false,
llvm::AssumptionCache* AssumpCache = nullptr)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:71
Parameters
- unsigned int BonusThreshold = 1
- bool ForwardSwitchCond = false
- bool SwitchToLookup = false
- bool CanonicalLoops = true
- bool SinkCommon = false
- llvm::AssumptionCache* AssumpCache = nullptr
¶llvm::SimplifyCFGOptions& bonusInstThreshold(
int I)
llvm::SimplifyCFGOptions& bonusInstThreshold(
int I)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:84
Parameters
- int I
¶llvm::SimplifyCFGOptions&
convertSwitchToLookupTable(bool B)
llvm::SimplifyCFGOptions&
convertSwitchToLookupTable(bool B)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:92
Parameters
- bool B
¶llvm::SimplifyCFGOptions& forwardSwitchCondToPhi(
bool B)
llvm::SimplifyCFGOptions& forwardSwitchCondToPhi(
bool B)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:88
Parameters
- bool B
¶llvm::SimplifyCFGOptions& needCanonicalLoops(
bool B)
llvm::SimplifyCFGOptions& needCanonicalLoops(
bool B)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:96
Parameters
- bool B
¶llvm::SimplifyCFGOptions& setAssumptionCache(
llvm::AssumptionCache* Cache)
llvm::SimplifyCFGOptions& setAssumptionCache(
llvm::AssumptionCache* Cache)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:104
Parameters
- llvm::AssumptionCache* Cache
¶llvm::SimplifyCFGOptions& sinkCommonInsts(bool B)
llvm::SimplifyCFGOptions& sinkCommonInsts(bool B)
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:100
Parameters
- bool B