LLVM
15.0.0git
|
TODO: The following VectorizationFactor was pulled out of LoopVectorizationCostModel class. More...
#include "Transforms/Vectorize/LoopVectorizationPlanner.h"
Public Member Functions | |
VectorizationFactor (ElementCount Width, InstructionCost Cost) | |
bool | operator== (const VectorizationFactor &rhs) const |
bool | operator!= (const VectorizationFactor &rhs) const |
Static Public Member Functions | |
static VectorizationFactor | Disabled () |
Width 1 means no vectorization, cost 0 means uncomputed cost. More... | |
Public Attributes | |
ElementCount | Width |
Vector width with best cost. More... | |
InstructionCost | Cost |
Cost of the loop with that width. More... | |
TODO: The following VectorizationFactor was pulled out of LoopVectorizationCostModel class.
LV also deals with VectorizerParams::VectorizationFactor and VectorizationCostTy. We need to streamline them. Information about vectorization costs.
Definition at line 185 of file LoopVectorizationPlanner.h.
|
inline |
Definition at line 191 of file LoopVectorizationPlanner.h.
|
inlinestatic |
Width 1 means no vectorization, cost 0 means uncomputed cost.
Definition at line 195 of file LoopVectorizationPlanner.h.
References llvm::LinearPolySize< ElementCount >::getFixed().
Referenced by llvm::LoopVectorizationPlanner::plan(), llvm::LoopVectorizationPlanner::planInVPlanNativePath(), llvm::LoopVectorizePass::processLoop(), processLoopInVPlanNativePath(), and llvm::LoopVectorizationCostModel::selectEpilogueVectorizationFactor().
|
inline |
Definition at line 203 of file LoopVectorizationPlanner.h.
|
inline |
Definition at line 199 of file LoopVectorizationPlanner.h.
InstructionCost llvm::VectorizationFactor::Cost |
Cost of the loop with that width.
Definition at line 189 of file LoopVectorizationPlanner.h.
Referenced by operator==(), llvm::LoopVectorizePass::processLoop(), and llvm::LoopVectorizationCostModel::selectVectorizationFactor().
ElementCount llvm::VectorizationFactor::Width |
Vector width with best cost.
Definition at line 187 of file LoopVectorizationPlanner.h.
Referenced by operator==(), llvm::LoopVectorizePass::processLoop(), and llvm::LoopVectorizationCostModel::selectVectorizationFactor().