LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Attributes | List of all members
llvm::TargetTransformInfo::UnrollingPreferences Struct Reference

Parameters that control the generic loop unrolling transformation. More...

#include <TargetTransformInfo.h>

Collaboration diagram for llvm::TargetTransformInfo::UnrollingPreferences:
Collaboration graph
[legend]

Public Attributes

unsigned Threshold
 
unsigned OptSizeThreshold
 
unsigned Count
 
bool Partial
 
bool Runtime
 

Detailed Description

Parameters that control the generic loop unrolling transformation.

Definition at line 196 of file TargetTransformInfo.h.

Member Data Documentation

unsigned llvm::TargetTransformInfo::UnrollingPreferences::Count

A forced unrolling factor (the number of concatenated bodies of the original loop in the unrolled loop body). When set to 0, the unrolling transformation will select an unrolling factor based on the current cost threshold and other factors.

Definition at line 210 of file TargetTransformInfo.h.

unsigned llvm::TargetTransformInfo::UnrollingPreferences::OptSizeThreshold

The cost threshold for the unrolled loop when optimizing for size (set to UINT_MAX to disable).

Definition at line 205 of file TargetTransformInfo.h.

bool llvm::TargetTransformInfo::UnrollingPreferences::Partial

Allow partial unrolling (unrolling of loops to expand the size of the loop body, not only to eliminate small constant-trip-count loops).

Definition at line 213 of file TargetTransformInfo.h.

bool llvm::TargetTransformInfo::UnrollingPreferences::Runtime

Allow runtime unrolling (unrolling of loops to expand the size of the loop body even when the number of loop iterations is not known at compile time).

Definition at line 217 of file TargetTransformInfo.h.

unsigned llvm::TargetTransformInfo::UnrollingPreferences::Threshold

The cost threshold for the unrolled loop, compared to CodeMetrics.NumInsts aggregated over all basic blocks in the loop body. The unrolling factor is set such that the unrolled loop body does not exceed this cost. Set this to UINT_MAX to disable the loop body cost restriction.

Definition at line 202 of file TargetTransformInfo.h.


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