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

References

gen/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc
79848   return CurDAG->getTargetConstant(countPopulation(N->getZExtValue()), SDLoc(N),
gen/lib/Target/AMDGPU/R600GenDAGISel.inc
12622   return CurDAG->getTargetConstant(countPopulation(N->getZExtValue()), SDLoc(N),
include/llvm/ADT/APInt.h
 1672       return llvm::countPopulation(U.VAL);
include/llvm/ADT/BitVector.h
  175       NumBits += countPopulation(Bits[i]);
include/llvm/ADT/SmallBitVector.h
  200       return countPopulation(Bits);
include/llvm/ADT/SparseBitVector.h
  122       NumBits += countPopulation(Bits[i]);
include/llvm/MC/LaneBitmask.h
   76       return countPopulation(Mask);
include/llvm/MC/SubtargetFeature.h
  101       Count += countPopulation(B);
include/llvm/MCA/HardwareUnits/ResourceManager.h
  251     return isAResourceGroup() ? 1U : countPopulation(ResourceSizeMask);
lib/CodeGen/CodeGenPrepare.cpp
 2130     if (countPopulation(Result) > 1)
lib/CodeGen/MachinePipeliner.cpp
  924         unsigned numAlternatives = countPopulation(funcUnits);
  970         if (countPopulation(FuncUnits) == 1)
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2690   unsigned PopCount = countPopulation(B.Mask);
 5355         countPopulation(Val) + Log2_32(Val) < 7) {
lib/DebugInfo/PDB/Native/GlobalsStream.cpp
  160     NumBuckets += countPopulation(B);
lib/MC/MCSchedule.cpp
  142     double Temp = countPopulation(I->getUnits()) * 1.0 / I->getCycles();
lib/MCA/HardwareUnits/ResourceManager.cpp
   68       BufferSize(Desc.BufferSize), IsAGroup(countPopulation(ResourceMask) > 1) {
   82          countPopulation(ReadyMask) >= NumUnits;
  315       assert((countPopulation(R.first) > 1) && "Expected a group!");
  332       if (countPopulation(RR.first) == 1)
lib/MCA/InstrBuilder.cpp
  101     unsigned popcntA = countPopulation(A.first);
  102     unsigned popcntB = countPopulation(B.first);
  117       assert(countPopulation(A.first) > 1 && "Expected a group!");
  124     if (countPopulation(A.first) == 1) {
  136         if (countPopulation(B.first) > 1)
  160     if (countPopulation(RPC.first) > 1 && !RPC.second.isReserved()) {
lib/MCA/Stages/ExecuteStage.cpp
  278   SmallVector<unsigned, 4> BufferIDs(countPopulation(UsedBuffers), 0);
lib/Support/APInt.cpp
  652     Count += llvm::countPopulation(U.pVal[i]);
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
 1950           uint32_t WidthVal = countPopulation(MaskVal);
 1972           uint32_t WidthVal = countPopulation(MaskVal);
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 2963     (Desc.TSFlags & SIInstrFlags::Gather4) ? 4 : countPopulation(DMask);
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
  529   unsigned DstSize = IsGather4 ? 4 : std::max(countPopulation(DMask), 1u);
lib/Target/AMDGPU/GCNRegBankReassign.cpp
  377         if (countPopulation(LM) >= NUM_VGPR_BANKS)
  382         if (countPopulation(LM) / 2 >= NUM_SGPR_BANKS)
  392     StallCycles += countPopulation(UsedBanks & Mask);
  419   return countPopulation(Defs);
  454   unsigned Size = countPopulation(Mask);
  545       unsigned Size1 = countPopulation(Mask1);
  546       unsigned Size2 = countPopulation(Mask2);
lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
 1236         countPopulation(XorMask) == 1) {
lib/Target/AMDGPU/SIAddIMGInit.cpp
  112               TII->isGather4(Opcode) ? 4 : countPopulation(dmask);
lib/Target/AMDGPU/SIISelLowering.cpp
 5367     DMaskLanes = BaseOpcode->Gather4 ? 4 : countPopulation(DMask);
 8252     unsigned Bits = countPopulation(Mask);
10102   unsigned OldBitsSet = countPopulation(OldDmask);
10164   unsigned BitsSet = countPopulation(NewDmask);
lib/Target/AMDGPU/SIInstrInfo.cpp
 3398           isGather4(MI.getOpcode()) ? 4 : countPopulation(DMaskImm);
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
  285     return countPopulation(DMaskImm);
 1224     assert("No overlaps" && (countPopulation(CI.DMask0 | CI.DMask1) == Width));
 1237     assert((countPopulation(CI.DMask0 | CI.DMask1) == CI.Width0 + CI.Width1) &&
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
 1335     return Value > 0 && countPopulation((uint64_t)Value) == 1 &&
 7386     if (Cond == ARMCC::AL && countPopulation(Mask) != 1)
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
 1164   if (countPopulation(HalfMask) > 2)
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
   50   HexagonBid(unsigned B) { Bid = B ? MAX / countPopulation(B) : 0; }
  102   unsigned Ctpop = countPopulation(Units);
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
   55     return (countPopulation(A.getUnits()) < countPopulation(B.getUnits()));
   55     return (countPopulation(A.getUnits()) < countPopulation(B.getUnits()));
lib/Target/Mips/MipsISelLowering.cpp
  104   Size = countPopulation(I);
lib/Target/SystemZ/SystemZSelectionDAGInfo.cpp
   95           Bytes <= 16 && countPopulation(Bytes) <= 2 :
lib/Target/X86/X86FloatingPoint.cpp
  943   assert(StackTop == countPopulation(Mask) && "Live count mismatch");
lib/Target/X86/X86ISelDAGToDAG.cpp
 3493   uint64_t MaskSize = countPopulation(Mask);
lib/Target/X86/X86ISelLowering.cpp
10076   assert(countPopulation(NonZeros) == 2 && "Simple cases not handled?");
lib/Target/X86/X86InstrInfo.cpp
 1638         countPopulation(ZMask) == 2) {
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  996     DemandedElts &= (1 << countPopulation(DMaskVal)) - 1;
tools/clang/include/clang/Basic/Sanitizers.h
   64       total += llvm::countPopulation(Val);
tools/lldb/source/Symbol/ClangASTContext.cpp
 9407     if (llvm::countPopulation(val) != 1 && (val & ~covered_bits) != 0)
tools/lldb/source/Symbol/CompactUnwindInfo.cpp
  585           EXTRACT_BITS(unwind_info.encoding, UNWIND_PERSONALITY_MASK);
  669           EXTRACT_BITS(unwind_info.encoding, UNWIND_PERSONALITY_MASK);
  764         EXTRACT_BITS(function_info.encoding, UNWIND_X86_64_RBP_FRAME_OFFSET);
  767         EXTRACT_BITS(function_info.encoding, UNWIND_X86_64_RBP_FRAME_REGISTERS);
  801     uint32_t stack_size = EXTRACT_BITS(function_info.encoding,
  803     uint32_t register_count = EXTRACT_BITS(
  805     uint32_t permutation = EXTRACT_BITS(
  810       uint32_t stack_adjust = EXTRACT_BITS(
  815       uint32_t offset_to_subl_insn = EXTRACT_BITS(
 1035         EXTRACT_BITS(function_info.encoding, UNWIND_X86_EBP_FRAME_OFFSET);
 1038         EXTRACT_BITS(function_info.encoding, UNWIND_X86_EBP_FRAME_REGISTERS);
 1067         EXTRACT_BITS(function_info.encoding, UNWIND_X86_FRAMELESS_STACK_SIZE);
 1068     uint32_t register_count = EXTRACT_BITS(
 1070     uint32_t permutation = EXTRACT_BITS(
 1075       uint32_t stack_adjust = EXTRACT_BITS(function_info.encoding,
 1081           EXTRACT_BITS(function_info.encoding, UNWIND_X86_FRAMELESS_STACK_SIZE);
 1328         (EXTRACT_BITS(function_info.encoding,
 1458   uint32_t stack_adjust = (EXTRACT_BITS(function_info.encoding,
 1517         EXTRACT_BITS(function_info.encoding, UNWIND_ARM_FRAME_D_REG_COUNT_MASK);
utils/TableGen/CodeGenDAGPatterns.h
   75       Count += countPopulation(W);