LLVM API Documentation

Public Attributes
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]

List of all members.

Public Attributes

unsigned Threshold
unsigned OptSizeThreshold
unsigned PartialThreshold
unsigned PartialOptSizeThreshold
unsigned Count
unsigned MaxCount
bool Partial
bool Runtime

Detailed Description

Parameters that control the generic loop unrolling transformation.

Definition at line 192 of file TargetTransformInfo.h.


Member Data Documentation

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

Definition at line 218 of file TargetTransformInfo.h.

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

Definition at line 201 of file TargetTransformInfo.h.

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

The cost threshold for the unrolled loop when optimizing for size, like OptSizeThreshold, but used for partial/runtime unrolling (set to UINT_MAX to disable).

Definition at line 208 of file TargetTransformInfo.h.

The cost threshold for the unrolled loop, like Threshold, but used for partial/runtime unrolling (set to UINT_MAX to disable).

Definition at line 204 of file TargetTransformInfo.h.

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

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


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