| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceBasicBlocks.cpp | 101 for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) { in removeUninterestingBBsFromSwitch() 111 if (SwInst.getNumCases() == 0) { in removeUninterestingBBsFromSwitch()
|
| /openbsd-src/gnu/llvm/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
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | FunctionPropertiesAnalysis.cpp | 32 Ret += (SI->getNumCases() + (nullptr != SI->getDefaultDest())); in getNrBlocksFromCond()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroElide.cpp | 295 if (SWI->getNumCases() == 2) in collectPostSplitCoroIds()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 95 unsigned n = SI.getNumCases(); // +1 for default case. in handleSwitchExpect()
|
| H A D | SimpleLoopUnswitch.cpp | 794 if (SI.getNumCases() > 0 && in unswitchTrivialSwitch() 803 if (SI.getNumCases() == 0) in unswitchTrivialSwitch() 929 assert(SI.getNumCases() > 0 && in unswitchTrivialSwitch()
|
| H A D | CorrelatedValuePropagation.cpp | 422 NumDeadCases += SI->getNumCases(); in processSwitch()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 3350 assert((unsigned)Index < SI->getNumCases() && 3357 assert(((unsigned)Index < SI->getNumCases() || 3369 (unsigned)Index < SI->getNumCases()) && 3392 assert((unsigned)Index < SI->getNumCases() && 3441 (unsigned)(Case.Index + N) <= Case.SI->getNumCases() && 3450 (unsigned)(Case.Index - N) <= Case.SI->getNumCases() && 3500 unsigned getNumCases() const { 3519 return CaseIt(this, getNumCases()); 3525 return ConstCaseIt(this, getNumCases());
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 804 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases() 4522 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect() 5308 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp() 5384 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp() 5410 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp() 5480 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases() 6253 if (SI->getNumCases() > TableSize) in ShouldBuildLookupTable() 6284 return isSwitchDense(SI->getNumCases(), TableSize); in ShouldBuildLookupTable() 6391 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable() 6410 if (SI->getNumCases() < 3) in SwitchToLookupTable() [all …]
|
| H A D | LowerSwitch.cpp | 485 const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases; in ProcessSwitchInst()
|
| H A D | Local.cpp | 197 SI->getNumCases() > 0) { in ConstantFoldTerminator() 215 unsigned NCases = SI->getNumCases(); in ConstantFoldTerminator() 304 if (SI->getNumCases() == 1) { in ConstantFoldTerminator()
|
| H A D | SCCPSolver.cpp | 898 if (!SI->getNumCases()) { in getFeasibleSuccessors()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 751 return (SI ? (SI->getNumCases() + 1) : 4) * (CBrCost + 1); in getCFInstrCost()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 68 return SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerCoverage.cpp | 835 Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases())); in InjectTraceForSwitch()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGCleanup.cpp | 635 if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) { in destroyOptimisticNormalEntry()
|
| H A D | CGStmt.cpp | 2069 assert(SwitchWeights->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt() 2077 assert(SwitchLikelihood->size() == 1 + SwitchInsn->getNumCases() && in EmitSwitchStmt()
|
| H A D | CGOpenMPRuntime.cpp | 183 CGF.EmitStoreOfScalar(CGF.Builder.getInt32(UntiedSwitch->getNumCases()), in emitUntiedSwitch() 190 UntiedSwitch->addCase(CGF.Builder.getInt32(UntiedSwitch->getNumCases()), in emitUntiedSwitch() 196 unsigned getNumberOfParts() const { return UntiedSwitch->getNumCases(); } in getNumberOfParts()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | PartialInlining.cpp | 902 InlineCost += (SI->getNumCases() + 1) * InstrCost; in computeBBInlineCost()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 694 Clusters.reserve(SI.getNumCases()); in translateSwitch() 701 : BranchProbability(1, SI.getNumCases() + 1); in translateSwitch()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 433 unsigned N = SI.getNumCases(); in getEstimatedNumberOfCaseClusters()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Instructions.cpp | 4533 unsigned NewCaseIdx = getNumCases(); in addCase()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 11444 Clusters.reserve(SI.getNumCases()); in visitSwitch() 11450 : BranchProbability(1, SI.getNumCases() + 1); in visitSwitch()
|