Lines Matching refs:Weight

53 typedef BlockFrequencyInfoImplBase::Weight Weight;  typedef
80 BlockMass takeMass(uint32_t Weight);
92 BlockMass DitheringDistributer::takeMass(uint32_t Weight) { in takeMass() argument
93 assert(Weight && "invalid weight"); in takeMass()
94 assert(Weight <= RemWeight); in takeMass()
95 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight); in takeMass()
98 RemWeight -= Weight; in takeMass()
104 Weight::DistType Type) { in add()
117 Weights.push_back(Weight(Type, Node, Amount)); in add()
120 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight()
139 [](const Weight &L, in combineWeightsBySorting()
140 const Weight &R) { return L.TargetNode < R.TargetNode; }); in combineWeightsBySorting()
159 typedef DenseMap<BlockNode::IndexType, Weight> HashTable; in combineWeightsByHashing()
161 for (const Weight &W : Weights) in combineWeightsByHashing()
224 [](uint64_t Sum, const Weight &W) { in normalize()
236 for (Weight &W : Weights) { in normalize()
270 uint64_t Weight) { in addToDist() argument
271 if (!Weight) in addToDist()
272 Weight = 1; in addToDist()
283 << " [" << Type << "] weight = " << Weight; in addToDist()
295 Dist.addBackedge(Resolved, Weight); in addToDist()
301 Dist.addExit(Resolved, Weight); in addToDist()
324 Dist.addLocal(Resolved, Weight); in addToDist()
409 for (const Weight &W : Dist.Weights) { in distributeMass()
412 if (W.Type == Weight::Local) { in distributeMass()
422 if (W.Type == Weight::Backedge) { in distributeMass()
429 assert(W.Type == Weight::Exit); in distributeMass()
789 for (const Weight &W : Dist.Weights) { in adjustLoopHeaderMass()
791 assert(W.Type == Weight::Local && "all weights should be local"); in adjustLoopHeaderMass()