Home
last modified time | relevance | path

Searched refs:TotalWeight (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/contrib/llvm/include/llvm/FuzzMutate/
H A DRandom.h37 uint64_t TotalWeight = 0; variable
42 uint64_t totalWeight() const { return TotalWeight; } in totalWeight()
43 bool isEmpty() const { return TotalWeight == 0; } in isEmpty()
65 TotalWeight += Weight; in sample()
67 if (uniform<uint64_t>(RandGen, 1, TotalWeight) <= Weight) in sample()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp1029 uint64_t TotalWeight = 0; in propagateThroughEdges() local
1038 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); in propagateThroughEdges()
1050 TotalWeight += visitEdge(E, &NumUnknownEdges, &UnknownEdge); in propagateThroughEdges()
1087 if (TotalWeight > BBWeight) { in propagateThroughEdges()
1088 BBWeight = TotalWeight; in propagateThroughEdges()
1104 if (BBWeight >= TotalWeight) in propagateThroughEdges()
1105 EdgeWeights[UnknownEdge] = BBWeight - TotalWeight; in propagateThroughEdges()
1140 if (BBWeight >= TotalWeight) in propagateThroughEdges()
1141 EdgeWeights[SelfReferentialEdge] = BBWeight - TotalWeight; in propagateThroughEdges()
1149 if (UpdateBlockCount && !VisitedBlocks.count(EC) && TotalWeight > 0) { in propagateThroughEdges()
[all …]