| /freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | DAGISelMatcherEmitter.cpp | 101 for (unsigned I = 0; I < SOM->getNumCases(); I++) in MatcherTableEmitter() 104 for (unsigned I = 0; I < STM->getNumCases(); I++) in MatcherTableEmitter() 335 NumCases = SOM->getNumCases(); in SizeMatcher() 337 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in SizeMatcher() 588 NumCases = SOM->getNumCases(); in EmitMatcher() 591 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in EmitMatcher()
|
| H A D | DAGISelMatcher.h | 516 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function 567 unsigned getNumCases() const { return Cases.size(); } in getNumCases() function
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 92 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
| H A D | SimpleLoopUnswitch.cpp | 841 if (SI.getNumCases() > 0 && in unswitchTrivialSwitch() 850 if (SI.getNumCases() == 0) in unswitchTrivialSwitch() 976 assert(SI.getNumCases() > 0 && in unswitchTrivialSwitch()
|
| H A D | CorrelatedValuePropagation.cpp | 403 NumDeadCases += SI->getNumCases(); in processSwitch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 804 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases() 4647 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect() 5450 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp() 5526 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp() 5622 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases() 6412 if (SI->getNumCases() > TableSize) in ShouldBuildLookupTable() 6443 return isSwitchDense(SI->getNumCases(), TableSize); in ShouldBuildLookupTable() 6550 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable() 6569 if (SI->getNumCases() < 3) in SwitchToLookupTable() 6857 if (SI->getNumCases() < 4) in ReduceSwitchRange() [all …]
|
| H A D | LowerSwitch.cpp | 485 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in ProcessSwitchInst()
|
| H A D | Local.cpp | 200 SI->getNumCases() > 0) { in ConstantFoldTerminator() 218 unsigned NCases = SI->getNumCases(); in ConstantFoldTerminator() 305 if (SI->getNumCases() == 1) { in ConstantFoldTerminator()
|
| H A D | SCCPSolver.cpp | 1052 if (!SI->getNumCases()) { in getFeasibleSuccessors()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | FunctionPropertiesAnalysis.cpp | 56 Ret += (SI->getNumCases() + (nullptr != SI->getDefaultDest())); in getNrBlocksFromCond()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 3364 assert((unsigned)Index < SI->getNumCases() && 3371 assert(((unsigned)Index < SI->getNumCases() || 3383 (unsigned)Index < SI->getNumCases()) && 3406 assert((unsigned)Index < SI->getNumCases() && 3455 (unsigned)(Case.Index + N) <= Case.SI->getNumCases() && 3464 (unsigned)(Case.Index - N) <= Case.SI->getNumCases() && 3514 unsigned getNumCases() const { 3533 return CaseIt(this, getNumCases()); 3539 return ConstCaseIt(this, getNumCases());
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroElide.cpp | 334 if (SWI->getNumCases() == 2) in collectPostSplitCoroIds()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerCoverage.cpp | 818 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); in InjectTraceForSwitch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 774 return (SI ? (SI->getNumCases() + 1) : 4) * (CBrCost + 1); in getCFInstrCost()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | PartialInlining.cpp | 855 InlineCost += (SI->getNumCases() + 1) * InstrCost; in computeBBInlineCost()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 68 return SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCleanup.cpp | 640 if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) { in destroyOptimisticNormalEntry()
|
| H A D | CGStmt.cpp | 2087 assert(SwitchWeights->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt() 2095 assert(SwitchLikelihood->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt()
|
| H A D | CGOpenMPRuntime.cpp | 184 CGF.EmitStoreOfScalar(CGF.Builder.getInt32(UntiedSwitch->getNumCases()), in emitUntiedSwitch() 191 UntiedSwitch->addCase(CGF.Builder.getInt32(UntiedSwitch->getNumCases()), in emitUntiedSwitch() 197 unsigned getNumberOfParts() const { return UntiedSwitch->getNumCases(); } in getNumberOfParts()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 699 Clusters.reserve(SI.getNumCases()); in translateSwitch() 706 : BranchProbability(1, SI.getNumCases() + 1); in translateSwitch()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 448 unsigned N = SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Instructions.cpp | 4517 unsigned NewCaseIdx = getNumCases(); in addCase()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 11801 Clusters.reserve(SI.getNumCases()); in visitSwitch() 11807 : BranchProbability(1, SI.getNumCases() + 1); in visitSwitch()
|