LLVM 24.0.0git
llvm::CostKindCosts Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ operator[]()

Member Data Documentation

◆ CodeSizeCost

unsigned llvm::CostKindCosts::CodeSizeCost = ~0U

Definition at line 2208 of file TargetTransformInfo.h.

Referenced by operator[]().

◆ LatencyCost

unsigned llvm::CostKindCosts::LatencyCost = ~0U

Definition at line 2207 of file TargetTransformInfo.h.

Referenced by operator[]().

◆ RecipThroughputCost

unsigned llvm::CostKindCosts::RecipThroughputCost = ~0U

Definition at line 2206 of file TargetTransformInfo.h.

Referenced by operator[]().

◆ SizeAndLatencyCost

unsigned llvm::CostKindCosts::SizeAndLatencyCost = ~0U

Definition at line 2209 of file TargetTransformInfo.h.

Referenced by operator[]().


The documentation for this struct was generated from the following file: