reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/TargetTransformInfoImpl.h
  119     return SI.getNumCases();
include/llvm/CodeGen/BasicTTIImpl.h
  337     unsigned N = SI.getNumCases();
include/llvm/IR/Instructions.h
 3186       assert((unsigned)Index < SI->getNumCases() &&
 3193       assert(((unsigned)Index < SI->getNumCases() ||
 3205               (unsigned)Index < SI->getNumCases()) &&
 3228       assert((unsigned)Index < SI->getNumCases() &&
 3277              (unsigned)(Case.Index + N) <= Case.SI->getNumCases() &&
 3286              (unsigned)(Case.Index - N) <= Case.SI->getNumCases() &&
 3356     return CaseIt(this, getNumCases());
 3362     return ConstCaseIt(this, getNumCases());
lib/CodeGen/GlobalISel/IRTranslator.cpp
  441   Clusters.reserve(SI.getNumCases());
  448             : BranchProbability(1, SI.getNumCases() + 1);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
10498   Clusters.reserve(SI.getNumCases());
10504             : BranchProbability(1, SI.getNumCases() + 1);
lib/IR/Instructions.cpp
 3844   unsigned NewCaseIdx = getNumCases();
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  463       if (SI->getNumCases() + 1 >= (unsigned)TLI->getMinimumJumpTableEntries())
lib/Transforms/IPO/PartialInlining.cpp
  882       InlineCost += (SI->getNumCases() + 1) * InlineConstants::InstrCost;
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  754       Initializers.push_back(ConstantInt::get(Int64Ty, SI->getNumCases()));
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  415         NumDeadCases += SI->getNumCases();
lib/Transforms/Scalar/LoopUnswitch.cpp
  756       unsigned NumCases = SI->getNumCases();
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
   72   unsigned n = SI.getNumCases(); // +1 for default case.
lib/Transforms/Scalar/SCCP.cpp
  697     if (!SI->getNumCases()) {
 1726       if (!SI->getNumCases() || !getValueState(SI->getCondition()).isUnknown())
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  652   if (SI.getNumCases() > 0 &&
  663     if (SI.getNumCases() == 0)
  789     assert(SI.getNumCases() > 0 &&
lib/Transforms/Utils/Local.cpp
  168         SI->getNumCases() > 0) {
  184         unsigned NCases = SI->getNumCases();
  264     if (SI->getNumCases() == 1) {
lib/Transforms/Utils/LowerSwitch.cpp
  564     const unsigned NumDefaultEdges = SI->getNumCases() + 1 - NumSimpleCases;
lib/Transforms/Utils/SimplifyCFG.cpp
  729     Cases.reserve(SI->getNumCases());
 3539     if (Weights.size() == 1 + SI->getNumCases()) {
 4338   assert(SI->getNumCases() > 1 && "Degenerate switch?");
 4410     if (Weights.size() == 1 + SI->getNumCases()) {
 4436     unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size();
 4491       SI->getNumCases() == (1ULL << NumUnknownBits)) {
 5168   if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10)
 5202   return SI->getNumCases() * 10 >= TableSize * 4;
 5294   assert(SI->getNumCases() > 1 && "Degenerate switch?");
 5312   if (SI->getNumCases() < 3)
 5375     if (SI->getNumCases() < 4) // FIXME: Find best threshold value (benchmark).
 5559   if (SI->getNumCases() < 4)
tools/clang/lib/CodeGen/CGCleanup.cpp
  620     if (si->getNumCases() == 1 && si->getDefaultDest() == unreachableBB) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  166         CGF.EmitStoreOfScalar(CGF.Builder.getInt32(UntiedSwitch->getNumCases()),
  173         UntiedSwitch->addCase(CGF.Builder.getInt32(UntiedSwitch->getNumCases()),
  179     unsigned getNumberOfParts() const { return UntiedSwitch->getNumCases(); }
tools/clang/lib/CodeGen/CGStmt.cpp
 1720     assert(SwitchWeights->size() == 1 + SwitchInsn->getNumCases() &&
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   71     for (int I = 0, E = SwInst.getNumCases(); I != E; ++I) {
unittests/IR/CFGBuilder.cpp
   52   const auto Last = SI->getNumCases();
   64   if (SI->getNumCases() == 0) {
  180   EXPECT_EQ(DSwitch->getNumCases(), 2U);
  208   EXPECT_EQ(DSwitch->getNumCases(), 2U);