Home
last modified time | relevance | path

Searched refs:CostType (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DCostTable.h24 template <typename CostType>
28 CostType Cost;
33 template <class CostType>
34 inline const CostTblEntryT<CostType> *
35 CostTableLookup(ArrayRef<CostTblEntryT<CostType>> Tbl, int ISD, MVT Ty) { in CostTableLookup()
36 auto I = find_if(Tbl, [=](const CostTblEntryT<CostType> &Entry) { in CostTableLookup()
46 template <size_t N, class CostType>
47 inline const CostTblEntryT<CostType> *
48 CostTableLookup(const CostTblEntryT<CostType> (&Table)[N], int ISD, MVT Ty) { in CostTableLookup()
50 return CostTableLookup<CostType>(Table, ISD, Ty); in CostTableLookup()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DInstructionCost.h32 using CostType = int64_t;
54 CostType Value = 0;
62 static CostType getMaxValue() { return std::numeric_limits<CostType>::max(); } in getMaxValue()
63 static CostType getMinValue() { return std::numeric_limits<CostType>::min(); } in getMinValue()
70 InstructionCost(CostType Val) : Value(Val), State(Valid) {} in InstructionCost()
74 static InstructionCost getInvalid(CostType Val = 0) {
88 CostType getValue() const { in getValue()
103 InstructionCost::CostType Result;
111 InstructionCost &operator+=(const CostType RHS) {
121 InstructionCost::CostType Result;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSplitModule.cpp143 using CostType = InstructionCost::CostType; typedef
144 using FunctionsCostMap = DenseMap<const Function *, CostType>;
151 static auto formatRatioOf(CostType Num, CostType Dem) { in formatRatioOf()
152 CostType DemOr1 = Dem ? Dem : 1; in formatRatioOf()
188 static CostType calculateFunctionCosts(GetTTIFn GetTTI, Module &M, in calculateFunctionCosts()
193 CostType ModuleCost = 0; in calculateFunctionCosts()
194 [[maybe_unused]] CostType KernelCost = 0; in calculateFunctionCosts()
200 CostType FnCost = 0; in calculateFunctionCosts()
208 CostType CostVal = Cost.isValid() in calculateFunctionCosts()
210 : (CostType)TargetTransformInfo::TCC_Expensive; in calculateFunctionCosts()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h155 static const InstructionCost::CostType P9PipelineFlushEstimate = 80;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1949 (InstructionCost::CostType)1); in getCost()
H A DSLPVectorizer.cpp20458 std::numeric_limits<InstructionCost::CostType>::max(); in collectValuesToDemote()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp6212 InstructionCost::CostType SplitFactor = in getGSVectorCost()