LLVM: llvm::UnrollCostEstimator Class Reference (original) (raw)
Produce an estimate of the unrolled cost of the specified loop. More...
#include "[llvm/Transforms/Utils/UnrollLoop.h](UnrollLoop%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| LLVM_ABI | UnrollCostEstimator (const Loop *L, const TargetTransformInfo &TTI, const SmallPtrSetImpl< const Value * > &EphValues, unsigned BEInsns) |
| LLVM_ABI bool | canUnroll () const |
| Whether it is legal to unroll this loop. | |
| uint64_t | getRolledLoopSize () const |
| LLVM_ABI uint64_t | getUnrolledLoopSize (const TargetTransformInfo::UnrollingPreferences &UP, unsigned CountOverwrite=0) const |
| Returns loop size estimation for unrolled loop, given the unrolling configuration specified by UP. |
Detailed Description
Produce an estimate of the unrolled cost of the specified loop.
This is used to a) produce a cost estimate for partial unrolling and b) to cheaply estimate cost for full unrolling when we don't want to symbolically evaluate all iterations.
Definition at line 135 of file UnrollLoop.h.
Constructor & Destructor Documentation
Member Function Documentation
◆ canUnroll()
| bool UnrollCostEstimator::canUnroll | ( | ) | const |
|---|
◆ getRolledLoopSize()
| uint64_t llvm::UnrollCostEstimator::getRolledLoopSize ( ) const | inline |
|---|
◆ getUnrolledLoopSize()
Member Data Documentation
◆ Convergence
◆ ConvergenceAllowsRuntime
bool llvm::UnrollCostEstimator::ConvergenceAllowsRuntime
◆ NumInlineCandidates
unsigned llvm::UnrollCostEstimator::NumInlineCandidates
The documentation for this class was generated from the following files:
- include/llvm/Transforms/Utils/UnrollLoop.h
- lib/Transforms/Scalar/LoopUnrollPass.cpp