Home
last modified time | relevance | path

Searched refs:getNumCases (Results 1 – 25 of 68) sorted by relevance

123

/external/llvm-project/llvm/unittests/IR/
DCFGBuilder.cpp52 const auto Last = SI->getNumCases(); in ConnectBlocks()
64 if (SI->getNumCases() == 0) { in DisconnectBlocks()
180 EXPECT_EQ(DSwitch->getNumCases(), 2U); in TEST()
208 EXPECT_EQ(DSwitch->getNumCases(), 2U); in TEST()
/external/llvm-project/llvm/lib/Analysis/
DFunctionPropertiesAnalysis.cpp35 (SI->getNumCases() + (nullptr != SI->getDefaultDest())); in getFunctionPropertiesInfo()
/external/swiftshader/third_party/subzero/src/
DIceSwitchLowering.cpp26 const SizeT NumCases = Instr->getNumCases(); in clusterizeSwitch()
/external/llvm/utils/TableGen/
DDAGISelMatcherEmitter.cpp305 NumCases = SOM->getNumCases(); in EmitMatcher()
308 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
759 for (unsigned i = 0, e = SOM->getNumCases(); i != e; ++i) in BuildHistogram()
762 for (unsigned i = 0, e = STM->getNumCases(); i != e; ++i) in BuildHistogram()
DDAGISelMatcher.h469 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
519 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
/external/llvm-project/llvm/tools/llvm-reduce/deltas/
DReduceBasicBlocks.cpp78 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch()
/external/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp71 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
DCorrelatedValuePropagation.cpp283 NumDeadCases += SI->getNumCases(); in processSwitch()
DSCCP.cpp572 if (!SI->getNumCases()) { in getFeasibleSuccessors()
636 if (SI->getNumCases() < 1) in isEdgeFeasible()
1492 if (!SI->getNumCases()) in ResolvedUndefsIn()
/external/llvm-project/llvm/utils/TableGen/
DDAGISelMatcherEmitter.cpp274 NumCases = SOM->getNumCases(); in SizeMatcher()
276 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in SizeMatcher()
505 NumCases = SOM->getNumCases(); in EmitMatcher()
508 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
DDAGISelMatcher.h484 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
534 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp676 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases()
804 bool HasWeight = MD && (MD->getNumOperands() == 2 + SI->getNumCases()); in SimplifyEqualityComparisonWithOnlyPredecessor()
3090 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect()
3227 if (Weights.size() == 1 + SI->getNumCases()) { in TryToSimplifyUncondBranchWithICmpInIt()
3876 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp()
3948 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp()
3977 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp()
4027 SI->getNumCases() == (1ULL << NumUnknownBits)) { in EliminateDeadSwitchCases()
4043 HasWeight = (Weights.size() == 1 + SI->getNumCases()); in EliminateDeadSwitchCases()
4686 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10) in ShouldBuildLookupTable()
[all …]
DLocal.cpp128 SI->getNumCases() > 0) { in ConstantFoldTerminator()
145 unsigned NCases = SI->getNumCases(); in ConstantFoldTerminator()
209 if (SI->getNumCases() == 1) { in ConstantFoldTerminator()
DLowerSwitch.cpp407 if (!SI->getNumCases()) { in processSwitchInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp73 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp730 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases()
3598 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect()
4397 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp()
4469 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp()
4495 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp()
4550 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases()
5227 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10) in ShouldBuildLookupTable()
5261 return SI->getNumCases() * 10 >= TableSize * 4; in ShouldBuildLookupTable()
5353 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable()
5371 if (SI->getNumCases() < 3) in SwitchToLookupTable()
[all …]
DLowerSwitch.cpp565 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in processSwitchInst()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLowerExpectIntrinsic.cpp93 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
/external/llvm-project/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp773 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases()
3750 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect()
4551 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp()
4623 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp()
4649 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp()
4704 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases()
5381 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10) in ShouldBuildLookupTable()
5415 return SI->getNumCases() * 10 >= TableSize * 4; in ShouldBuildLookupTable()
5507 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable()
5525 if (SI->getNumCases() < 3) in SwitchToLookupTable()
[all …]
DLowerSwitch.cpp469 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in ProcessSwitchInst()
/external/llvm/include/llvm/IR/
DInstructions.h3049 assert(Index < SI->getNumCases() && "Index out the number of cases.");
3055 assert((Index < SI->getNumCases() ||
3066 assert((Index == DefaultPseudoIndex || Index < SI->getNumCases()) &&
3074 assert(Index+1 <= SI->getNumCases() && "Index out the number of cases.");
3087 assert((Index == 0 || Index-1 <= SI->getNumCases()) &&
3123 assert(Index < SI->getNumCases() && "Index out the number of cases.");
3160 unsigned getNumCases() const {
3178 return CaseIt(this, getNumCases());
3183 return ConstCaseIt(this, getNumCases());
/external/llvm-project/llvm/include/llvm/IR/
DInstructions.h3226 assert((unsigned)Index < SI->getNumCases() &&
3233 assert(((unsigned)Index < SI->getNumCases() ||
3245 (unsigned)Index < SI->getNumCases()) &&
3268 assert((unsigned)Index < SI->getNumCases() &&
3317 (unsigned)(Case.Index + N) <= Case.SI->getNumCases() &&
3326 (unsigned)(Case.Index - N) <= Case.SI->getNumCases() &&
3377 unsigned getNumCases() const {
3396 return CaseIt(this, getNumCases());
3402 return ConstCaseIt(this, getNumCases());
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstructions.h3192 assert((unsigned)Index < SI->getNumCases() &&
3199 assert(((unsigned)Index < SI->getNumCases() ||
3211 (unsigned)Index < SI->getNumCases()) &&
3234 assert((unsigned)Index < SI->getNumCases() &&
3283 (unsigned)(Case.Index + N) <= Case.SI->getNumCases() &&
3292 (unsigned)(Case.Index - N) <= Case.SI->getNumCases() &&
3343 unsigned getNumCases() const {
3362 return CaseIt(this, getNumCases());
3368 return ConstCaseIt(this, getNumCases());
/external/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroElide.cpp276 if (SWI->getNumCases() == 2) in collectPostSplitCoroIds()
/external/llvm/lib/Transforms/Instrumentation/
DSanitizerCoverage.cpp466 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); in InjectTraceForSwitch()

123