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

References

include/llvm/ADT/SmallBitVector.h
  202     return getPointer()->count();
include/llvm/CodeGen/BasicTTIImpl.h
  969       Cost *= UsedInsts.count() / NumLegalInsts;
lib/CodeGen/GlobalISel/RegisterBank.cpp
   93      << "Number of Covered register classes: " << ContainedRegClasses.count()
lib/CodeGen/GlobalMerge.cpp
  390                       return UGS1.Globals.count() * UGS1.UsageCount <
  391                              UGS2.Globals.count() * UGS2.UsageCount;
  403       if (UGS.Globals.count() > 1)
  428     if (UGS.Globals.count() < 2)
lib/CodeGen/RegAllocGreedy.cpp
 1891         unsigned Count = GlobalCand[i].LiveBundles.count();
lib/CodeGen/SwitchLoweringUtils.cpp
  326       if (!RangesOnly || Dests.count() > 3)
  374   unsigned NumDests = Dests.count();
lib/DebugInfo/MSF/MSFBuilder.cpp
  106   uint32_t NumFreeBlocks = FreeBlocks.count();
  148 uint32_t MSFBuilder::getNumFreeBlocks() const { return FreeBlocks.count(); }
lib/DebugInfo/PDB/UDTLayout.cpp
   58   return UsedBytes.size() - UsedBytes.count();
  148   return SizeOf - ImmediateUsedBytes.count();
  291     if (ChildBytes.count() > 0) {
lib/Target/AArch64/AArch64FrameLowering.cpp
 2235   unsigned NumSavedRegs = SavedRegs.count();
 2256   bool CanEliminateFrame = (SavedRegs.count() == 0) && !SVEStackSize;
 2302   CSStackSize += 8 * (SavedRegs.count() - NumSavedRegs);
lib/Target/AArch64/AArch64Subtarget.h
  302   unsigned getNumXRegisterReserved() const { return ReserveXRegister.count(); }
lib/Target/AMDGPU/SIFormMemoryClauses.cpp
  320   MaxVGPRs = TRI->getAllocatableSet(MF, &AMDGPU::VGPR_32RegClass).count();
  321   MaxSGPRs = TRI->getAllocatableSet(MF, &AMDGPU::SGPR_32RegClass).count();
lib/Target/Hexagon/HexagonBitSimplify.cpp
 1467     if (Defs.count() != 1)
 2720     if (Defs.count() != 1)
 2961   if (Defs.count() != 1)
 3159     if (Defs.count() != 1)
 3239     if (Inputs.count() > 1)
lib/Target/PowerPC/PPCFrameLowering.cpp
  692   if (BV.count() < (TwoUniqueRegsRequired ? 2U : 1U))
lib/Target/SystemZ/SystemZRegisterInfo.cpp
  401   if (PhysClobbered.count() > (NewRC->getNumRegs() - DemandedFreeGR128))
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
 1098     NumVectorMemOps = UsedInsts.count();
 1104       unsigned NumSrcVecs = ValueVecs[Index].count();
lib/Target/X86/X86ISelLowering.cpp
 8203   unsigned NumUndefElts = UndefElements.count();
lib/Transforms/Scalar/LoopRerollPass.cpp
 1195     if (KV.second.count() != 1 && !isIgnorableInst(KV.first)) {
 1198                  << *KV.first << " (#uses=" << KV.second.count() << ")\n");
 1301       if (RootIt->second.count() > 1) {
tools/llvm-exegesis/lib/MCInstrDescView.cpp
  223   return AllDefRegs.count() || AllUseRegs.count();
  223   return AllDefRegs.count() || AllUseRegs.count();
tools/llvm-exegesis/lib/SnippetGenerator.cpp
  204   for (size_t I = randomIndex(Vector.count() - 1); I != 0; --I)
tools/opt/Debugify.cpp
  287     Stats->NumDbgLocsMissing += MissingLines.count();
  289     Stats->NumDbgValuesMissing += MissingVars.count();
unittests/ADT/BitVectorTest.cpp
   27   EXPECT_EQ(0U, Vec.count());
   35   EXPECT_EQ(5U, Vec.count());
   43   EXPECT_EQ(5U, Vec.count());
   52   EXPECT_EQ(6U, Inv.count());
   78   EXPECT_EQ(Count, Vec.count());
   91   EXPECT_TRUE(Vec.count() == 3);
  108   EXPECT_EQ(Count, Vec.count());
  117   EXPECT_EQ(Count + 1, Vec.count());
  120   EXPECT_EQ(Count, Vec.count());
  124   EXPECT_EQ(Count - 1, Vec.count());
  127   EXPECT_EQ(Count, Vec.count());
  130   EXPECT_EQ(Vec.size() - Count, Vec.count());
  133   EXPECT_EQ(0U, Vec.count());
  141   EXPECT_EQ(130U, Vec.count());
  149   EXPECT_EQ(64U, Vec.count());
  157   EXPECT_EQ(0U, Vec.count());
  165   EXPECT_EQ(0U, Inv.count());
  173   EXPECT_EQ(0U, Vec.count());
  212   EXPECT_EQ(100U, A.count());
  220   EXPECT_EQ(0U, A.count());
  468   EXPECT_EQ(4U, A.count());
  480   EXPECT_EQ(2U, A.count());
  489   EXPECT_EQ(98U, A.count());
  511     EXPECT_EQ(1u, Small.count());
  534     EXPECT_EQ(1u, Big.count());
  560     EXPECT_EQ(4u, Small.count());
  583     EXPECT_EQ(4u, Big.count());
  605     EXPECT_EQ(3u, Small.count());
  627     EXPECT_EQ(3u, Big.count());
  647     EXPECT_EQ(1u, Small.count());
  668     EXPECT_EQ(2u, Big.count());
  733   EXPECT_EQ(Vec.size(), Vec.count());
  751   EXPECT_EQ(1u, A.count());
  755   EXPECT_EQ(1u, A.count());
  757   EXPECT_EQ(1u, A.count());
  761   EXPECT_EQ(2u, A.count());
  765   EXPECT_EQ(4u, A.count());
  768   EXPECT_EQ(32u+3u, A.count());
  771   EXPECT_EQ(65u, A.count());
  774   EXPECT_EQ(65u, A.count());
  779   EXPECT_EQ(96u-5u, A.count());
  782   EXPECT_EQ(64-4u, A.count());
  835   EXPECT_EQ(4U, A.count());
  861   EXPECT_EQ(22U, A.count());
 1059   EXPECT_EQ((size_t)0, A.count());
 1126   EXPECT_EQ(0U, Vec.count());
 1131   EXPECT_EQ(1U, Vec.count());
 1136   EXPECT_EQ(1U, Vec.count());
 1141   EXPECT_EQ(2U, Vec.count());
 1150   EXPECT_EQ(102U, Vec.count());