/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | InlineCost.h | 1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===// 70 int Cost; member in class:llvm::InlineCost 79 InlineCost(int Cost, int Threshold, const char *Reason = nullptr) argument 80 : Cost(Cost), Threshold(Threshold), Reason(Reason) { 86 static InlineCost get(int Cost, int Threshold) { argument 87 assert(Cost > AlwaysInlineCost && "Cost crosses sentinel value"); 88 assert(Cost < NeverInlineCost && "Cost crosse [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 52 unsigned Cost = BasicTTIImplBase<WebAssemblyTTIImpl>::getArithmeticInstrCost( local 65 Cost = VTy->getNumElements() * 72 return Cost; 77 unsigned Cost = BasicTTIImplBase::getVectorInstrCost(Opcode, Val, Index); local 81 return Cost + 25 * TargetTransformInfo::TCC_Expensive; 83 return Cost;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetTransformInfo.cpp | 151 int Cost = TTIImpl->getOperationCost(Opcode, Ty, OpTy); local 152 assert(Cost >= 0 && "TTI should not produce negative costs!"); 153 return Cost; 158 int Cost = TTIImpl->getCallCost(FTy, NumArgs, U); local 159 assert(Cost >= 0 && "TTI should not produce negative costs!"); 160 return Cost; 166 int Cost = TTIImpl->getCallCost(F, Arguments, U); local 167 assert(Cost >= 0 && "TTI should not produce negative costs!"); 168 return Cost; 192 int Cost local 206 int Cost = TTIImpl->getUserCost(U, Operands); local 354 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, local 448 int Cost = TTIImpl->getFPOpCost(Ty); local 456 int Cost = TTIImpl->getIntImmCodeSizeCost(Opcode, Idx, Imm, Ty); local 462 int Cost = TTIImpl->getIntImmCost(Imm, Ty); local 469 int Cost = TTIImpl->getIntImmCostInst(Opcode, Idx, Imm, Ty); local 476 int Cost = TTIImpl->getIntImmCostIntrin(IID, Idx, Imm, Ty); local 599 int Cost = TTIImpl->getArithmeticInstrCost( local 607 int Cost = TTIImpl->getShuffleCost(Kind, Ty, Index, SubTp); local 616 int Cost = TTIImpl->getCastInstrCost(Opcode, Dst, Src, I); local 624 int Cost = TTIImpl->getExtractWithExtendCost(Opcode, Dst, VecTy, Index); local 630 int Cost = TTIImpl->getCFInstrCost(Opcode); local 639 int Cost = TTIImpl->getCmpSelInstrCost(Opcode, ValTy, CondTy, I); local 646 int Cost = TTIImpl->getVectorInstrCost(Opcode, Val, Index); local 657 int Cost = TTIImpl->getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, I); local 665 int Cost = local 674 int Cost = TTIImpl->getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask, local 684 int Cost = TTIImpl->getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, local 695 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Tys, FMF, local 703 int Cost = TTIImpl->getIntrinsicInstrCost(ID, RetTy, Args, FMF, VF); local 710 int Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys); local 722 int Cost = TTIImpl->getAddressComputationCost(Tp, SE, Ptr); local 728 int Cost = TTIImpl->getMemcpyCost(I); local 735 int Cost = TTIImpl->getArithmeticReductionCost(Opcode, Ty, IsPairwiseForm); local 743 int Cost = local [all...] |
H A D | CostModel.cpp | 1 //===- CostModel.cpp ------ Cost Model Analysis ---------------------------===// 75 static const char cm_name[] = "Cost Model Analysis"; 103 unsigned Cost = TTI->getInstructionCost(&Inst, CostKind); local 104 if (Cost != (unsigned)-1) 105 OS << "Cost Model: Found an estimated cost of " << Cost; local 107 OS << "Cost Model: Unknown cost";
|
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | DAGISelEmitter.cpp | 44 unsigned Cost = 0; local 47 Cost++; 50 Cost += 10; 53 Cost += getResultPatternCost(P->getChild(i), CGP); 54 return Cost; 63 unsigned Cost = 0; local 66 Cost += Op->getValueAsInt("CodeSize"); 69 Cost += getResultPatternSize(P->getChild(i), CGP); 70 return Cost;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 86 unsigned Cost = 0; local 89 Cost += static_cast<T *>(this)->getVectorInstrCost( 93 Cost += static_cast<T *>(this)->getVectorInstrCost( 96 return Cost; 103 unsigned Cost = 0; local 112 Cost += static_cast<T *>(this) 114 Cost += static_cast<T *>(this) 117 return Cost; 129 unsigned Cost = 0; local 134 Cost 151 unsigned Cost = 0; local 571 unsigned Cost = 0; local 590 unsigned Cost = 0; local 614 unsigned Cost = 0; local 667 unsigned Cost = static_cast<T *>(this) local 801 unsigned Cost = static_cast<T *>(this)->getCastInstrCost( local 864 unsigned Cost = static_cast<T *>(this)->getCmpSelInstrCost( local 890 unsigned Cost = LT.first; local 931 unsigned Cost; local 1149 unsigned Cost = 0; local 1347 unsigned Cost = 0; local 1365 unsigned Cost = 0; local 1380 unsigned Cost = 0; local 1410 unsigned Cost = 0; local 1428 unsigned Cost = 0; local 1444 unsigned Cost = 0; local [all...] |
H A D | CostTable.h | 1 //===-- CostTable.h - Instruction Cost Table handling -----------*- C++ -*-===// 10 /// Cost tables and simple lookup functions 23 /// Cost Table Entry 27 unsigned Cost; member in struct:llvm::CostTblEntry 43 /// Type Conversion Cost Table 48 unsigned Cost; member in struct:llvm::TypeConversionCostTblEntry
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/Utils/ |
H A D | RISCVMatInt.cpp | 83 int Cost = 0; local 88 Cost += MatSeq.size(); 90 return std::max(1, Cost);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | RegBankSelect.cpp | 279 unsigned Cost = RBI->copyCost(*DesiredRegBank, *CurRegBank, local 282 if (Cost != std::numeric_limits<unsigned>::max()) 283 return Cost; 296 MappingCost Cost = MappingCost::ImpossibleCost(); local 301 computeMapping(MI, *CurMapping, LocalRepairPts, &Cost); 302 if (CurCost < Cost) { 304 Cost = CurCost; 452 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); 453 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); 458 if (BestCost && Cost > *BestCos 941 addLocalCost(uint64_t Cost) argument 951 addNonLocalCost(uint64_t Cost) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RegisterClassInfo.cpp | 115 unsigned Cost = TRI->getCostPerUse(PhysReg); local 116 MinCost = std::min(MinCost, Cost); 123 if (Cost != LastCost) 126 LastCost = Cost; 135 unsigned Cost = TRI->getCostPerUse(PhysReg); local 136 if (Cost != LastCost) 139 LastCost = Cost;
|
H A D | RegAllocGreedy.cpp | 136 cl::desc("Cost for first time use of callee-saved register."), 274 /// Cost of evicting interference. 793 unsigned Cost = TRI->getCostPerUse(PhysReg); local 796 if (!Cost) 800 << Cost << '\n'); 801 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost, FixedRegisters); 892 EvictionCost Cost; local 931 Cost.BrokenHints += 10; 936 Cost.BrokenHints += BreaksHint; 937 Cost 973 EvictionCost Cost; local 1186 addSplitConstraints(InterferenceCache::Cursor Intf, BlockFrequency &Cost) argument 1386 BlockFrequency Cost; local 1415 BlockFrequency Cost = 0; local 1909 BlockFrequency Cost; local 1915 MBFI->printBlockFreq(dbgs(), Cost)); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-mca/Views/ |
H A D | BottleneckAnalysis.cpp | 168 OS << " - COST: " << DE.Cost << '\n'; 244 uint64_t Cost = N.Cost + DepEdge.Dep.Cost; 248 if (Cost > To.Cost) { 250 To.Cost = Cost; 277 [](const DGNode &Lhs, const DGNode &Rhs) { return Lhs.Cost < Rhs.Cost; }); [all...] |
H A D | BottleneckAnalysis.h | 188 uint64_t Cost; member in struct:llvm::mca::DependencyEdge::Dependency 209 // performance (see field DependencyEdge::Dependency::Cost). In general, the 225 uint64_t Cost; member in struct:llvm::mca::DependencyGraph::DGNode 252 unsigned Cost) { 253 addDependency(From, To, {DependencyEdge::DT_REGISTER, RegID, Cost}); 256 void addMemoryDep(unsigned From, unsigned To, unsigned Cost) { argument 257 addDependency(From, To, {DependencyEdge::DT_MEMORY, /* unused */ 0, Cost}); 261 unsigned Cost) { 262 addDependency(From, To, {DependencyEdge::DT_RESOURCE, Mask, Cost}); 251 addRegisterDep(unsigned From, unsigned To, unsigned RegID, unsigned Cost) argument 260 addResourceDep(unsigned From, unsigned To, uint64_t Mask, unsigned Cost) argument
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | RegBankSelect.h | 27 /// is: Cost of I on RegBank plus the sum of the cost for bringing the 423 /// Cost of the local instructions. 426 /// Cost of the non-local instructions. 444 /// Add \p Cost to the local cost. 446 bool addLocalCost(uint64_t Cost); 448 /// Add \p Cost to the non-local cost. 451 bool addNonLocalCost(uint64_t Cost); 460 /// Check if this is less than \p Cost. 461 bool operator<(const MappingCost &Cost) const; 462 /// Check if this is equal to \p Cost 478 operator <<(raw_ostream &OS, const MappingCost &Cost) argument [all...] |
H A D | RegisterBankInfo.h | 194 /// Cost of this mapping. 195 unsigned Cost = 0; member in class:llvm::RegisterBankInfo::InstructionMapping 215 InstructionMapping(unsigned ID, unsigned Cost, 218 : ID(ID), Cost(Cost), OperandsMapping(OperandsMapping), 227 unsigned getCost() const { return Cost; } 518 unsigned Cost = 0, 525 getInstructionMapping(unsigned ID, unsigned Cost, 528 return getInstructionMappingImpl(/*IsInvalid*/ false, ID, Cost, 694 /// {/*ID*/VectorAdd, /*Cost*/ [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 433 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(Ty, Args); local 437 Cost *= 2; 438 return Cost; 450 unsigned Cost = (VF * LIBCALL_COST) + getScalarizationOverhead(Ty, Args); local 453 Cost *= 2; 454 return Cost; 581 unsigned Cost = 0; local 587 Cost += NumParts; 595 Cost--; 597 return Cost; 658 unsigned Cost = 0; local 779 unsigned Cost = 0; local 842 unsigned Cost = (NumVecs_cmp * (CmpCostPerVector + PredicateExtraCost)); local 872 unsigned Cost = 1; local 895 int Cost = ((getScalarSizeInBits(Val) == 1) ? 2 /*+test-under-mask*/ : 1); local 1131 int Cost = getVectorIntrinsicInstrCost(ID, RetTy); local 1141 int Cost = getVectorIntrinsicInstrCost(ID, RetTy); local [all...] |
H A D | SystemZHazardRecognizer.cpp | 388 int Cost = 0; local 397 Cost = (isFPdOpPreferred_distance(SU) ? INT_MIN : INT_MAX); 404 Cost = PI->Cycles; 407 return Cost;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 709 int PPCTTIImpl::vectorCostAdjustment(int Cost, unsigned Opcode, Type *Ty1, argument 712 return Cost; 718 return Cost; 722 return Cost; 727 return Cost; 730 return Cost * 2; 743 int Cost = BaseT::getArithmeticInstrCost(Opcode, Ty, Op1Info, Op2Info, local 745 return vectorCostAdjustment(Cost, Opcode, Ty, nullptr); 766 int Cost = BaseT::getCastInstrCost(Opcode, Dst, Src); local 767 return vectorCostAdjustment(Cost, Opcod 772 int Cost = BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, I); local 782 int Cost = BaseT::getVectorInstrCost(Opcode, Val, Index); local 857 int Cost = BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace); local 941 int Cost = local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 74 int Cost = 0; local 78 Cost += getIntImmCost(Val); 81 return std::max(1, Cost); 142 int Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty); local 143 return (Cost <= NumConstants * TTI::TCC_Basic) 145 : Cost; 177 int Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty); local 178 return (Cost <= NumConstants * TTI::TCC_Basic) 180 : Cost; 400 return Entry->Cost; 422 auto Cost = getVectorInstrCost(Instruction::ExtractElement, VecTy, Index); local 499 int Cost = 0; local 709 int Cost = 0; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 15 /// About Cost Model numbers used below it's necessary to say the following: 37 /// specialize cost numbers for different Cost Model Targets such as throughput, 195 return LT.first * Entry->Cost; 244 return LT.first * Entry->Cost; 258 int Cost = local 262 Cost += getArithmeticInstrCost(Instruction::LShr, Ty, Op1Info, Op2Info, 265 Cost += getArithmeticInstrCost(Instruction::Add, Ty, Op1Info, Op2Info, 271 Cost += getArithmeticInstrCost(Instruction::Mul, Ty, Op1Info, Op2Info); 272 Cost += getArithmeticInstrCost(Instruction::Sub, Ty, Op1Info, Op2Info); 275 return Cost; 2456 int Cost = BaseT::getMemoryOpCost(Opcode, VTy->getScalarType(), Alignment, local 2470 int Cost = LT.first * 1; local 2514 int Cost = 0; local 3026 int Cost = 0; local 3124 int Cost = X86TTIImpl::getIntImmCost(Imm, Ty); local 3758 int Cost = NumOfResults * NumOfShufflesPerResult * ShuffleCost + local 3794 int Cost = NumOfMemOps * (MemOpCost + NumOfShufflesPerStore * ShuffleCost) + local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/ |
H A D | RegisterFile.cpp | 99 IPC = std::make_pair(RegisterFileIndex, RCE.Cost); 120 unsigned Cost = Entry.IndexPlusCost.second; local 123 RMT.NumUsedPhysRegs += Cost; 124 UsedPhysRegs[RegisterFileIndex] += Cost; 128 RegisterFiles[0].NumUsedPhysRegs += Cost; 129 UsedPhysRegs[0] += Cost; 135 unsigned Cost = Entry.IndexPlusCost.second; local 138 RMT.NumUsedPhysRegs -= Cost; 139 FreedPhysRegs[RegisterFileIndex] += Cost; 143 RegisterFiles[0].NumUsedPhysRegs -= Cost; [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetTransformInfo.cpp | 168 // Cost of HVX loads. 171 // Cost of constructing HVX vector from scalar loads 183 unsigned Cost = local 191 return Cost * NumLoads; 195 return (3 - LogA) * Cost * NumLoads; 272 unsigned Cost = (Index != 0) ? 2 : 0; local 274 return Cost; 276 return Cost + getVectorInstrCost(Instruction::ExtractElement, Val, Index);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 361 unsigned Cost; local 365 Cost = TTI->getIntImmCostIntrin(IntrInst->getIntrinsicID(), Idx, 368 Cost = TTI->getIntImmCostInst(Inst->getOpcode(), Idx, ConstInt->getValue(), 372 if (Cost > TargetTransformInfo::TCC_Basic) { 381 ConstIntCandVec[Itr->second].addUser(Inst, Idx, Cost); 384 << " with cost " << Cost << '\n'; 387 << *Inst->getOperand(Idx) << " with cost " << Cost 419 int Cost = TTI->getIntImmCostInst(Instruction::Add, 1, Offset, PtrIntTy); local 431 ExprCandVec[Itr->second].addUser(Inst, Idx, Cost); 577 int Cost local 598 << "Adjusted cost: " << Cost << "\\n"); local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 170 return LT.first * Entry->Cost; 197 return Entry->Cost; 211 return Entry->Cost; 297 return Entry->Cost; 327 return Entry->Cost; 358 return Entry->Cost; 383 return Entry->Cost * ST->getMVEVectorCostFactor(); 402 return Entry->Cost; 465 return Entry->Cost; 597 return LT.first * Entry->Cost; 726 int Cost = BaseT::getArithmeticInstrCost(Opcode, Ty, Op1Info, Op2Info, local 784 unsigned Cost = getArithmeticInstrCost(Opcode, Ty->getScalarType()); local 1235 unsigned Cost = 0; local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | ConstantHoisting.h | 93 void addUser(Instruction *Inst, unsigned Idx, unsigned Cost) { argument 94 CumulativeCost += Cost;
|