Home
last modified time | relevance | path

Searched refs:CaseCluster (Results 1 – 16 of 16) sorted by relevance

/external/swiftshader/third_party/subzero/src/
DIceSwitchLowering.h25 class CaseCluster; variable
27 using CaseClusterArray = CfgVector<CaseCluster>;
30 class CaseCluster {
31 CaseCluster() = delete;
39 CaseCluster(const CaseCluster &) = default;
40 CaseCluster &operator=(const CaseCluster &) = default;
43 CaseCluster(uint64_t Value, CfgNode *Target) in CaseCluster() function
46 CaseCluster(uint64_t Low, uint64_t High, InstJumpTable *JT) in CaseCluster() function
78 bool tryAppend(const CaseCluster &New);
DIceSwitchLowering.cpp24 CaseClusterArray CaseCluster::clusterizeSwitch(Cfg *Func, in clusterizeSwitch()
37 [](const CaseCluster &x, const CaseCluster &y) { in clusterizeSwitch()
44 [&Active](const CaseCluster &x) { in clusterizeSwitch()
80 for (const CaseCluster &Case : CaseClusters) { in clusterizeSwitch()
96 bool CaseCluster::tryAppend(const CaseCluster &New) { in tryAppend()
DIceTargetLoweringX86BaseImpl.h7009 void TargetX86Base<TraitsType>::lowerCaseCluster(const CaseCluster &Case,
7014 case CaseCluster::JumpTable: {
7075 case CaseCluster::Range: {
7104 CaseClusterArray CaseClusters = CaseCluster::clusterizeSwitch(Func, Instr);
7194 const CaseCluster *CaseA = &CaseClusters[Span.Begin];
7195 const CaseCluster *CaseB = &CaseClusters[Span.Begin + 1];
7220 const CaseCluster &Pivot = CaseClusters[PivotIndex];
DIceTargetLoweringX86Base.h361 void lowerCaseCluster(const CaseCluster &Case, Operand *Src0, bool DoneCmp,
/external/llvm-project/llvm/include/llvm/CodeGen/
DSwitchLoweringUtils.h42 struct CaseCluster { struct
52 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High, in range() argument
54 CaseCluster C; in range()
63 static CaseCluster jumpTable(const ConstantInt *Low, const ConstantInt *High, in jumpTable() argument
65 CaseCluster C; in jumpTable()
74 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High, in bitTests() argument
76 CaseCluster C; in bitTests()
86 using CaseClusterVector = std::vector<CaseCluster>;
278 MachineBasicBlock *DefaultMBB, CaseCluster &JTCluster);
286 const SwitchInst *SI, CaseCluster &BTCluster);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DSwitchLoweringUtils.h37 struct CaseCluster { struct
47 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High, in range() argument
49 CaseCluster C; in range()
58 static CaseCluster jumpTable(const ConstantInt *Low, const ConstantInt *High, in jumpTable() argument
60 CaseCluster C; in jumpTable()
69 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High, in bitTests() argument
71 CaseCluster C; in bitTests()
81 using CaseClusterVector = std::vector<CaseCluster>;
273 MachineBasicBlock *DefaultMBB, CaseCluster &JTCluster);
281 const SwitchInst *SI, CaseCluster &BTCluster);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DSwitchLoweringUtils.cpp51 for (CaseCluster &C : Clusters) in findJumpTables()
86 CaseCluster JTCluster; in findJumpTables()
175 CaseCluster JTCluster; in findJumpTables()
191 CaseCluster &JTCluster) { in buildJumpTable()
257 JTCluster = CaseCluster::jumpTable(Clusters[First].Low, Clusters[Last].High, in buildJumpTable()
271 for (const CaseCluster &C : Clusters) in findBitTestClusters()
348 CaseCluster BitTestCluster; in findBitTestClusters()
364 CaseCluster &BTCluster) { in buildBitTests()
456 BTCluster = CaseCluster::bitTests(Clusters[First].Low, Clusters[Last].High, in buildBitTests()
463 for (const CaseCluster &CC : Clusters) in sortAndRangeify()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DSwitchLoweringUtils.cpp54 for (CaseCluster &C : Clusters) in findJumpTables()
89 CaseCluster JTCluster; in findJumpTables()
178 CaseCluster JTCluster; in findJumpTables()
194 CaseCluster &JTCluster) { in buildJumpTable()
260 JTCluster = CaseCluster::jumpTable(Clusters[First].Low, Clusters[Last].High, in buildJumpTable()
274 for (const CaseCluster &C : Clusters) in findBitTestClusters()
351 CaseCluster BitTestCluster; in findBitTestClusters()
367 CaseCluster &BTCluster) { in buildBitTests()
459 BTCluster = CaseCluster::bitTests(Clusters[First].Low, Clusters[Last].High, in buildBitTests()
466 for (const CaseCluster &CC : Clusters) in sortAndRangeify()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h149 struct CaseCluster { struct
159 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High, in range() argument
161 CaseCluster C; in range()
170 static CaseCluster jumpTable(const ConstantInt *Low, in jumpTable() argument
173 CaseCluster C; in jumpTable()
182 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High, in bitTests() argument
184 CaseCluster C; in bitTests()
194 typedef std::vector<CaseCluster> CaseClusterVector;
315 MachineBasicBlock *DefaultMBB, CaseCluster &JTCluster);
332 const SwitchInst *SI, CaseCluster &BTCluster);
[all …]
DSelectionDAGBuilder.cpp2382 for (const CaseCluster &CC : Clusters) in sortAndRangeify()
2387 [](const CaseCluster &a, const CaseCluster &b) { in sortAndRangeify()
2395 CaseCluster &CC = Clusters[SrcIndex]; in sortAndRangeify()
8246 CaseCluster &JTCluster) { in buildJumpTable()
8313 JTCluster = CaseCluster::jumpTable(Clusters[First].Low, Clusters[Last].High, in buildJumpTable()
8324 for (CaseCluster &C : Clusters) in findJumpTables()
8354 CaseCluster JTCluster; in findJumpTables()
8422 CaseCluster JTCluster; in findJumpTables()
8467 CaseCluster &BTCluster) { in buildBitTests()
8558 BTCluster = CaseCluster::bitTests(Clusters[First].Low, Clusters[Last].High, in buildBitTests()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp450 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in translateSwitch()
474 for (const CaseCluster &C : Clusters) { in translateSwitch()
767 [](const CaseCluster &a, const CaseCluster &b) { in lowerSwitchWorkItem()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h163 unsigned caseClusterRank(const SwitchCG::CaseCluster &CC,
DSelectionDAGBuilder.cpp10252 CaseCluster &Small = *W.FirstCluster; in lowerWorkItem()
10253 CaseCluster &Big = *W.LastCluster; in lowerWorkItem()
10305 [](const CaseCluster &a, const CaseCluster &b) { in lowerWorkItem()
10467 unsigned SelectionDAGBuilder::caseClusterRank(const CaseCluster &CC, in caseClusterRank()
10470 return std::count_if(First, Last + 1, [&](const CaseCluster &X) { in caseClusterRank()
10524 CaseCluster &CC = *FirstRight; in splitWorkItem()
10536 CaseCluster &CC = *LastLeft; in splitWorkItem()
10645 CaseCluster &CC = Clusters[Index]; in peelDominantCaseCluster()
10672 for (CaseCluster &CC : Clusters) { in peelDominantCaseCluster()
10694 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in visitSwitch()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h166 unsigned caseClusterRank(const SwitchCG::CaseCluster &CC,
DSelectionDAGBuilder.cpp10121 CaseCluster &Small = *W.FirstCluster; in lowerWorkItem()
10122 CaseCluster &Big = *W.LastCluster; in lowerWorkItem()
10174 [](const CaseCluster &a, const CaseCluster &b) { in lowerWorkItem()
10336 unsigned SelectionDAGBuilder::caseClusterRank(const CaseCluster &CC, in caseClusterRank()
10339 return std::count_if(First, Last + 1, [&](const CaseCluster &X) { in caseClusterRank()
10393 CaseCluster &CC = *FirstRight; in splitWorkItem()
10405 CaseCluster &CC = *LastLeft; in splitWorkItem()
10514 CaseCluster &CC = Clusters[Index]; in peelDominantCaseCluster()
10541 for (CaseCluster &CC : Clusters) { in peelDominantCaseCluster()
10563 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in visitSwitch()
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp685 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in translateSwitch()
710 for (const CaseCluster &C : Clusters) { in translateSwitch()
1158 [](const CaseCluster &a, const CaseCluster &b) { in lowerSwitchWorkItem()