|
LLVM 24.0.0git
|
Costs for each cost kind in a target cost table. More...
#include "llvm/Analysis/TargetTransformInfo.h"
Public Member Functions | |
| std::optional< unsigned > | operator[] (TargetTransformInfo::TargetCostKind Kind) const |
Public Attributes | |
| unsigned | RecipThroughputCost = ~0U |
| unsigned | LatencyCost = ~0U |
| unsigned | CodeSizeCost = ~0U |
| unsigned | SizeAndLatencyCost = ~0U |
Costs for each cost kind in a target cost table.
Field order matches TargetCostKind, since table entries initialize these fields positionally. A cost of ~0U means the table provides no cost for that kind.
Definition at line 2205 of file TargetTransformInfo.h.
|
inline |
Definition at line 2212 of file TargetTransformInfo.h.
References CodeSizeCost, LatencyCost, RecipThroughputCost, SizeAndLatencyCost, llvm::TargetTransformInfo::TCK_CodeSize, llvm::TargetTransformInfo::TCK_Latency, llvm::TargetTransformInfo::TCK_RecipThroughput, and llvm::TargetTransformInfo::TCK_SizeAndLatency.
| unsigned llvm::CostKindCosts::CodeSizeCost = ~0U |
Definition at line 2208 of file TargetTransformInfo.h.
Referenced by operator[]().
| unsigned llvm::CostKindCosts::LatencyCost = ~0U |
Definition at line 2207 of file TargetTransformInfo.h.
Referenced by operator[]().
| unsigned llvm::CostKindCosts::RecipThroughputCost = ~0U |
Definition at line 2206 of file TargetTransformInfo.h.
Referenced by operator[]().
| unsigned llvm::CostKindCosts::SizeAndLatencyCost = ~0U |
Definition at line 2209 of file TargetTransformInfo.h.
Referenced by operator[]().