HomeSort by: relevance | last modified time | path
    Searched defs:TotalWeight (Results 1 - 3 of 3) sorted by relevancy

  /src/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/
Random.h 36 uint64_t TotalWeight = 0;
41 uint64_t totalWeight() const { return TotalWeight; }
42 bool isEmpty() const { return TotalWeight == 0; }
64 TotalWeight += Weight;
66 if (uniform<uint64_t>(RandGen, 1, TotalWeight) <= Weight)
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
SampleProfileLoaderBaseImpl.h 548 uint64_t TotalWeight = 0;
557 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge);
569 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge);
606 if (TotalWeight > BBWeight) {
607 BBWeight = TotalWeight;
623 if (BBWeight >= TotalWeight)
624 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight;
659 if (BBWeight >= TotalWeight)
660 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight;
668 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
BranchProbabilityInfo.cpp 841 uint64_t TotalWeight = 0;
875 TotalWeight += WeightVal;
880 // If TotalWeight is 0 that means weight of each successor is 0 as well and
882 if (!FoundEstimatedWeight || TotalWeight == 0)
890 if (TotalWeight > UINT32_MAX) {
891 uint64_t ScalingFactor = TotalWeight / UINT32_MAX + 1;
892 TotalWeight = 0;
898 TotalWeight += SuccWeights[Idx];
900 assert(TotalWeight <= UINT32_MAX && "Total weight overflows");
909 BranchProbability(SuccWeights[Idx], (uint32_t)TotalWeight);
    [all...]

Completed in 22 milliseconds