Lines Matching full:cluster
33 struct Cluster { struct
34 Cluster(int sec, size_t s) : next(sec), prev(sec), size(s) {} in Cluster() function
57 std::vector<Cluster> clusters;
63 // Maximum amount the combined cluster density can be worse than the original
64 // cluster to consider merging.
67 // Maximum cluster size in bytes.
98 // output. This messes with the cluster size and density calculations. We in CallGraphSort()
113 Cluster &toC = clusters[to]; in CallGraphSort()
119 for (Cluster &c : clusters) in CallGraphSort()
124 static bool isNewDensityBad(Cluster &a, Cluster &b) { in isNewDensityBad()
129 // Find the leader of V's belonged cluster (represented as an equivalence
140 static void mergeClusters(std::vector<Cluster> &cs, Cluster &into, int intoIdx, in mergeClusters()
141 Cluster &from, int fromIdx) { in mergeClusters()
166 // The cluster index is the same as the index of its leader here because in run()
167 // clusters[L] has not been merged into another cluster yet. in run()
168 Cluster &c = clusters[l]; in run()
178 Cluster *predC = &clusters[predL]; in run()