| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A 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()
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceBasicBlocks.cpp | 95 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch()
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | DAGISelMatcherEmitter.cpp | 282 NumCases = SOM->getNumCases(); in SizeMatcher() 284 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in SizeMatcher() 512 NumCases = SOM->getNumCases(); in EmitMatcher() 515 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
|
| H A D | DAGISelMatcher.h | 484 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function 534 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | FunctionPropertiesAnalysis.cpp | 32 Ret += (SI->getNumCases() + (nullptr != SI->getDefaultDest())); in getNrBlocksFromCond()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroElide.cpp | 293 if (SWI->getNumCases() == 2) in collectPostSplitCoroIds()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 93 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
| H A D | SimpleLoopUnswitch.cpp | 777 if (SI.getNumCases() > 0 && in unswitchTrivialSwitch() 786 if (SI.getNumCases() == 0) in unswitchTrivialSwitch() 912 assert(SI.getNumCases() > 0 && in unswitchTrivialSwitch()
|
| H A D | CorrelatedValuePropagation.cpp | 422 NumDeadCases += SI->getNumCases(); in processSwitch()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 3310 assert((unsigned)Index < SI->getNumCases() && 3317 assert(((unsigned)Index < SI->getNumCases() || 3329 (unsigned)Index < SI->getNumCases()) && 3352 assert((unsigned)Index < SI->getNumCases() && 3401 (unsigned)(Case.Index + N) <= Case.SI->getNumCases() && 3410 (unsigned)(Case.Index - N) <= Case.SI->getNumCases() && 3460 unsigned getNumCases() const { 3479 return CaseIt(this, getNumCases()); 3485 return ConstCaseIt(this, getNumCases());
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 795 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases() 4355 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect() 5139 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp() 5215 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp() 5241 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp() 5311 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases() 6084 if (SI->getNumCases() > TableSize) in ShouldBuildLookupTable() 6115 return isSwitchDense(SI->getNumCases(), TableSize); in ShouldBuildLookupTable() 6222 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable() 6241 if (SI->getNumCases() < 3) in SwitchToLookupTable() [all …]
|
| H A D | LowerSwitch.cpp | 478 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in ProcessSwitchInst()
|
| H A D | Local.cpp | 196 SI->getNumCases() > 0) { in ConstantFoldTerminator() 214 unsigned NCases = SI->getNumCases(); in ConstantFoldTerminator() 297 if (SI->getNumCases() == 1) { in ConstantFoldTerminator()
|
| H A D | SCCPSolver.cpp | 628 if (!SI->getNumCases()) { in getFeasibleSuccessors()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 750 return (SI ? (SI->getNumCases() + 1) : 4) * (CBrCost + 1); in getCFInstrCost()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 67 return SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerCoverage.cpp | 806 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); in InjectTraceForSwitch()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 2058 assert(SwitchWeights->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt() 2066 assert(SwitchLikelihood->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt()
|
| H A D | CGCleanup.cpp | 635 if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) { in destroyOptimisticNormalEntry()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | PartialInlining.cpp | 902 InlineCost += (SI->getNumCases() + 1) * InlineConstants::InstrCost; in computeBBInlineCost()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 686 if (SI->getNumCases() + 1 >= (unsigned)TLI->getMinimumJumpTableEntries()) in mightUseCTR()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 930 unsigned numCases = swInst->getNumCases(); in processInstruction()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 689 Clusters.reserve(SI.getNumCases()); in translateSwitch() 696 : BranchProbability(1, SI.getNumCases() + 1); in translateSwitch()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 411 unsigned N = SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 4364 unsigned NewCaseIdx = getNumCases(); in addCase()
|