ΒΆtemplate <typename LoopPassT>
inline std::enable_if_t<
    is_detected<llvm::(anonymous namespace)::
                    HasRunOnLoopT,
                LoopPassT>::value,
    FunctionToLoopPassAdaptor>
createFunctionToLoopPassAdaptor(
    LoopPassT&& Pass,
    bool UseMemorySSA = false,
    bool UseBlockFrequencyInfo = false,
    bool UseBranchProbabilityInfo = false)

Description

A function to deduce a loop pass type and wrap it in the templated adaptor. If \p Pass is a loop pass, the returned adaptor will be in loop mode.

Declared at: llvm/include/llvm/Transforms/Scalar/LoopPassManager.h:472

Templates

LoopPassT

Parameters

LoopPassT&& Pass
bool UseMemorySSA = false
bool UseBlockFrequencyInfo = false
bool UseBranchProbabilityInfo = false