Home
last modified time | relevance | path

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

/external/swiftshader/third_party/subzero/src/
DIceSwitchLowering.cpp27 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()
[all …]
DIceTargetLoweringX86BaseImpl.h7053 CaseClusterArray CaseClusters = CaseCluster::clusterizeSwitch(Func, Instr);
7057 assert(CaseClusters.size() != 0); // Should always be at least one
7063 if (CaseClusters.back().getHigh() > UINT32_MAX) {
7099 if (CaseClusters.size() == 1) {
7103 lowerCaseCluster(CaseClusters.front(), Src0, DoneCmp, DefaultTarget);
7121 SearchSpanStack.emplace(0, CaseClusters.size(), nullptr);
7137 lowerCaseCluster(CaseClusters[Span.Begin], Comparison, DoneCmp,
7143 const CaseCluster *CaseA = &CaseClusters[Span.Begin];
7144 const CaseCluster *CaseB = &CaseClusters[Span.Begin + 1];
7169 const CaseCluster &Pivot = CaseClusters[PivotIndex];