reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
142 if (!W.Amount) { 148 assert(OtherW.Amount && "Expected non-zero weight"); 149 if (W.Amount > W.Amount + OtherW.Amount) 149 if (W.Amount > W.Amount + OtherW.Amount) 149 if (W.Amount > W.Amount + OtherW.Amount) 151 W.Amount = UINT64_MAX; 153 W.Amount += OtherW.Amount; 153 W.Amount += OtherW.Amount; 226 Weights.front().Amount = 1; 246 return Sum + W.Amount; 261 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); 261 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); 262 assert(W.Amount <= UINT32_MAX); 265 Total += W.Amount; 436 BlockMass Taken = D.takeMass(W.Amount); 835 BlockMass Taken = D.takeMass(W.Amount); 846 BlockMass Taken = D.takeMass(W.Amount);lib/Transforms/Utils/CodeExtractor.cpp
1376 BranchWeights[Weight.TargetNode.Index] = Weight.Amount; 1377 BranchProbability BP(Weight.Amount, BranchDist.Total);