struct VectorizationFactor
Declaration
struct VectorizationFactor { /* full declaration omitted */ };
Description
Information about vectorization costs.
Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:188
Member Variables
- public llvm::ElementCount Width
- Vector width with best cost.
- public llvm::InstructionCost Cost
- Cost of the loop with that width.
- public llvm::InstructionCost ScalarCost
- Cost of the scalar loop.
- public llvm::ElementCount MinProfitableTripCount
- The minimum trip count required to make vectorization profitable, e.g. due to runtime checks.
Method Overview
- public static llvm::VectorizationFactor Disabled()
- public VectorizationFactor(llvm::ElementCount Width, llvm::InstructionCost Cost, llvm::InstructionCost ScalarCost)
Methods
¶static llvm::VectorizationFactor Disabled()
static llvm::VectorizationFactor Disabled()
Description
Width 1 means no vectorization, cost 0 means uncomputed cost.
Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:206
¶VectorizationFactor(
llvm::ElementCount Width,
llvm::InstructionCost Cost,
llvm::InstructionCost ScalarCost)
VectorizationFactor(
llvm::ElementCount Width,
llvm::InstructionCost Cost,
llvm::InstructionCost ScalarCost)
Declared at: llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h:201
Parameters
- llvm::ElementCount Width
- llvm::InstructionCost Cost
- llvm::InstructionCost ScalarCost