Lines Matching refs:CaseClusters
27 CaseClusterArray CaseClusters; in clusterizeSwitch() local
28 CaseClusters.reserve(NumCases); in clusterizeSwitch()
31 CaseClusters.reserve(NumCases); in clusterizeSwitch()
33 CaseClusters.emplace_back(Instr->getValue(I), Instr->getLabel(I)); in clusterizeSwitch()
36 std::sort(CaseClusters.begin(), CaseClusters.end(), in clusterizeSwitch()
42 auto Active = CaseClusters.begin(); in clusterizeSwitch()
43 std::for_each(Active + 1, CaseClusters.end(), in clusterizeSwitch()
48 CaseClusters.erase(Active + 1, CaseClusters.end()); in clusterizeSwitch()
54 if (CaseClusters.size() < Func->getTarget()->getMinJumpTableSize()) in clusterizeSwitch()
55 return CaseClusters; in clusterizeSwitch()
64 const uint64_t MaxValue = CaseClusters.back().High; in clusterizeSwitch()
65 const uint64_t MinValue = CaseClusters.front().Low; in clusterizeSwitch()
71 return CaseClusters; in clusterizeSwitch()
74 return CaseClusters; in clusterizeSwitch()
80 for (const CaseCluster &Case : CaseClusters) { in clusterizeSwitch()
90 CaseClusters.clear(); in clusterizeSwitch()
91 CaseClusters.emplace_back(MinValue, MaxValue, JumpTable); in clusterizeSwitch()
93 return CaseClusters; in clusterizeSwitch()