Searched refs:Weight (Results 1 - 25 of 43) sorted by relevance

12

/external/swiftshader/third_party/LLVM/lib/CodeGen/
H A DMachineBranchProbabilityInfo.cpp36 uint32_t Weight = getEdgeWeight(MBB, Succ); local
39 Sum += Weight;
49 uint32_t Weight = Src->getSuccWeight(Dst); local
50 if (!Weight)
52 return Weight;
58 uint32_t Weight = getEdgeWeight(Src, Dst); local
63 return (uint64_t)Weight * 5 > (uint64_t)Sum * 4;
75 uint32_t Weight = getEdgeWeight(MBB, Succ); local
78 Sum += Weight;
81 if (Weight > MaxWeigh
[all...]
/external/llvm/include/llvm/ProfileData/
H A DSampleProf.h120 /// Optionally scale sample count \p S by \p Weight.
124 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) {
126 NumSamples = SaturatingMultiplyAdd(S, Weight, NumSamples, &Overflowed);
132 /// Optionally scale sample count \p S by \p Weight.
137 uint64_t Weight = 1) {
141 SaturatingMultiplyAdd(S, Weight, TargetSamples, &Overflowed);
153 /// Optionally scale sample counts by \p Weight.
154 sampleprof_error merge(const SampleRecord &Other, uint64_t Weight = 1) {
155 sampleprof_error Result = addSamples(Other.getSamples(), Weight);
157 MergeResult(Result, addCalledTarget(I.first(), I.second, Weight));
[all...]
H A DInstrProfWriter.h48 /// summed. Optionally scale counts by \p Weight.
49 Error addRecord(InstrProfRecord &&I, uint64_t Weight = 1);
H A DInstrProf.h564 /// Optionally scale merged counts by \p Weight.
566 uint64_t Weight = 1);
568 void scale(SoftInstrProfErrors &SIPE, uint64_t Weight);
613 /// Optionally scale merged counts by \p Weight.
614 void merge(InstrProfRecord &Other, uint64_t Weight = 1);
617 /// \p Weight.
618 void scale(uint64_t Weight);
663 // Scale merged value counts by \p Weight.
665 uint64_t Weight);
667 void scaleValueProfData(uint32_t ValueKind, uint64_t Weight);
[all...]
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DBranchProbabilityInfo.cpp58 // | | (Weight = 124)
62 // | (Weight = 4)
169 ConstantInt *Weight = dyn_cast<ConstantInt>(WeightsNode->getOperand(i)); local
170 if (!Weight)
173 std::max<uint32_t>(1, Weight->getLimitedValue(WeightLimit)));
424 uint32_t Weight = getEdgeWeight(BB, Succ); local
427 Sum += Weight;
437 uint32_t Weight = getEdgeWeight(Src, Dst); local
442 return (uint64_t)Weight * 5 > (uint64_t)Sum * 4;
452 uint32_t Weight local
484 setEdgeWeight(const BasicBlock *Src, const BasicBlock *Dst, uint32_t Weight) argument
[all...]
/external/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp53 typedef BlockFrequencyInfoImplBase::Weight Weight;
80 BlockMass takeMass(uint32_t Weight);
92 BlockMass DitheringDistributer::takeMass(uint32_t Weight) {
93 assert(Weight && "invalid weight");
94 assert(Weight <= RemWeight);
95 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight);
98 RemWeight -= Weight;
104 Weight::DistType Type) {
117 Weights.push_back(Weight(Typ
266 addToDist(Distribution &Dist, const LoopData *OuterLoop, const BlockNode &Pred, const BlockNode &Succ, uint64_t Weight) argument
[all...]
H A DBranchProbabilityInfo.cpp48 // | | (Weight = 124)
52 // | (Weight = 4)
75 /// \brief Weight for a branch taken going into a cold block.
83 /// \brief Weight for a branch not-taken into a cold block.
208 ConstantInt *Weight = local
210 if (!Weight)
212 assert(Weight->getValue().getActiveBits() <= 32 &&
214 Weights.push_back(Weight->getZExtValue());
/external/llvm/utils/TableGen/
H A DCodeGenRegisters.h436 // Weight assigned to this RegUnit for estimating register pressure.
439 unsigned Weight; member in struct:llvm::RegUnit
450 RegUnit() : Weight(0), RegClassUnitSetsIdx(0) {
466 unsigned Weight; // Cache the sum of all unit weights. member in struct:llvm::RegUnitSet
469 RegUnitSet() : Weight(0), Order(0) {}
629 unsigned newRegUnit(unsigned Weight) { argument
631 RegUnits.back().Weight = Weight;
667 unsigned Weight = 0; local
670 Weight
[all...]
H A DCodeGenRegisters.cpp525 unsigned Weight = 0; local
528 Weight += RegBank.getRegUnit(*I).Weight;
530 return Weight;
1303 // A Weight field caches the max per-register unit weight in each UberRegSet.
1310 unsigned Weight; member in struct:__anon13752::UberRegSet
1313 UberRegSet(): Weight(0) {}
1391 unsigned MaxWeight = 0, Weight = 0; local
1394 if (Weight > MaxWeight)
1395 MaxWeight = Weight;
[all...]
/external/skia/include/core/
H A DSkFontStyle.h15 enum Weight { enum in class:SkFontStyle
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
H A DBranchProbabilityInfo.h60 uint32_t Weight);
/external/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h104 uint64_t Weight = 2; local
117 Weight = BPI->getEdgeProbability(&*BB, TargetBB).scale(scaleFactor);
118 addEdge(&*BB, TargetBB, Weight).IsCritical = Critical;
120 << TargetBB->getName() << " w=" << Weight << "\n");
135 return Edge1->Weight > Edge2->Weight;
139 // Traverse all the edges and compute the Minimum Weight Spanning Tree
/external/libvpx/libvpx/vp8/encoder/
H A Dmcomp.h38 extern int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight);
/external/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp112 uint64_t Weight; member in struct:WeightedFile
116 WeightedFile(StringRef F, uint64_t W) : Filename{F}, Weight{W} {}
147 if (Error E = Writer.addRecord(std::move(I), Input.Weight)) {
201 sampleprof_error Result = ProfileMap[FName].merge(Samples, Input.Weight);
215 uint64_t Weight; local
216 if (WeightStr.getAsInteger(10, Weight) || Weight < 1)
223 return WeightedFile(FileName, Weight);
311 outs() << WF.Weight << "," << WF.Filename << "\n";
/external/llvm/lib/ProfileData/
H A DInstrProf.cpp338 uint64_t Weight) {
349 I->Count = SaturatingMultiplyAdd(J->Count, Weight, I->Count, &Overflowed);
360 uint64_t Weight) {
363 I->Count = SaturatingMultiply(I->Count, Weight, &Overflowed);
370 // Scale merged value counts by \p Weight.
373 uint64_t Weight) {
385 ThisSiteRecords[I].merge(SIPE, OtherSiteRecords[I], Weight);
388 void InstrProfRecord::merge(InstrProfRecord &Other, uint64_t Weight) { argument
399 SaturatingMultiplyAdd(Other.Counts[I], Weight, Counts[I], &Overflowed);
405 mergeValueProfData(Kind, Other, Weight);
336 merge(SoftInstrProfErrors &SIPE, InstrProfValueSiteRecord &Input, uint64_t Weight) argument
359 scale(SoftInstrProfErrors &SIPE, uint64_t Weight) argument
371 mergeValueProfData(uint32_t ValueKind, InstrProfRecord &Src, uint64_t Weight) argument
408 scaleValueProfData(uint32_t ValueKind, uint64_t Weight) argument
416 scale(uint64_t Weight) argument
[all...]
H A DInstrProfWriter.cpp159 Error InstrProfWriter::addRecord(InstrProfRecord &&I, uint64_t Weight) { argument
173 if (Weight > 1)
174 Dest.scale(Weight);
177 Dest.merge(I, Weight);
/external/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp540 ErrorOr<uint64_t> Weight = getBlockWeight(&BB); local
541 if (Weight) {
542 BlockWeights[&BB] = Weight.get();
690 uint64_t Weight = BlockWeights[EC]; local
705 Weight = std::max(Weight, BlockWeights[BB2]);
708 BlockWeights[EC] = Weight;
1017 uint64_t Weight = EdgeWeights[E]; local
1022 if (Weight > std::numeric_limits<uint32_t>::max()) {
1024 Weight
[all...]
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonShuffler.h32 unsigned Slots, Weight; member in class:llvm::HexagonResource
43 unsigned getWeight() const { return (Weight); };
H A DHexagonShuffler.cpp92 Weight =
95 return (Weight);
/external/skia/src/sfnt/
H A DSkPanose.h47 enum class Weight : SK_OT_BYTE { class in struct:SkPanose::Data::TextAndDisplay
197 enum class Weight : SK_OT_BYTE { class in struct:SkPanose::Data::Script
318 enum class Weight : SK_OT_BYTE { class in struct:SkPanose::Data::Decorative
452 enum class Weight : SK_OT_BYTE { class in struct:SkPanose::Data::Pictoral
/external/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h330 /// In addition to the raw weight amount, Weight stores the type of the edge
334 struct Weight { struct in class:llvm::BlockFrequencyInfoImplBase
339 Weight() : Type(Local), Amount(0) {} function in struct:llvm::BlockFrequencyInfoImplBase::Weight
340 Weight(DistType Type, BlockNode TargetNode, uint64_t Amount) function in struct:llvm::BlockFrequencyInfoImplBase::Weight
353 typedef SmallVector<Weight, 4> WeightList;
360 add(Node, Amount, Weight::Local);
363 add(Node, Amount, Weight::Exit);
366 add(Node, Amount, Weight::Backedge);
371 /// Combines multiple edges to the same \a Weight::TargetNode and scales
381 void add(const BlockNode &Node, uint64_t Amount, Weight
[all...]
/external/llvm/include/llvm/CodeGen/
H A DMachineRegisterInfo.h1026 unsigned Weight; member in class:llvm::PSetIterator
1028 PSetIterator(): PSet(nullptr), Weight(0) {}
1034 Weight = TRI->getRegClassWeight(RC).RegWeight;
1038 Weight = TRI->getRegUnitWeight(RegUnit);
1045 unsigned getWeight() const { return Weight; }
/external/llvm/lib/CodeGen/
H A DRegisterPressure.cpp34 unsigned Weight = PSetI.getWeight(); local
36 CurrSetPressure[*PSetI] += Weight;
48 unsigned Weight = PSetI.getWeight(); local
50 assert(CurrSetPressure[*PSetI] >= Weight && "register pressure underflow");
51 CurrSetPressure[*PSetI] -= Weight;
119 unsigned Weight = PSetI.getWeight(); local
121 CurrSetPressure[*PSetI] += Weight;
633 int Weight = IsDec ? -PSetI.getWeight() : PSetI.getWeight();
651 unsigned NewUnitInc = I->getUnitInc() + Weight;
/external/vboot_reference/utility/
H A Defidecompress.c208 UINT16 Weight[17]; local
243 Weight[Index] = (UINT16) (1U << (TableBits - Index));
247 Weight[Index] = (UINT16) (1U << (16 - Index));
270 NextCode = (UINT16) (Start[Len] + Weight[Len]);
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp451 SmallVector<std::pair<BinaryOperator*, APInt>, 8> Worklist; // (Op, Weight)
483 APInt Weight = P.second; // Number of paths to this operand. local
484 DEBUG(dbgs() << "OPERAND: " << *Op << " (" << Weight << ")\n"); local
491 DEBUG(dbgs() << "DIRECT ADD: " << *Op << " (" << Weight << ")\n"); local
492 Worklist.push_back(std::make_pair(BO, Weight));
504 DEBUG(dbgs() << "ADD USES LEAF: " << *Op << " (" << Weight << ")\n"); local
506 Leaves[Op] = Weight;
515 IncorporateWeight(It->second, Weight, Opcode);
542 Weight = It->second;
562 DEBUG(dbgs() << "MORPH LEAF: " << *Op << " (" << Weight << ") T local
572 DEBUG(dbgs() << "ADD LEAF: " << *Op << " (" << Weight << ")\\n"); local
588 APInt Weight = It->second; local
[all...]

Completed in 815 milliseconds

12