Home
last modified time | relevance | path

Searched refs:Cost (Results 1 – 25 of 71) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DTargetTransformInfo.cpp151 int Cost = TTIImpl->getOperationCost(Opcode, Ty, OpTy); in getOperationCost() local
152 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getOperationCost()
153 return Cost; in getOperationCost()
158 int Cost = TTIImpl->getCallCost(FTy, NumArgs, U); in getCallCost() local
159 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallCost()
160 return Cost; in getCallCost()
166 int Cost = TTIImpl->getCallCost(F, Arguments, U); in getCallCost() local
167 assert(Cost >= 0 && "TTI should not produce negative costs!"); in getCallCost()
168 return Cost; in getCallCost()
192 int Cost = TTIImpl->getIntrinsicCost(IID, RetTy, Arguments, U); in getIntrinsicCost() local
[all …]
DCostModel.cpp103 unsigned Cost = TTI->getInstructionCost(&Inst, CostKind); in print() local
104 if (Cost != (unsigned)-1) in print()
105 OS << "Cost Model: Found an estimated cost of " << Cost; in print()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h86 unsigned Cost = 0; in getBroadcastShuffleOverhead() local
89 Cost += static_cast<T *>(this)->getVectorInstrCost( in getBroadcastShuffleOverhead()
93 Cost += static_cast<T *>(this)->getVectorInstrCost( in getBroadcastShuffleOverhead()
96 return Cost; in getBroadcastShuffleOverhead()
103 unsigned Cost = 0; in getPermuteShuffleOverhead() local
112 Cost += static_cast<T *>(this) in getPermuteShuffleOverhead()
114 Cost += static_cast<T *>(this) in getPermuteShuffleOverhead()
117 return Cost; in getPermuteShuffleOverhead()
129 unsigned Cost = 0; in getExtractSubvectorOverhead() local
134 Cost += static_cast<T *>(this)->getVectorInstrCost( in getExtractSubvectorOverhead()
[all …]
DCostTable.h27 unsigned Cost; member
48 unsigned Cost; member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp279 unsigned Cost = RBI->copyCost(*DesiredRegBank, *CurRegBank, in getRepairCost() local
282 if (Cost != std::numeric_limits<unsigned>::max()) in getRepairCost()
283 return Cost; in getRepairCost()
296 MappingCost Cost = MappingCost::ImpossibleCost(); in findBestMapping() local
301 computeMapping(MI, *CurMapping, LocalRepairPts, &Cost); in findBestMapping()
302 if (CurCost < Cost) { in findBestMapping()
304 Cost = CurCost; in findBestMapping()
452 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping() local
453 bool Saturated = Cost.addLocalCost(InstrMapping.getCost()); in computeMapping()
458 if (BestCost && Cost > *BestCost) { in computeMapping()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DInlineCost.h70 int Cost; variable
79 InlineCost(int Cost, int Threshold, const char *Reason = nullptr)
80 : Cost(Cost), Threshold(Threshold), Reason(Reason) { in Cost() argument
86 static InlineCost get(int Cost, int Threshold) { in get() argument
87 assert(Cost > AlwaysInlineCost && "Cost crosses sentinel value"); in get()
88 assert(Cost < NeverInlineCost && "Cost crosses sentinel value"); in get()
89 return InlineCost(Cost, Threshold); in get()
100 return Cost < Threshold;
103 bool isAlways() const { return Cost == AlwaysInlineCost; } in isAlways()
104 bool isNever() const { return Cost == NeverInlineCost; } in isNever()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp689 int PPCTTIImpl::vectorCostAdjustment(int Cost, unsigned Opcode, Type *Ty1, in vectorCostAdjustment() argument
692 return Cost; in vectorCostAdjustment()
698 return Cost; in vectorCostAdjustment()
702 return Cost; in vectorCostAdjustment()
707 return Cost; in vectorCostAdjustment()
710 return Cost * 2; in vectorCostAdjustment()
723 int Cost = BaseT::getArithmeticInstrCost(Opcode, Ty, Op1Info, Op2Info, in getArithmeticInstrCost() local
725 return vectorCostAdjustment(Cost, Opcode, Ty, nullptr); in getArithmeticInstrCost()
746 int Cost = BaseT::getCastInstrCost(Opcode, Dst, Src); in getCastInstrCost() local
747 return vectorCostAdjustment(Cost, Opcode, Dst, Src); in getCastInstrCost()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp74 int Cost = 0; in getIntImmCost() local
78 Cost += getIntImmCost(Val); in getIntImmCost()
81 return std::max(1, Cost); in getIntImmCost()
142 int Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty); in getIntImmCostInst() local
143 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCostInst()
145 : Cost; in getIntImmCostInst()
177 int Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty); in getIntImmCostIntrin() local
178 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCostIntrin()
180 : Cost; in getIntImmCostIntrin()
400 return Entry->Cost; in getCastInstrCost()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.cpp52 unsigned Cost = BasicTTIImplBase<WebAssemblyTTIImpl>::getArithmeticInstrCost( in getArithmeticInstrCost() local
65 Cost = VTy->getNumElements() * in getArithmeticInstrCost()
72 return Cost; in getArithmeticInstrCost()
77 unsigned Cost = BasicTTIImplBase::getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost() local
81 return Cost + 25 * TargetTransformInfo::TCC_Expensive; in getVectorInstrCost()
83 return Cost; in getVectorInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp433 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(Ty, Args); in getArithmeticInstrCost() local
437 Cost *= 2; in getArithmeticInstrCost()
438 return Cost; in getArithmeticInstrCost()
450 unsigned Cost = (VF * LIBCALL_COST) + getScalarizationOverhead(Ty, Args); in getArithmeticInstrCost() local
453 Cost *= 2; in getArithmeticInstrCost()
454 return Cost; in getArithmeticInstrCost()
581 unsigned Cost = 0; in getVectorTruncCost() local
587 Cost += NumParts; in getVectorTruncCost()
595 Cost--; in getVectorTruncCost()
597 return Cost; in getVectorTruncCost()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp195 return LT.first * Entry->Cost; in getArithmeticInstrCost()
244 return LT.first * Entry->Cost; in getArithmeticInstrCost()
258 int Cost = in getArithmeticInstrCost() local
262 Cost += getArithmeticInstrCost(Instruction::LShr, Ty, Op1Info, Op2Info, in getArithmeticInstrCost()
265 Cost += getArithmeticInstrCost(Instruction::Add, Ty, Op1Info, Op2Info, in getArithmeticInstrCost()
271 Cost += getArithmeticInstrCost(Instruction::Mul, Ty, Op1Info, Op2Info); in getArithmeticInstrCost()
272 Cost += getArithmeticInstrCost(Instruction::Sub, Ty, Op1Info, Op2Info); in getArithmeticInstrCost()
275 return Cost; in getArithmeticInstrCost()
300 return LT.first * Entry->Cost; in getArithmeticInstrCost()
313 return LT.first * Entry->Cost; in getArithmeticInstrCost()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DRegBankSelect.h446 bool addLocalCost(uint64_t Cost);
451 bool addNonLocalCost(uint64_t Cost);
461 bool operator<(const MappingCost &Cost) const;
463 bool operator==(const MappingCost &Cost) const;
465 bool operator!=(const MappingCost &Cost) const { return !(*this == Cost); }
467 bool operator>(const MappingCost &Cost) const {
468 return *this != Cost && Cost < *this;
478 friend raw_ostream &operator<<(raw_ostream &OS, const MappingCost &Cost) {
479 Cost.print(OS);
DRegisterBankInfo.h195 unsigned Cost = 0; variable
215 InstructionMapping(unsigned ID, unsigned Cost, in InstructionMapping() argument
218 : ID(ID), Cost(Cost), OperandsMapping(OperandsMapping), in InstructionMapping()
227 unsigned getCost() const { return Cost; } in getCost()
518 unsigned Cost = 0,
525 getInstructionMapping(unsigned ID, unsigned Cost, in getInstructionMapping() argument
528 return getInstructionMappingImpl(/*IsInvalid*/ false, ID, Cost, in getInstructionMapping()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DRegisterClassInfo.cpp115 unsigned Cost = TRI->getCostPerUse(PhysReg); in compute() local
116 MinCost = std::min(MinCost, Cost); in compute()
123 if (Cost != LastCost) in compute()
126 LastCost = Cost; in compute()
135 unsigned Cost = TRI->getCostPerUse(PhysReg); in compute() local
136 if (Cost != LastCost) in compute()
139 LastCost = Cost; in compute()
DRegAllocGreedy.cpp793 unsigned Cost = TRI->getCostPerUse(PhysReg); in tryAssign() local
796 if (!Cost) in tryAssign()
800 << Cost << '\n'); in tryAssign()
801 unsigned CheapReg = tryEvict(VirtReg, Order, NewVRegs, Cost, FixedRegisters); in tryAssign()
892 EvictionCost Cost; in canEvictInterference() local
931 Cost.BrokenHints += 10; in canEvictInterference()
936 Cost.BrokenHints += BreaksHint; in canEvictInterference()
937 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight); in canEvictInterference()
939 if (!(Cost < MaxCost)) in canEvictInterference()
955 MaxCost = Cost; in canEvictInterference()
[all …]
DRegAllocFast.cpp585 unsigned Cost = 0; in calcSpillCost() local
592 ++Cost; in calcSpillCost()
600 Cost += LRI->Dirty ? spillDirty : spillClean; in calcSpillCost()
605 return Cost; in calcSpillCost()
677 unsigned Cost = calcSpillCost(Hint0); in allocVirtReg() local
678 if (Cost < spillDirty) { in allocVirtReg()
681 if (Cost) in allocVirtReg()
698 unsigned Cost = calcSpillCost(Hint1); in allocVirtReg() local
699 if (Cost < spillDirty) { in allocVirtReg()
702 if (Cost) in allocVirtReg()
[all …]
DMachineLICM.cpp228 bool CanCauseHighRegPressure(const DenseMap<unsigned, int> &Cost,
864 auto Cost = calcRegisterCost(MI, /*ConsiderSeen=*/true, ConsiderUnseenAsDef); in UpdateRegPressure() local
865 for (const auto &RPIdAndCost : Cost) { in UpdateRegPressure()
883 DenseMap<unsigned, int> Cost; in calcRegisterCost() local
885 return Cost; in calcRegisterCost()
914 if (Cost.find(*PS) == Cost.end()) in calcRegisterCost()
915 Cost[*PS] = RCCost; in calcRegisterCost()
917 Cost[*PS] += RCCost; in calcRegisterCost()
920 return Cost; in calcRegisterCost()
1185 MachineLICMBase::CanCauseHighRegPressure(const DenseMap<unsigned, int>& Cost, in CanCauseHighRegPressure() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MCA/HardwareUnits/
DRegisterFile.cpp99 IPC = std::make_pair(RegisterFileIndex, RCE.Cost); in addRegisterFile()
120 unsigned Cost = Entry.IndexPlusCost.second; in allocatePhysRegs() local
123 RMT.NumUsedPhysRegs += Cost; in allocatePhysRegs()
124 UsedPhysRegs[RegisterFileIndex] += Cost; in allocatePhysRegs()
128 RegisterFiles[0].NumUsedPhysRegs += Cost; in allocatePhysRegs()
129 UsedPhysRegs[0] += Cost; in allocatePhysRegs()
135 unsigned Cost = Entry.IndexPlusCost.second; in freePhysRegs() local
138 RMT.NumUsedPhysRegs -= Cost; in freePhysRegs()
139 FreedPhysRegs[RegisterFileIndex] += Cost; in freePhysRegs()
143 RegisterFiles[0].NumUsedPhysRegs -= Cost; in freePhysRegs()
[all …]
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/namespaces/import_alias_declarations/
Dimport_alias_declarations_2.ts29 Cost: number; property
41 var gi: IAD2.GI = { UIName: "GI", Cost: 200, Strength: 100 };
44 Assert.equal(gi.Cost, 200);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp361 unsigned Cost; in collectConstantCandidates() local
365 Cost = TTI->getIntImmCostIntrin(IntrInst->getIntrinsicID(), Idx, in collectConstantCandidates()
368 Cost = TTI->getIntImmCostInst(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates()
372 if (Cost > TargetTransformInfo::TCC_Basic) { in collectConstantCandidates()
381 ConstIntCandVec[Itr->second].addUser(Inst, Idx, Cost); in collectConstantCandidates()
384 << " with cost " << Cost << '\n'; in collectConstantCandidates()
387 << *Inst->getOperand(Idx) << " with cost " << Cost in collectConstantCandidates()
419 int Cost = TTI->getIntImmCostInst(Instruction::Add, 1, Offset, PtrIntTy); in collectConstantCandidates() local
431 ExprCandVec[Itr->second].addUser(Inst, Idx, Cost); in collectConstantCandidates()
577 int Cost = 0; in maximizeConstantsInRange() local
[all …]
DLoopUnrollPass.cpp403 auto &Cost = *CostIter; in analyzeLoopUnrollCost() local
404 if (Cost.IsCounted) in analyzeLoopUnrollCost()
409 Cost.IsCounted = true; in analyzeLoopUnrollCost()
414 assert(Cost.IsFree && "Loop PHIs shouldn't be evaluated as they " in analyzeLoopUnrollCost()
430 if (!Cost.IsFree) { in analyzeLoopUnrollCost()
710 static unsigned getFullUnrollBoostingFactor(const EstimatedUnrollCost &Cost, in getFullUnrollBoostingFactor() argument
712 if (Cost.RolledDynamicCost >= std::numeric_limits<unsigned>::max() / 100) in getFullUnrollBoostingFactor()
714 else if (Cost.UnrolledCost != 0) in getFullUnrollBoostingFactor()
716 return std::min(100 * Cost.RolledDynamicCost / Cost.UnrolledCost, in getFullUnrollBoostingFactor()
828 if (Optional<EstimatedUnrollCost> Cost = analyzeLoopUnrollCost( in computeUnrollCount() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp170 return LT.first * Entry->Cost; in getCastInstrCost()
197 return Entry->Cost; in getCastInstrCost()
211 return Entry->Cost; in getCastInstrCost()
297 return Entry->Cost; in getCastInstrCost()
327 return Entry->Cost; in getCastInstrCost()
358 return Entry->Cost; in getCastInstrCost()
383 return Entry->Cost * ST->getMVEVectorCostFactor(); in getCastInstrCost()
402 return Entry->Cost; in getCastInstrCost()
465 return Entry->Cost; in getCmpSelInstrCost()
597 return LT.first * Entry->Cost; in getShuffleCost()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/Utils/
DRISCVMatInt.cpp83 int Cost = 0; in getIntMatCost() local
88 Cost += MatSeq.size(); in getIntMatCost()
90 return std::max(1, Cost); in getIntMatCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp183 unsigned Cost = in getMemoryOpCost() local
191 return Cost * NumLoads; in getMemoryOpCost()
195 return (3 - LogA) * Cost * NumLoads; in getMemoryOpCost()
272 unsigned Cost = (Index != 0) ? 2 : 0; in getVectorInstrCost() local
274 return Cost; in getVectorInstrCost()
276 return Cost + getVectorInstrCost(Instruction::ExtractElement, Val, Index); in getVectorInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp410 VectorLoopValueMap(UnrollFactor, VecWidth), Legal(LVL), Cost(CM) {} in InnerLoopVectorizer()
765 LoopVectorizationCostModel *Cost; member in llvm::InnerLoopVectorizer
1109 unsigned Cost) { in setWideningDecision() argument
1111 WideningDecisions[std::make_pair(I, VF)] = std::make_pair(W, Cost); in setWideningDecision()
1117 InstWidening W, unsigned Cost) { in setWideningDecision() argument
1124 WideningDecisions[std::make_pair(I, VF)] = std::make_pair(W, Cost); in setWideningDecision()
1763 return Cost->isScalarAfterVectorization(I, VF) || in shouldScalarizeInstruction()
1764 Cost->isProfitableToScalarize(I, VF); in shouldScalarizeInstruction()
1985 Cost->isUniformAfterVectorization(cast<Instruction>(EntryVal), VF) ? 1 in buildScalarSteps()
2033 unsigned LastLane = Cost->isUniformAfterVectorization(I, VF) ? 0 : VF - 1; in getOrCreateVectorValue()
[all …]

123