Home
last modified time | relevance | path

Searched refs:ctpop (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp776 B.CreateUnaryIntrinsic(Intrinsic::ctpop, Ballot), Ty, false); in optimizeAtomic()
783 B.CreateUnaryIntrinsic(Intrinsic::ctpop, Ballot), Int32Ty, false); in optimizeAtomic()
805 B.CreateUnaryIntrinsic(Intrinsic::ctpop, Ballot), Ty, false); in optimizeAtomic()
H A DEvergreenInstructions.td532 def BCNT_INT : R600_1OP_Helper <0xAA, "BCNT_INT", ctpop, VecALU>;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp290 match(I->getOperand(0), m_Intrinsic<Intrinsic::ctpop>(m_Value(LHS))) && in SimplifyDemandedUseBits()
291 match(I->getOperand(1), m_Intrinsic<Intrinsic::ctpop>(m_Value(RHS)))) { in SimplifyDemandedUseBits()
296 return Builder.CreateUnaryIntrinsic(Intrinsic::ctpop, Xor); in SimplifyDemandedUseBits()
910 case Intrinsic::ctpop: { in SimplifyDemandedUseBits()
918 II->getModule(), Intrinsic::ctpop, VTy); in SimplifyDemandedUseBits()
H A DInstCombineAddSub.cpp1873 if (match(LHS, m_OneUse(m_Intrinsic<Intrinsic::ctpop>(m_Value(A)))) && in visitAdd()
1874 match(RHS, m_OneUse(m_Intrinsic<Intrinsic::ctpop>(m_Value(B)))) && in visitAdd()
1877 I, Builder.CreateIntrinsic(Intrinsic::ctpop, {I.getType()}, in visitAdd()
1888 m_ZExt(m_ICmp(Pred, m_Intrinsic<Intrinsic::ctpop>(m_Value(A)), in visitAdd()
2808 match(Op1, m_OneUse(m_Intrinsic<Intrinsic::ctpop>(m_Value(X))))) in visitSub()
2810 I, Builder.CreateIntrinsic(Intrinsic::ctpop, {I.getType()}, in visitSub()
H A DInstCombineShifts.cpp1371 II->getIntrinsicID() == Intrinsic::ctpop)) { in visitLShr()
1375 bool IsPop = II->getIntrinsicID() == Intrinsic::ctpop; in visitLShr()
H A DInstCombineCalls.cpp644 assert(II.getIntrinsicID() == Intrinsic::ctpop && in foldCtpop()
682 Value *NarrowPop = IC.Builder.CreateUnaryIntrinsic(Intrinsic::ctpop, X); in foldCtpop()
2300 case Intrinsic::ctpop: in visitCallInst()
3685 Value *Res = Builder.CreateUnaryIntrinsic(Intrinsic::ctpop, V); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h573 LLVM_ABI ConstantRange ctpop() const;
H A DVPIntrinsics.def231 // llvm.vp.ctpop(x,mask,vlen)
233 VP_PROPERTY_FUNCTIONAL_INTRINSIC(ctpop)
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1221 {Intrinsic::ctpop, MVT::i8, 12},
1222 {Intrinsic::ctpop, MVT::i16, 19},
1223 {Intrinsic::ctpop, MVT::i32, 20},
1224 {Intrinsic::ctpop, MVT::i64, 21},
1398 case Intrinsic::ctpop: { in getIntrinsicInstrCost()
1409 case Intrinsic::ctpop: in getIntrinsicInstrCost()
H A DRISCVInstrInfoZb.td592 def : PatGpr<ctpop, CPOP>;
598 def : Pat<(i64 (ctpop (i64 (zexti32 (i64 GPR:$rs1))))), (CPOPW GPR:$rs1)>;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp1024 case Intrinsic::ctpop: in isIntrinsicSupported()
1068 case Intrinsic::ctpop: in intrinsic()
1069 return Ops[0].ctpop(); in intrinsic()
2121 ConstantRange ConstantRange::ctpop() const { in ctpop() function in ConstantRange
H A DAutoUpgrade.cpp717 .StartsWith("vcnt.", Intrinsic::ctpop) in upgradeArmOrAarch64IntrinsicFunction()
1353 .Case("popc.i", Intrinsic::ctpop) in upgradeIntrinsicFunction1()
2488 Value *Popc = Builder.CreateIntrinsic(Intrinsic::ctpop, {Arg->getType()}, in upgradeNVVMIntrinsicCall()
4762 case Intrinsic::ctpop: in UpgradeIntrinsicCall()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp253 case Intrinsic::ctpop: in LowerIntrinsicCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrInteger.td87 defm POPCNT : UnaryInt<ctpop, "popcnt", 0x69, 0x7b>;
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/GlobalISel/
H A DSelectionDAGCompat.td148 def : GINodeEquiv<G_CTPOP, ctpop>;
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonPatternsHVX.td756 def: Pat<(VecI8 (ctpop HVI8:$Vs)),
759 def: Pat<(VecI16 (ctpop HVI16:$Vs)), (V6_vpopcounth HvxVR:$Vs)>;
760 def: Pat<(VecI32 (ctpop HVI32:$Vs)),
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrAltivec.td1307 [(set v16i8:$VD, (ctpop v16i8:$VB))]>;
1310 [(set v8i16:$VD, (ctpop v8i16:$VB))]>;
1313 [(set v4i32:$VD, (ctpop v4i32:$VB))]>;
1316 [(set v2i64:$VD, (ctpop v2i64:$VB))]>;
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpLowering.cpp881 case Intrinsic::ctpop: in lowerIntrinsics()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcInstr64Bit.td173 def : Pat<(i64 (ctpop i64:$src)), (POPCrr $src)>;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp354 Builder.CreateIntrinsic(Intrinsic::ctpop, I.getType(), {Root})); in tryToRecognizePopCount()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp1845 case Intrinsic::ctpop: { in computeKnownBitsFromOperator()
2396 if (!match(Cond, m_ICmp(Pred, m_Intrinsic<Intrinsic::ctpop>(m_Specific(V)), in isImpliedToBeAPowerOfTwoFromCond()
3323 case Intrinsic::ctpop: in isKnownNonZeroFromOperator()
7388 case Intrinsic::ctpop: in canCreateUndefOrPoison()
7893 case Intrinsic::ctpop: in intrinsicPropagatesPoison()
9826 case Intrinsic::ctpop: in getRangeForIntrinsic()
10182 if (HasRHSC && match(A, m_Intrinsic<Intrinsic::ctpop>(m_Value(X)))) in findValuesAffectedByCondition()
H A DConstantFolding.cpp1603 case Intrinsic::ctpop: in canConstantFoldCallTo()
2239 IntrinsicID == Intrinsic::ctpop || in ConstantFoldScalarCall1()
2763 case Intrinsic::ctpop: in ConstantFoldScalarCall1()
H A DVectorUtils.cpp51 case Intrinsic::ctpop: in isTriviallyVectorizable()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrVector.td876 def VPOPCTB : UnaryVRRa<"vpopctb", 0xE750, ctpop, v128b, v128b, 0>;
877 def VPOPCTH : UnaryVRRa<"vpopcth", 0xE750, ctpop, v128h, v128h, 1>;
878 def VPOPCTF : UnaryVRRa<"vpopctf", 0xE750, ctpop, v128f, v128f, 2>;
879 def VPOPCTG : UnaryVRRa<"vpopctg", 0xE750, ctpop, v128g, v128g, 3>;
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h2558 case Intrinsic::ctpop: in getTypeBasedIntrinsicInstrCost()
3172 IntrinsicCostAttributes ICA(Intrinsic::ctpop, IntTy, {IntTy}, in getExtendedReductionCost()

123