Home
last modified time | relevance | path

Searched refs:Weight (Results 1 – 25 of 39) sorted by relevance

12

/external/llvm/include/llvm/ProfileData/
DSampleProf.h141 sampleprof_error addSamples(uint64_t S, uint64_t Weight = 1) {
143 if (Weight > 1) {
144 S = SaturatingMultiply(S, Weight, &Overflowed);
161 uint64_t Weight = 1) {
164 if (Weight > 1) {
165 S = SaturatingMultiply(S, Weight, &Overflowed);
184 sampleprof_error merge(const SampleRecord &Other, uint64_t Weight = 1) {
185 sampleprof_error Result = addSamples(Other.getSamples(), Weight);
187 MergeResult(Result, addCalledTarget(I.first(), I.second, Weight));
216 sampleprof_error addTotalSamples(uint64_t Num, uint64_t Weight = 1) {
[all …]
DInstrProfWriter.h41 std::error_code addRecord(InstrProfRecord &&I, uint64_t Weight = 1);
DInstrProf.h320 uint64_t Weight = 1);
361 instrprof_error merge(InstrProfRecord &Other, uint64_t Weight = 1);
396 uint64_t Weight);
/external/llvm/lib/Analysis/
DBlockFrequencyInfoImpl.cpp51 typedef BlockFrequencyInfoImplBase::Weight Weight; typedef
78 BlockMass takeMass(uint32_t Weight);
90 BlockMass DitheringDistributer::takeMass(uint32_t Weight) { in takeMass() argument
91 assert(Weight && "invalid weight"); in takeMass()
92 assert(Weight <= RemWeight); in takeMass()
93 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight); in takeMass()
96 RemWeight -= Weight; in takeMass()
102 Weight::DistType Type) { in add()
115 Weights.push_back(Weight(Type, Node, Amount)); in add()
118 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight()
[all …]
DBranchProbabilityInfo.cpp208 ConstantInt *Weight = in calcMetadataWeights() local
210 if (!Weight) in calcMetadataWeights()
212 assert(Weight->getValue().getActiveBits() <= 32 && in calcMetadataWeights()
214 Weights.push_back(Weight->getZExtValue()); in calcMetadataWeights()
539 uint32_t Weight = getEdgeWeight(BB, I.getSuccessorIndex()); in getSumForBlock() local
542 Sum += Weight; in getSumForBlock()
563 uint32_t Weight = getEdgeWeight(BB, Succ); in getHotSucc() local
566 Sum += Weight; in getHotSucc()
569 if (Weight > MaxWeight) { in getHotSucc()
570 MaxWeight = Weight; in getHotSucc()
[all …]
DCFLAliasAnalysis.cpp144 EdgeType Weight; member
152 : From(From), To(To), Weight(W), AdditionalAttrs(A) {} in Edge()
505 EdgeTypeT Weight; member
508 Edge(const EdgeTypeT &W, const Node &N) : Weight(W), Other(N) {} in Edge()
511 return Weight == E.Weight && Other == E.Other; in operator ==()
554 Store = std::make_tuple(Current->Weight, Current->Other); in operator *()
605 void addEdge(Node From, Node To, const EdgeTypeT &Weight, in addEdge() argument
611 FromNode.Edges.push_back(Edge(Weight, To)); in addEdge()
770 static Level directionOfEdgeType(EdgeType Weight) { in directionOfEdgeType() argument
771 switch (Weight) { in directionOfEdgeType()
[all …]
/external/llvm/utils/TableGen/
DCodeGenRegisters.h439 unsigned Weight; member
450 RegUnit() : Weight(0), RegClassUnitSetsIdx(0) { in RegUnit()
466 unsigned Weight; // Cache the sum of all unit weights. member
469 RegUnitSet() : Weight(0), Order(0) {} in RegUnitSet()
629 unsigned newRegUnit(unsigned Weight) { in newRegUnit() argument
631 RegUnits.back().Weight = Weight; in newRegUnit()
667 unsigned Weight = 0; in getRegUnitSetWeight() local
670 Weight += getRegUnit(*I).Weight; in getRegUnitSetWeight()
671 return Weight; in getRegUnitSetWeight()
683 getRegUnit(RUID).Weight += Inc; in increaseRegUnitWeight()
DCodeGenRegisters.cpp525 unsigned Weight = 0; in getWeight() local
528 Weight += RegBank.getRegUnit(*I).Weight; in getWeight()
530 return Weight; in getWeight()
1299 unsigned Weight; member
1302 UberRegSet(): Weight(0) {} in UberRegSet()
1380 unsigned MaxWeight = 0, Weight = 0; in computeUberWeights() local
1383 if (Weight > MaxWeight) in computeUberWeights()
1384 MaxWeight = Weight; in computeUberWeights()
1386 Weight = 0; in computeUberWeights()
1388 unsigned UWeight = RegBank.getRegUnit(*UnitI).Weight; in computeUberWeights()
[all …]
/external/llvm/lib/Transforms/IPO/
DSampleProfile.cpp494 uint64_t Weight = 0; in getBlockWeight() local
497 if (R && R.get() >= Weight) { in getBlockWeight()
498 Weight = R.get(); in getBlockWeight()
503 return Weight; in getBlockWeight()
518 ErrorOr<uint64_t> Weight = getBlockWeight(&BB); in computeBlockWeights() local
519 if (Weight) { in computeBlockWeights()
520 BlockWeights[&BB] = Weight.get(); in computeBlockWeights()
737 uint64_t Weight = BlockWeights[EC]; in findEquivalencesFor() local
752 Weight = std::max(Weight, BlockWeights[BB2]); in findEquivalencesFor()
755 BlockWeights[EC] = Weight; in findEquivalencesFor()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DCFGMST.h105 uint64_t Weight = 2; in buildEdges() local
118 Weight = BPI->getEdgeProbability(&*BB, TargetBB).scale(scaleFactor); in buildEdges()
119 addEdge(&*BB, TargetBB, Weight).IsCritical = Critical; in buildEdges()
121 << TargetBB->getName() << " w=" << Weight << "\n"); in buildEdges()
136 return Edge1->Weight > Edge2->Weight; in sortEdgesByWeight()
DPGOInstrumentation.cpp175 uint64_t Weight; member
180 : SrcBB(Src), DestBB(Dest), Weight(W), InMST(false), Removed(false), in PGOEdge()
185 (IsCritical ? "c" : " ") + " W=" + Twine(Weight)).str(); in infoString()
/external/llvm/lib/ProfileData/
DInstrProf.cpp167 uint64_t Weight) { in mergeValueData() argument
180 if (Weight > 1) { in mergeValueData()
181 JCount = SaturatingMultiply(JCount, Weight, &Overflowed); in mergeValueData()
200 uint64_t Weight) { in mergeValueProfData() argument
212 ThisSiteRecords[I].mergeValueData(OtherSiteRecords[I], Weight)); in mergeValueProfData()
217 uint64_t Weight) { in merge() argument
228 if (Weight > 1) { in merge()
229 OtherCount = SaturatingMultiply(OtherCount, Weight, &Overflowed); in merge()
239 MergeResult(Result, mergeValueProfData(Kind, Other, Weight)); in merge()
DInstrProfWriter.cpp98 uint64_t Weight) { in addRecord() argument
114 if (Weight > 1) { in addRecord()
117 Count = SaturatingMultiply(Count, Weight, &Overflowed); in addRecord()
125 Result = Dest.merge(I, Weight); in addRecord()
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp100 uint64_t Weight; member
104 WeightedFile(StringRef F, uint64_t W) : Filename{F}, Weight{W} {} in WeightedFile()
131 if (std::error_code EC = Writer.addRecord(std::move(I), Input.Weight)) { in mergeInstrProfile()
183 sampleprof_error Result = ProfileMap[FName].merge(Samples, Input.Weight); in mergeSampleProfile()
197 uint64_t Weight; in parseWeightedFile() local
198 if (WeightStr.getAsInteger(10, Weight) || Weight < 1) in parseWeightedFile()
205 return WeightedFile(FileName, Weight); in parseWeightedFile()
/external/llvm/docs/
DBranchWeightMetadata.rst2 LLVM Branch Weight Metadata
11 Branch Weight Metadata represents branch weights as its likeliness to be taken
70 Other terminator instructions are not allowed to contain Branch Weight Metadata.
115 Branch Weight Metatada is not proof against CFG changes. If terminator operands'
/external/llvm/include/llvm/Analysis/
DBlockFrequencyInfoImpl.h330 struct Weight {
335 Weight() : Type(Local), Amount(0) {}
336 Weight(DistType Type, BlockNode TargetNode, uint64_t Amount)
349 typedef SmallVector<Weight, 4> WeightList;
356 add(Node, Amount, Weight::Local);
359 add(Node, Amount, Weight::Exit);
362 add(Node, Amount, Weight::Backedge);
377 void add(const BlockNode &Node, uint64_t Amount, Weight::DistType Type);
406 const BlockNode &Pred, const BlockNode &Succ, uint64_t Weight);
DBranchProbabilityInfo.h112 uint32_t Weight);
/external/llvm/lib/CodeGen/
DRegisterPressure.cpp28 unsigned Weight = PSetI.getWeight(); in increaseSetPressure() local
30 CurrSetPressure[*PSetI] += Weight; in increaseSetPressure()
36 unsigned Weight = PSetI.getWeight(); in decreaseSetPressure() local
38 assert(CurrSetPressure[*PSetI] >= Weight && "register pressure underflow"); in decreaseSetPressure()
39 CurrSetPressure[*PSetI] -= Weight; in decreaseSetPressure()
97 unsigned Weight = PSetI.getWeight(); in increaseRegPressure() local
99 CurrSetPressure[*PSetI] += Weight; in increaseRegPressure()
439 int Weight = IsDec ? -PSetI.getWeight() : PSetI.getWeight(); in addPressureChange() local
457 unsigned NewUnitInc = I->getUnitInc() + Weight; in addPressureChange()
/external/skia/src/sfnt/
DSkPanose.h54 struct Weight { struct
234 struct Weight { struct
382 struct Weight { struct
543 struct Weight { struct
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.h31 unsigned Slots, Weight; variable
42 unsigned getWeight() const { return (Weight); }; in getWeight()
/external/llvm/include/llvm/CodeGen/
DMachineRegisterInfo.h957 unsigned Weight; variable
959 PSetIterator(): PSet(nullptr), Weight(0) {} in PSetIterator()
965 Weight = TRI->getRegClassWeight(RC).RegWeight; in PSetIterator()
969 Weight = TRI->getRegUnitWeight(RegUnit); in PSetIterator()
976 unsigned getWeight() const { return Weight; } in getWeight()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp584 APInt Weight = P.second; // Number of paths to this operand. in LinearizeExprTree() local
585 DEBUG(dbgs() << "OPERAND: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree()
592 DEBUG(dbgs() << "DIRECT ADD: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree()
593 Worklist.push_back(std::make_pair(BO, Weight)); in LinearizeExprTree()
605 DEBUG(dbgs() << "ADD USES LEAF: " << *Op << " (" << Weight << ")\n"); in LinearizeExprTree()
607 Leaves[Op] = Weight; in LinearizeExprTree()
616 IncorporateWeight(It->second, Weight, Opcode); in LinearizeExprTree()
643 Weight = It->second; in LinearizeExprTree()
663 DEBUG(dbgs() << "MORPH LEAF: " << *Op << " (" << Weight << ") TO "); in LinearizeExprTree()
666 Worklist.push_back(std::make_pair(BO, Weight)); in LinearizeExprTree()
[all …]
/external/skia/include/core/
DSkFontStyle.h15 enum Weight { enum
/external/vboot_reference/utility/
Defidecompress.c208 UINT16 Weight[17]; in MakeTable() local
243 Weight[Index] = (UINT16) (1U << (TableBits - Index)); in MakeTable()
247 Weight[Index] = (UINT16) (1U << (16 - Index)); in MakeTable()
270 NextCode = (UINT16) (Start[Len] + Weight[Len]); in MakeTable()
/external/libvpx/libvpx/vp8/encoder/
Dmcomp.h40 extern int vp8_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvcost[2], int Weight);

12