/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetTransformInfo.cpp | 272 return Cost; in getInstructionCost() 526 return Cost; in getScalingFactorCost() 655 return Cost; in getFPOpCost() 664 return Cost; in getIntImmCodeSizeCost() 672 return Cost; in getIntImmCost() 681 return Cost; in getIntImmCostInst() 691 return Cost; in getIntImmCostIntrin() 876 return Cost; in getArithmeticInstrCost() 885 return Cost; in getAltInstrCost() 895 return Cost; in getShuffleCost() [all …]
|
H A D | InlineOrder.cpp | 98 Cost = IC.getCost(); in CostPriority() 104 return P1.Cost < P2.Cost; in isMoreDesirable() 108 int Cost = INT_MAX; member in __anon8b2eb5460111::CostPriority 117 Cost = IC.getCost(); in CostBenefitPriority() 151 return P1.Cost < P2.Cost; in isMoreDesirable() 170 return P1.Cost < P2.Cost; in isMoreDesirable() 174 int Cost = INT_MAX; member in __anon8b2eb5460111::CostBenefitPriority 186 Cost = IC.getCost(); in MLPriority() 192 return P1.Cost < P2.Cost; in isMoreDesirable() 196 int Cost = INT_MAX; member in __anon8b2eb5460111::MLPriority [all …]
|
H A D | CostModel.cpp | 58 InstructionCost Cost; in run() local 63 Cost = TTI.getIntrinsicInstrCost(ICA, CostKind); in run() 66 Cost = TTI.getInstructionCost(&Inst, CostKind); in run() 69 if (auto CostVal = Cost.getValue()) in run()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | InlineCost.h | 68 CostBenefitPair(APInt Cost, APInt Benefit) : Cost(Cost), Benefit(Benefit) {} in CostBenefitPair() argument 70 const APInt &getCost() const { return Cost; } in getCost() 75 APInt Cost; 93 int Cost = 0; variable 108 InlineCost(int Cost, int Threshold, int StaticBonusApplied, 111 : Cost(Cost), Threshold(Threshold), in Cost() function 122 return InlineCost(Cost, Threshold, StaticBonus); 136 explicit operator bool() const { return Cost < Threshold; } 138 bool isAlways() const { return Cost == AlwaysInlineCost; } in isAlways() 139 bool isNever() const { return Cost == NeverInlineCost; } in isNever() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | RegBankSelect.cpp | 283 return Cost; in getRepairCost() 302 if (CurCost < Cost) { in findBestMapping() 304 Cost = CurCost; in findBestMapping() 461 return Cost; in computeMapping() 565 Cost.saturate(); in computeMapping() 574 return Cost; in computeMapping() 584 return Cost; in computeMapping() 984 LocalCost += Cost; in addLocalCost() 994 NonLocalCost += Cost; in addNonLocalCost() 1014 if (*this == Cost) in operator <() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 101 return Cost; in getBroadcastShuffleOverhead() 122 return Cost; in getPermuteShuffleOverhead() 144 Cost += in getExtractSubvectorOverhead() 150 return Cost; in getExtractSubvectorOverhead() 174 Cost += in getInsertSubvectorOverhead() 178 return Cost; in getInsertSubvectorOverhead() 1673 Cost += in getIntrinsicInstrCost() 1675 Cost += in getIntrinsicInstrCost() 2093 Cost += in getTypeBasedIntrinsicInstrCost() 2109 Cost += in getTypeBasedIntrinsicInstrCost() [all …]
|
H A D | RegisterBankInfo.h | 198 unsigned Cost = 0; variable 218 InstructionMapping(unsigned ID, unsigned Cost, in InstructionMapping() argument 221 : ID(ID), Cost(Cost), OperandsMapping(OperandsMapping), in InstructionMapping() 229 unsigned getCost() const { return Cost; } in getCost() 527 unsigned Cost = 0, 534 getInstructionMapping(unsigned ID, unsigned Cost, in getInstructionMapping() argument 537 return getInstructionMappingImpl(/*IsInvalid*/ false, ID, Cost, in getInstructionMapping()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | DAGISelEmitter.cpp | 47 unsigned Cost = 0; in getResultPatternCost() local 50 Cost++; in getResultPatternCost() 53 Cost += 10; in getResultPatternCost() 56 Cost += getResultPatternCost(P->getChild(i), CGP); in getResultPatternCost() 57 return Cost; in getResultPatternCost() 66 unsigned Cost = 0; in getResultPatternSize() local 69 Cost += Op->getValueAsInt("CodeSize"); in getResultPatternSize() 72 Cost += getResultPatternSize(P->getChild(i), CGP); in getResultPatternSize() 73 return Cost; in getResultPatternSize()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/ |
H A D | BottleneckAnalysis.cpp | 165 OS << " - COST: " << DE.Cost << '\n'; in dumpDependencyEdge() 241 uint64_t Cost = N.Cost + DepEdge.Dep.Cost; in propagateThroughEdges() local 245 if (Cost > To.Cost) { in propagateThroughEdges() 247 To.Cost = Cost; in propagateThroughEdges() 275 [](const DGNode &Lhs, const DGNode &Rhs) { return Lhs.Cost < Rhs.Cost; }); in getCriticalSequence() 432 It->Dep.Cost += Dep.Cost; in addDependency() 457 DG.addRegisterDep(From, To + SourceSize, RegID, Cost); in addRegisterDep() 465 unsigned Cost) { in addMemoryDep() argument 469 DG.addMemoryDep(From, To + SourceSize, Cost); in addMemoryDep() 473 DG.addMemoryDep(From + SourceSize, To + SourceSize, Cost); in addMemoryDep() [all …]
|
H A D | BottleneckAnalysis.h | 190 uint64_t Cost; member 227 uint64_t Cost; member 255 unsigned Cost) { in addRegisterDep() argument 256 addDependency(From, To, {DependencyEdge::DT_REGISTER, RegID, Cost}); in addRegisterDep() 259 void addMemoryDep(unsigned From, unsigned To, unsigned Cost) { in addMemoryDep() argument 260 addDependency(From, To, {DependencyEdge::DT_MEMORY, /* unused */ 0, Cost}); in addMemoryDep() 264 unsigned Cost) { in addResourceDep() argument 265 addDependency(From, To, {DependencyEdge::DT_RESOURCE, Mask, Cost}); in addResourceDep()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 654 return Cost; in getCastInstrCost() 671 return Cost; in getCmpSelInstrCost() 698 return Cost; in getVectorInstrCost() 752 return Cost; in getVectorInstrCost() 778 return Cost; in getMemoryOpCost() 801 return Cost; in getMemoryOpCost() 819 return Cost; in getMemoryOpCost() 823 return Cost; in getMemoryOpCost() 841 return Cost; in getMemoryOpCost() 875 return Cost; in getInterleavedMemoryOpCost() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | RegBankSelect.h | 447 bool addLocalCost(uint64_t Cost); 452 bool addNonLocalCost(uint64_t Cost); 462 bool operator<(const MappingCost &Cost) const; 464 bool operator==(const MappingCost &Cost) const; 466 bool operator!=(const MappingCost &Cost) const { return !(*this == Cost); } 468 bool operator>(const MappingCost &Cost) const { 469 return *this != Cost && Cost < *this; 479 friend raw_ostream &operator<<(raw_ostream &OS, const MappingCost &Cost) { 480 Cost.print(OS);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 59 InstructionCost Cost = in getArithmeticInstrCost() local 72 Cost = in getArithmeticInstrCost() 80 return Cost; in getArithmeticInstrCost() 87 InstructionCost Cost = BasicTTIImplBase::getVectorInstrCost( in getVectorInstrCost() local 92 return Cost + 25 * TargetTransformInfo::TCC_Expensive; in getVectorInstrCost() 94 return Cost; in getVectorInstrCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 592 Cost *= 2; in getArithmeticInstrCost() 593 return Cost; in getArithmeticInstrCost() 691 Cost--; in getVectorTruncCost() 693 return Cost; in getVectorTruncCost() 763 return Cost; in getBoolVecToIntConversionCost() 814 Cost++; in getCastInstrCost() 984 return Cost; in getCmpSelInstrCost() 1059 Cost += 1; in getVectorInstrCost() 1061 return Cost; in getVectorInstrCost() 1298 if (Cost != -1) in getIntrinsicInstrCost() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RegisterClassInfo.cpp | 150 uint8_t Cost = RegCosts[PhysReg]; in compute() local 151 MinCost = std::min(MinCost, Cost); in compute() 158 if (Cost != LastCost) in compute() 161 LastCost = Cost; in compute() 169 uint8_t Cost = RegCosts[PhysReg]; in compute() local 170 if (Cost != LastCost) in compute() 173 LastCost = Cost; in compute()
|
H A D | RegAllocEvictionAdvisor.cpp | 203 EvictionCost Cost; in canEvictInterferenceBasedOnCost() local 247 Cost.BrokenHints += 10; in canEvictInterferenceBasedOnCost() 252 Cost.BrokenHints += BreaksHint; in canEvictInterferenceBasedOnCost() 253 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight()); in canEvictInterferenceBasedOnCost() 255 if (!(Cost < MaxCost)) in canEvictInterferenceBasedOnCost() 271 MaxCost = Cost; in canEvictInterferenceBasedOnCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.cpp | 87 Cost += VL; in getRISCVInstructionCost() 92 Cost += 1; in getRISCVInstructionCost() 95 Cost += LMULCost; in getRISCVInstructionCost() 98 return Cost; in getRISCVInstructionCost() 418 return Cost; in getShuffleCost() 607 return Cost; in getInterleavedMemoryOpCost() 796 unsigned Cost = 5; in getIntrinsicInstrCost() local 804 unsigned Cost = 7; in getIntrinsicInstrCost() local 817 unsigned Cost = 7; in getIntrinsicInstrCost() local 1387 return Cost; in getPointersChainCost() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 96 if (Cost == ~0U) in operator []() 98 return Cost; in operator []() 309 return Cost; in getArithmeticInstrCost() 334 return Cost; in getArithmeticInstrCost() 2111 return Cost; in getCastInstrCost() 4158 Cost = Cost * 2 + 2; in getIntrinsicInstrCost() 4657 return Cost; in getScalarizationOverhead() 4915 Cost += 2; in getMemoryOpCost() 4929 return Cost; in getMemoryOpCost() 6297 return Cost; in getInterleavedMemoryOpCostAVX512() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | FunctionSpecialization.h | 95 using Cost = InstructionCost; variable 149 Bonus(Cost CodeSize, Cost Latency) { in Bonus() 216 Cost estimateBasicBlocks(SmallVectorImpl<BasicBlock *> &WorkList); 217 Cost estimateSwitchInst(SwitchInst &I); 218 Cost estimateBranchInst(BranchInst &I);
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 366 InstructionCost Cost; in collectConstantCandidates() local 374 Cost = TTI->getIntImmCostInst( in collectConstantCandidates() 379 if (Cost > TargetTransformInfo::TCC_Basic) { in collectConstantCandidates() 391 << " with cost " << Cost << '\n'; in collectConstantCandidates() 434 InstructionCost Cost = in collectConstantCandidates() local 593 InstructionCost Cost = 0; in maximizeConstantsInRange() local 603 LLVM_DEBUG(dbgs() << "Cost: " << Cost << "\n"); in maximizeConstantsInRange() 611 Cost -= ImmCosts; in maximizeConstantsInRange() 618 LLVM_DEBUG(dbgs() << "Cumulative cost: " << Cost << "\n"); in maximizeConstantsInRange() 619 if (Cost > MaxCost) { in maximizeConstantsInRange() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetTransformInfo.cpp | 216 unsigned Cost = in getMemoryOpCost() local 224 return Cost * NumLoads; in getMemoryOpCost() 228 return (3 - LogA) * Cost * NumLoads; in getMemoryOpCost() 324 InstructionCost Cost = in getCastInstrCost() local 328 return Cost == 0 ? 0 : 1; in getCastInstrCost() 329 return Cost; in getCastInstrCost() 342 unsigned Cost = (Index != 0) ? 2 : 0; in getVectorInstrCost() local 344 return Cost; in getVectorInstrCost() 346 return Cost + getVectorInstrCost(Instruction::ExtractElement, Val, CostKind, in getVectorInstrCost()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 569 return Cost; in getIntrinsicInstrCost() 2263 return Cost; in getCastInstrCost() 2675 return Cost; in getExtractWithExtendCost() 2681 return Cost; in getExtractWithExtendCost() 2815 return Cost; in getArithmeticInstrCost() 2887 Cost += Cost; in getArithmeticInstrCost() 2889 return Cost; in getArithmeticInstrCost() 3228 return Cost; in getMemoryOpCost() 3281 return Cost; in getCostOfKeepingLiveOverCall() 3603 return Cost; in getArithmeticReductionCost() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/ |
H A D | RegisterFile.cpp | 180 IPC = std::make_pair(RegisterFileIndex, RCE.Cost); in addRegisterFile() 201 unsigned Cost = Entry.IndexPlusCost.second; in allocatePhysRegs() local 204 RMT.NumUsedPhysRegs += Cost; in allocatePhysRegs() 205 UsedPhysRegs[RegisterFileIndex] += Cost; in allocatePhysRegs() 209 RegisterFiles[0].NumUsedPhysRegs += Cost; in allocatePhysRegs() 210 UsedPhysRegs[0] += Cost; in allocatePhysRegs() 216 unsigned Cost = Entry.IndexPlusCost.second; in freePhysRegs() local 219 RMT.NumUsedPhysRegs -= Cost; in freePhysRegs() 220 FreedPhysRegs[RegisterFileIndex] += Cost; in freePhysRegs() 224 RegisterFiles[0].NumUsedPhysRegs -= Cost; in freePhysRegs() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 486 return Cost; in getCastInstrCost() 938 ++Cost; in getCmpSelInstrCost() 943 ++Cost; in getCmpSelInstrCost() 945 return Cost; in getCmpSelInstrCost() 1009 return Entry->Cost; in getCmpSelInstrCost() 1399 Cost += 4; in getArithmeticInstrCost() 1401 return Cost; in getArithmeticInstrCost() 1447 InstructionCost Cost = in getArithmeticInstrCost() local 1453 Num * Cost; in getArithmeticInstrCost() 2475 InstructionCost Cost = 0; in getUnrollingPreferences() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoopVectorizationPlanner.h | 220 InstructionCost Cost; member 229 VectorizationFactor(ElementCount Width, InstructionCost Cost, in VectorizationFactor() 231 : Width(Width), Cost(Cost), ScalarCost(ScalarCost) {} in VectorizationFactor() 239 return Width == rhs.Width && Cost == rhs.Cost;
|