llvm::gatherPeelingPreferences

Gather peeling preferences for loop L from the target and user overrides.

Synopsis

Declared in <llvm/Transforms/Utils/LoopPeel.h>

TargetTransformInfo::PeelingPreferences
gatherPeelingPreferences(
    Loop* L,
    ScalarEvolution& SE,
    TargetTransformInfo const& TTI,
    std::optional<bool> UserAllowPeeling,
    std::optional<bool> UserAllowProfileBasedPeeling,
    bool UnrollingSpecficValues = false);

Return Value

Combined peeling preferences for L.

Parameters

NameDescription
LLoop for which peeling preferences are gathered.
SEScalarEvolution analysis for L.
TTITarget transform info providing target-specific defaults.
UserAllowPeelingOptional override for whether peeling is allowed.
UserAllowProfileBasedPeelingOptional override for profile-based peeling.
UnrollingSpecficValuesIf true, apply unroll-related command-line overrides to the preferences.