LLVM 22.0.0git
llvm::TargetTransformInfo::PeelingPreferences Struct Reference

#include "llvm/Analysis/TargetTransformInfo.h"

Public Attributes

unsigned PeelCount
 A forced peeling factor (the number of bodied of the original loop that should be peeled off before the loop body).
bool AllowPeeling
 Allow peeling off loop iterations.
bool AllowLoopNestsPeeling
 Allow peeling off loop iterations for loop nests.
bool PeelProfiledIterations
 Allow peeling basing on profile.
bool PeelLast
 Peel off the last PeelCount loop iterations.

Detailed Description

Definition at line 678 of file TargetTransformInfo.h.

Member Data Documentation

◆ AllowLoopNestsPeeling

bool llvm::TargetTransformInfo::PeelingPreferences::AllowLoopNestsPeeling

Allow peeling off loop iterations for loop nests.

Definition at line 686 of file TargetTransformInfo.h.

Referenced by llvm::computePeelCount(), llvm::gatherPeelingPreferences(), and llvm::BasicTTIImplBase< BasicTTIImpl >::getPeelingPreferences().

◆ AllowPeeling

bool llvm::TargetTransformInfo::PeelingPreferences::AllowPeeling

◆ PeelCount

unsigned llvm::TargetTransformInfo::PeelingPreferences::PeelCount

A forced peeling factor (the number of bodied of the original loop that should be peeled off before the loop body).

When set to 0, the a peeling factor based on profile information and other factors.

Definition at line 682 of file TargetTransformInfo.h.

Referenced by llvm::computePeelCount(), llvm::computeUnrollCount(), llvm::gatherPeelingPreferences(), llvm::BasicTTIImplBase< BasicTTIImpl >::getPeelingPreferences(), llvm::HexagonTTIImpl::getPeelingPreferences(), and tryToUnrollLoop().

◆ PeelLast

bool llvm::TargetTransformInfo::PeelingPreferences::PeelLast

Peel off the last PeelCount loop iterations.

Definition at line 694 of file TargetTransformInfo.h.

Referenced by llvm::computePeelCount(), llvm::gatherPeelingPreferences(), and tryToUnrollLoop().

◆ PeelProfiledIterations

bool llvm::TargetTransformInfo::PeelingPreferences::PeelProfiledIterations

Allow peeling basing on profile.

Uses to enable peeling off all iterations basing on provided profile. If the value is true the peeling cost model can decide to peel only some iterations and in this case it will set this to false.

Definition at line 691 of file TargetTransformInfo.h.

Referenced by llvm::computePeelCount(), llvm::gatherPeelingPreferences(), llvm::BasicTTIImplBase< BasicTTIImpl >::getPeelingPreferences(), and tryToUnrollLoop().


The documentation for this struct was generated from the following file: