/external/llvm-project/llvm/unittests/IR/ |
D | CFGBuilder.cpp | 52 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/ |
D | FunctionPropertiesAnalysis.cpp | 35 (SI->getNumCases() + (nullptr != SI->getDefaultDest())); in getFunctionPropertiesInfo()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceSwitchLowering.cpp | 26 const SizeT NumCases = Instr->getNumCases(); in clusterizeSwitch()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 305 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()
|
D | DAGISelMatcher.h | 469 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/ |
D | ReduceBasicBlocks.cpp | 78 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 71 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
D | CorrelatedValuePropagation.cpp | 283 NumDeadCases += SI->getNumCases(); in processSwitch()
|
D | SCCP.cpp | 572 if (!SI->getNumCases()) { in getFeasibleSuccessors() 636 if (SI->getNumCases() < 1) in isEdgeFeasible() 1492 if (!SI->getNumCases()) in ResolvedUndefsIn()
|
/external/llvm-project/llvm/utils/TableGen/ |
D | DAGISelMatcherEmitter.cpp | 274 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()
|
D | DAGISelMatcher.h | 484 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function 534 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 676 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 …]
|
D | Local.cpp | 128 SI->getNumCases() > 0) { in ConstantFoldTerminator() 145 unsigned NCases = SI->getNumCases(); in ConstantFoldTerminator() 209 if (SI->getNumCases() == 1) { in ConstantFoldTerminator()
|
D | LowerSwitch.cpp | 407 if (!SI->getNumCases()) { in processSwitchInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 73 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 730 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 …]
|
D | LowerSwitch.cpp | 565 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in processSwitchInst()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 93 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 773 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 …]
|
D | LowerSwitch.cpp | 469 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in ProcessSwitchInst()
|
/external/llvm/include/llvm/IR/ |
D | Instructions.h | 3049 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/ |
D | Instructions.h | 3226 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/ |
D | Instructions.h | 3192 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/ |
D | CoroElide.cpp | 276 if (SWI->getNumCases() == 2) in collectPostSplitCoroIds()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | SanitizerCoverage.cpp | 466 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); in InjectTraceForSwitch()
|