| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| D | FunctionPropertiesAnalysis.cpp | 35 (SI->getNumCases() + (nullptr != SI->getDefaultDest())); in getFunctionPropertiesInfo()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/utils/TableGen/ |
| D | DAGISelMatcherEmitter.cpp | 286 NumCases = SOM->getNumCases(); in SizeMatcher() 288 NumCases = cast<SwitchTypeMatcher>(N)->getNumCases(); in SizeMatcher() 516 NumCases = SOM->getNumCases(); in EmitMatcher() 519 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
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| D | SimplifyCFG.cpp | 755 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases() 3973 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect() 4759 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp() 4833 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp() 4859 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp() 4926 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases() 5631 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10) in ShouldBuildLookupTable() 5665 return SI->getNumCases() * 10 >= TableSize * 4; in ShouldBuildLookupTable() 5756 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable() 5775 if (SI->getNumCases() < 3) in SwitchToLookupTable() [all …]
|
| D | LowerSwitch.cpp | 469 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in ProcessSwitchInst()
|
| D | SCCPSolver.cpp | 617 if (!SI->getNumCases()) { in getFeasibleSuccessors() 1569 if (!SI->getNumCases() || in resolvedUndefsIn()
|
| D | Local.cpp | 199 SI->getNumCases() > 0) { in ConstantFoldTerminator() 217 unsigned NCases = SI->getNumCases(); in ConstantFoldTerminator() 300 if (SI->getNumCases() == 1) { in ConstantFoldTerminator()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | LowerExpectIntrinsic.cpp | 94 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
| D | SimpleLoopUnswitch.cpp | 752 if (SI.getNumCases() > 0 && in unswitchTrivialSwitch() 761 if (SI.getNumCases() == 0) in unswitchTrivialSwitch() 887 assert(SI.getNumCases() > 0 && in unswitchTrivialSwitch()
|
| D | CorrelatedValuePropagation.cpp | 372 NumDeadCases += SI->getNumCases(); in processSwitch()
|
| D | LoopUnswitch.cpp | 774 unsigned NumCases = SI->getNumCases(); in processCurrentLoop()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | Instructions.h | 3243 assert((unsigned)Index < SI->getNumCases() && 3250 assert(((unsigned)Index < SI->getNumCases() || 3262 (unsigned)Index < SI->getNumCases()) && 3285 assert((unsigned)Index < SI->getNumCases() && 3334 (unsigned)(Case.Index + N) <= Case.SI->getNumCases() && 3343 (unsigned)(Case.Index - N) <= Case.SI->getNumCases() && 3394 unsigned getNumCases() const { 3413 return CaseIt(this, getNumCases()); 3419 return ConstCaseIt(this, getNumCases());
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| D | CoroElide.cpp | 304 if (SWI->getNumCases() == 2) in collectPostSplitCoroIds()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| D | TargetTransformInfoImpl.h | 70 return SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| D | SanitizerCoverage.cpp | 802 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); in InjectTraceForSwitch()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| D | CGStmt.cpp | 1976 assert(SwitchWeights->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt() 1984 assert(SwitchLikelihood->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt()
|
| D | CGCleanup.cpp | 623 if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) { in destroyOptimisticNormalEntry()
|
| D | CGOpenMPRuntime.cpp | 179 CGF.EmitStoreOfScalar(CGF.Builder.getInt32(UntiedSwitch->getNumCases()), in emitUntiedSwitch() 186 UntiedSwitch->addCase(CGF.Builder.getInt32(UntiedSwitch->getNumCases()), in emitUntiedSwitch() 192 unsigned getNumberOfParts() const { return UntiedSwitch->getNumCases(); } in getNumberOfParts()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| D | PPCTargetTransformInfo.cpp | 681 if (SI->getNumCases() + 1 >= (unsigned)TLI->getMinimumJumpTableEntries()) in mightUseCTR()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUTargetTransformInfo.cpp | 836 return (SI ? (SI->getNumCases() + 1) : 4) * (CBrCost + 1); in getCFInstrCost()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| D | PartialInlining.cpp | 908 InlineCost += (SI->getNumCases() + 1) * InlineConstants::InstrCost; in computeBBInlineCost()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| D | IRTranslator.cpp | 683 Clusters.reserve(SI.getNumCases()); in translateSwitch() 690 : BranchProbability(1, SI.getNumCases() + 1); in translateSwitch()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| D | BasicTTIImpl.h | 381 unsigned N = SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/ |
| D | Instructions.cpp | 4075 unsigned NewCaseIdx = getNumCases(); in addCase()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| D | SelectionDAGBuilder.cpp | 10992 Clusters.reserve(SI.getNumCases()); in visitSwitch() 10998 : BranchProbability(1, SI.getNumCases() + 1); in visitSwitch()
|