LLVM 20.0.0git
Public Attributes | List of all members
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.
 

Detailed Description

Definition at line 652 of file TargetTransformInfo.h.

Member Data Documentation

◆ AllowLoopNestsPeeling

bool llvm::TargetTransformInfo::PeelingPreferences::AllowLoopNestsPeeling

Allow peeling off loop iterations for loop nests.

Definition at line 660 of file TargetTransformInfo.h.

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

◆ AllowPeeling

bool llvm::TargetTransformInfo::PeelingPreferences::AllowPeeling

Allow peeling off loop iterations.

Definition at line 658 of file TargetTransformInfo.h.

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

◆ 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 656 of file TargetTransformInfo.h.

Referenced by llvm::computePeelCount(), llvm::computeUnrollCount(), llvm::gatherPeelingPreferences(), llvm::BasicTTIImplBase< T >::getPeelingPreferences(), llvm::HexagonTTIImpl::getPeelingPreferences(), 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 665 of file TargetTransformInfo.h.

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


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