Go to the documentation of this file.
9 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPUNROLLPASS_H
10 #define LLVM_TRANSFORMS_SCALAR_LOOPUNROLLPASS_H
32 const bool OnlyWhenForced;
37 const bool ForgetSCEV;
41 bool ForgetSCEV =
false)
42 : OptLevel(OptLevel), OnlyWhenForced(OnlyWhenForced),
43 ForgetSCEV(ForgetSCEV) {}
140 : UnrollOpts(UnrollOpts) {}
144 function_ref<StringRef(StringRef)> MapClassName2PassName);
149 #endif // LLVM_TRANSFORMS_SCALAR_LOOPUNROLLPASS_H
A set of analyses that are preserved following a run of a transformation pass.
This is an optimization pass for GlobalISel generic memory operations.
A CRTP mix-in to automatically provide informational APIs needed for passes.
Represents a single loop in the control flow graph.
void printPipeline(raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
@ Runtime
Detect stack use after return if not disabled runtime with (ASAN_OPTIONS=detect_stack_use_after_retur...
const bool ForgetSCEV
If true, forget all loops when unrolling.
A set of parameters used to control various transforms performed by the LoopUnroll pass.
The adaptor from a function pass to a loop pass computes these analyses and makes them available to t...
LoopUnrollOptions & setPartial(bool Partial)
Enables or disables partial unrolling.
bool OnlyWhenForced
If false, use a cost model to determine whether unrolling of a loop is profitable.
LoopUnrollOptions & setPeeling(bool Peeling)
Enables or disables loop peeling.
LoopUnrollOptions(int OptLevel=2, bool OnlyWhenForced=false, bool ForgetSCEV=false)
LoopFullUnrollPass(int OptLevel=2, bool OnlyWhenForced=false, bool ForgetSCEV=false)
Optional< unsigned > FullUnrollMaxCount
Optional< bool > AllowPeeling
Optional< bool > AllowUpperBound
LoopUnrollPass(LoopUnrollOptions UnrollOpts={})
This uses the target information (or flags) to control the thresholds for different unrolling stategi...
This class provides an interface for updating the loop pass manager based on mutations to the loop ne...
Loop unroll pass that only does full loop unrolling and peeling.
LoopUnrollOptions & setFullUnrollMaxCount(unsigned O)
Optional< bool > AllowProfileBasedPeeling
cl::opt< bool > ForgetSCEVInLoopUnroll
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Optional< bool > AllowPartial
LoopUnrollOptions & setRuntime(bool Runtime)
Enables or disables unrolling of loops with runtime trip count.
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
LoopUnrollOptions & setOptLevel(int O)
LoopUnrollOptions & setProfileBasedPeeling(int O)
A container for analyses that lazily runs them and caches their results.
Loop unroll pass that will support both full and partial unrolling.
LoopUnrollOptions & setUpperBound(bool UpperBound)
Enables or disables the use of trip count upper bound in loop unrolling.
Optional< bool > AllowRuntime
PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM, LoopStandardAnalysisResults &AR, LPMUpdater &U)