Home
last modified time | relevance | path

Searched refs:ctlz (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonPatternsHVX.td527 def: Pat<(VecI8 (ctlz HVI8:$Vs)),
532 def: Pat<(VecI8 (ctlz HVI8:$Vs)),
537 def: Pat<(VecI16 (ctlz HVI16:$Vs)), (V6_vcl0h HvxVR:$Vs)>;
538 def: Pat<(VecI32 (ctlz HVI32:$Vs)), (V6_vcl0w HvxVR:$Vs)>;
H A DHexagonBitSimplify.cpp2202 auto ctlz = [] (const BitTracker::RegisterCell &C) -> unsigned { in genBitSplit() local
2210 unsigned Z = ctlz(RC); in genBitSplit()
2244 if (SC.width() != W || ctlz(SC) != W-Z) in genBitSplit()
H A DHexagonPatterns.td1756 def: Pat<(i32 (ctlz I32:$Rs)), (S2_cl0 I32:$Rs)>;
1757 def: Pat<(i32 (trunc (ctlz I64:$Rss))), (S2_cl0p I64:$Rss)>;
1764 def: Pat<(i32 (ctlz (not I32:$Rs))), (S2_cl1 I32:$Rs)>;
1765 def: Pat<(i32 (trunc (ctlz (not I64:$Rss)))), (S2_cl1p I64:$Rss)>;
1772 def: Pat<(i64 (ctlz I64:$Rss)), (ToZext64 (S2_cl0p I64:$Rss))>;
1774 def: Pat<(i64 (ctlz (not I64:$Rss))), (ToZext64 (S2_cl1p I64:$Rss))>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrInteger.td85 defm CLZ : UnaryInt<ctlz, "clz ", 0x67, 0x79>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp50 case Intrinsic::ctlz: in isTriviallyVectorizable()
103 case Intrinsic::ctlz: in hasVectorInstrinsicScalarOpd()
H A DDemandedBits.cpp131 case Intrinsic::ctlz: in determineLiveOperandBits()
H A DConstantFolding.cpp1474 case Intrinsic::ctlz: in canConstantFoldCallTo()
2670 case Intrinsic::ctlz: in ConstantFoldScalarCall2()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Target/GlobalISel/
H A DSelectionDAGCompat.td115 def : GINodeEquiv<G_CTLZ, ctlz>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp254 case Intrinsic::ctlz: in LowerIntrinsicCall()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXInstrInfo.td2914 def : Pat<(ctlz Int32Regs:$a), (CLZr32 Int32Regs:$a)>;
2916 // The return type of the ctlz ISD node is the same as its input, but the PTX
2917 // ctz instruction always returns a 32-bit value. For ctlz.i64, convert the
2920 def : Pat<(i64 (ctlz Int64Regs:$a)), (CVT_u64_u32 (CLZr64 Int64Regs:$a), CvtNONE)>;
2921 def : Pat<(i32 (trunc (ctlz Int64Regs:$a))), (CLZr64 Int64Regs:$a)>;
2923 // For 16-bit ctlz, we zero-extend to 32-bit, perform the count, then trunc the
2931 // ctlz.b32 $result, $tmp
2934 // and then ctlz that value. This way we don't have to subtract 16 from the
2937 def : Pat<(i16 (ctlz Int16Regs:$a)),
2940 def : Pat<(i32 (zext (i16 (ctlz Int16Regs:$a)))),
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp182 Function *CTLZ = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in generateUnsignedDivisionCode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1653 Intrinsic::ctlz; in detectShiftUntilZeroIdiom()
2322 Intrinsic::ID IntrID = Intrinsic::ctlz; in recognizeShiftUntilBitTest()
2525 : Intrinsic::ctlz; in detectShiftUntilZeroIdiom()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp709 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicFunction1()
901 .Case("clz.i", Intrinsic::ctlz) in UpgradeIntrinsicFunction1()
2993 Intrinsic::ctlz, in UpgradeIntrinsicCall()
3634 Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicCall()
3723 case Intrinsic::ctlz: in UpgradeIntrinsicCall()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrAltivec.td1268 [(set v16i8:$vD, (ctlz v16i8:$vB))]>;
1271 [(set v8i16:$vD, (ctlz v8i16:$vB))]>;
1274 [(set v4i32:$vD, (ctlz v4i32:$vB))]>;
1277 [(set v2i64:$vD, (ctlz v2i64:$vB))]>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrVector.td530 def VCLZB : UnaryVRRa<"vclzb", 0xE753, ctlz, v128b, v128b, 0>;
531 def VCLZH : UnaryVRRa<"vclzh", 0xE753, ctlz, v128h, v128h, 1>;
532 def VCLZF : UnaryVRRa<"vclzf", 0xE753, ctlz, v128f, v128f, 2>;
533 def VCLZG : UnaryVRRa<"vclzg", 0xE753, ctlz, v128g, v128g, 3>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp434 II.getIntrinsicID() == Intrinsic::ctlz) && in foldCttzCtlz()
443 Intrinsic::ID ID = IsTZ ? Intrinsic::ctlz : Intrinsic::cttz; in foldCttzCtlz()
1105 case Intrinsic::ctlz: in visitCallInst()
H A DInstCombineCasts.cpp954 if (match(Src, m_OneUse(m_Intrinsic<Intrinsic::ctlz>(m_ZExt(m_Value(A)), in visitTrunc()
960 Builder.CreateIntrinsic(Intrinsic::ctlz, {Trunc.getType()}, {A, B}); in visitTrunc()
H A DInstCombineShifts.cpp1057 (II->getIntrinsicID() == Intrinsic::ctlz || in visitLShr()
H A DInstCombineSelect.cpp868 if (!match(TrueVal, m_Intrinsic<Intrinsic::ctlz>())) in foldSelectCtlzToCttz()
917 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) in foldSelectCttzCtlz()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips32r6InstrInfo.td795 list<dag> Pattern = [(set GPROpnd:$rd, (ctlz (not GPROpnd:$rs)))];
801 list<dag> Pattern = [(set GPROpnd:$rd, (ctlz GPROpnd:$rs))];
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1346 case Intrinsic::ctlz: in getIntrinsicInstrCost()
1859 case Intrinsic::ctlz: in getTypeBasedIntrinsicInstrCost()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrInfo.td2434 [(set GR16:$dst, (ctlz GR16:$src)), (implicit EFLAGS)]>,
2438 [(set GR16:$dst, (ctlz (loadi16 addr:$src))),
2443 [(set GR32:$dst, (ctlz GR32:$src)), (implicit EFLAGS)]>,
2447 [(set GR32:$dst, (ctlz (loadi32 addr:$src))),
2452 [(set GR64:$dst, (ctlz GR64:$src)), (implicit EFLAGS)]>,
2456 [(set GR64:$dst, (ctlz (loadi64 addr:$src))),
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetSelectionDAG.td143 def SDTIntBitCountUnaryOp : SDTypeProfile<1, 1, [ // ctlz, cttz
435 def ctlz : SDNode<"ISD::CTLZ" , SDTIntBitCountUnaryOp>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiInstrInfo.td819 "leadz\t$Rs1, $Rd", [(set GPR:$Rd, (ctlz GPR:$Rs1))]>;
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp1514 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, ArgType); in EmitMSVCBuiltinExpr()
2683 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, ArgType); in EmitBuiltinExpr()
2720 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, ArgType); in EmitBuiltinExpr()
2774 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, ArgType); in EmitBuiltinExpr()
5580 NEONMAP1(vclz_v, ctlz, Add1ArgType),
5581 NEONMAP1(vclzq_v, ctlz, Add1ArgType),
5876 NEONMAP1(vclz_v, ctlz, Add1ArgType),
5877 NEONMAP1(vclzq_v, ctlz, Add1ArgType),
12577 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, Ops[0]->getType()); in EmitX86BuiltinExpr()
15254 Function *F = CGM.getIntrinsic(Intrinsic::ctlz, ResultType); in EmitPPCBuiltinExpr()
[all …]

12