Construct LoopUnroll options with the given defaults.

Synopsis

Declared in <llvm/Transforms/Scalar/LoopUnrollPass.h>

LoopUnrollOptions(
    int OptLevel = 2,
    bool OnlyWhenForced = false,
    bool ForgetSCEV = false);

Parameters

Name

Description

OptLevel

Optimization level used to tune unrolling decisions.

OnlyWhenForced

When true, only unroll loops that request it via metadata.

ForgetSCEV

When true, forget all loops in SCEV when unrolling.

Created with MrDocs