LLVM
8.0.1
|
A set of parameters used to control various transforms performed by the LoopUnroll pass. More...
#include "llvm/Transforms/Scalar/LoopUnrollPass.h"
Public Member Functions | |
LoopUnrollOptions (int OptLevel=2, bool OnlyWhenForced=false) | |
LoopUnrollOptions & | setPartial (bool Partial) |
Enables or disables partial unrolling. More... | |
LoopUnrollOptions & | setRuntime (bool Runtime) |
Enables or disables unrolling of loops with runtime trip count. More... | |
LoopUnrollOptions & | setPeeling (bool Peeling) |
Enables or disables loop peeling. More... | |
LoopUnrollOptions & | setUpperBound (bool UpperBound) |
Enables or disables the use of trip count upper bound in loop unrolling. More... | |
LoopUnrollOptions & | setOptLevel (int O) |
Public Attributes | |
Optional< bool > | AllowPartial |
Optional< bool > | AllowPeeling |
Optional< bool > | AllowRuntime |
Optional< bool > | AllowUpperBound |
int | OptLevel |
bool | OnlyWhenForced |
If false, use a cost model to determine whether unrolling of a loop is profitable. More... | |
A set of parameters used to control various transforms performed by the LoopUnroll pass.
Each of the boolean parameters can be set to: true - enabling the transformation. false - disabling the transformation. None - relying on a global default.
There is also OptLevel parameter, which is used for additional loop unroll tuning.
Intended use is to create a default object, modify parameters with additional setters and then pass it to LoopUnrollPass.
Definition at line 52 of file LoopUnrollPass.h.
Definition at line 64 of file LoopUnrollPass.h.
|
inline |
Definition at line 94 of file LoopUnrollPass.h.
References llvm::RISCVFenceField::O.
Referenced by checkParametrizedPassName().
|
inline |
Enables or disables partial unrolling.
When disabled only full unrolling is allowed.
Definition at line 69 of file LoopUnrollPass.h.
Referenced by checkParametrizedPassName().
|
inline |
Enables or disables loop peeling.
Definition at line 81 of file LoopUnrollPass.h.
Referenced by checkParametrizedPassName().
|
inline |
Enables or disables unrolling of loops with runtime trip count.
Definition at line 75 of file LoopUnrollPass.h.
Referenced by checkParametrizedPassName().
|
inline |
Enables or disables the use of trip count upper bound in loop unrolling.
Definition at line 88 of file LoopUnrollPass.h.
Referenced by checkParametrizedPassName().
Definition at line 53 of file LoopUnrollPass.h.
Definition at line 54 of file LoopUnrollPass.h.
Definition at line 55 of file LoopUnrollPass.h.
Definition at line 56 of file LoopUnrollPass.h.
bool llvm::LoopUnrollOptions::OnlyWhenForced |
If false, use a cost model to determine whether unrolling of a loop is profitable.
If true, only loops that explicitly request unrolling via metadata are considered. All other loops are skipped.
Definition at line 62 of file LoopUnrollPass.h.
int llvm::LoopUnrollOptions::OptLevel |
Definition at line 57 of file LoopUnrollPass.h.