| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 531 ConstantRange ctlz(bool ZeroIsPoison = false) const;
|
| H A D | VPIntrinsics.def | 265 // llvm.vp.ctlz(x,is_zero_poison,mask,vlen) 268 VP_PROPERTY_FUNCTIONAL_INTRINSIC(ctlz)
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 951 case Intrinsic::ctlz: in isIntrinsicSupported() 985 case Intrinsic::ctlz: { in intrinsic() 989 return Ops[0].ctlz(ZeroIsPoison->getBoolValue()); in intrinsic() 1711 ConstantRange ConstantRange::ctlz(bool ZeroIsPoison) const { in ctlz() function in ConstantRange
|
| H A D | AutoUpgrade.cpp | 701 .StartsWith("vclz.", Intrinsic::ctlz) in upgradeArmOrAarch64IntrinsicFunction() 1034 .StartsWith("ctlz.", Intrinsic::ctlz) in upgradeIntrinsicFunction1() 1181 .Case("clz.i", Intrinsic::ctlz) in upgradeIntrinsicFunction1() 3509 Intrinsic::ctlz, in UpgradeIntrinsicCall() 4150 Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicCall() 4382 case Intrinsic::ctlz: in UpgradeIntrinsicCall()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyInstrInteger.td | 85 defm CLZ : UnaryInt<ctlz, "clz ", 0x67, 0x79>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 254 case Intrinsic::ctlz: in LowerIntrinsicCall()
|
| H A D | ExpandLargeFpConvert.cpp | 356 Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, IntTy); in expandIToFP()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 99 case Intrinsic::ctlz: in determineLiveOperandBits()
|
| H A D | VectorUtils.cpp | 51 case Intrinsic::ctlz: in isTriviallyVectorizable() 109 case Intrinsic::ctlz: in isVectorIntrinsicWithScalarOpAtArg()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Target/GlobalISel/ |
| H A D | SelectionDAGCompat.td | 137 def : GINodeEquiv<G_CTLZ, ctlz>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 496 II.getIntrinsicID() == Intrinsic::ctlz) && in foldCttzCtlz() 505 Intrinsic::ID ID = IsTZ ? Intrinsic::ctlz : Intrinsic::cttz; in foldCttzCtlz() 578 IC.Builder.CreateBinaryIntrinsic(Intrinsic::ctlz, C, Op1); in foldCttzCtlz() 586 IC.Builder.CreateBinaryIntrinsic(Intrinsic::ctlz, C, Op1); in foldCttzCtlz() 1941 case Intrinsic::ctlz: in visitCallInst() 3372 case Intrinsic::ctlz: in visitCallInst()
|
| H A D | InstCombineSelect.cpp | 1090 if (!match(Ctlz, m_Intrinsic<Intrinsic::ctlz>())) in foldSelectCtlzToCttz() 1143 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Value(X)))) in foldSelectCttzCtlz() 3319 !match(Ctlz, m_Intrinsic<Intrinsic::ctlz>(m_Value(CtlzOp), m_Zero())) || in foldBitCeil()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | IntegerDivision.cpp | 160 Function *CTLZ = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in generateUnsignedDivisionCode()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 1713 Intrinsic::ctlz; in detectShiftUntilZeroIdiom() 2382 Intrinsic::ID IntrID = Intrinsic::ctlz; in recognizeShiftUntilBitTest() 2603 : Intrinsic::ctlz; in detectShiftUntilZeroIdiom()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXInstrInfo.td | 3534 def : Pat<(i32 (ctlz (i32 Int32Regs:$a))), (CLZr32 Int32Regs:$a)>; 3536 // The return type of the ctlz ISD node is the same as its input, but the PTX 3537 // ctz instruction always returns a 32-bit value. For ctlz.i64, convert the 3540 def : Pat<(i64 (ctlz Int64Regs:$a)), (CVT_u64_u32 (CLZr64 Int64Regs:$a), CvtNONE)>; 3541 def : Pat<(i32 (trunc (ctlz Int64Regs:$a))), (CLZr64 Int64Regs:$a)>; 3543 // For 16-bit ctlz, we zero-extend to 32-bit, perform the count, then trunc the 3551 // ctlz.b32 $result, $tmp 3554 // and then ctlz that value. This way we don't have to subtract 16 from the 3557 def : Pat<(i16 (ctlz Int16Regs:$a)), 3560 def : Pat<(i32 (zext (i16 (ctlz Int16Regs:$a)))), [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstrMisc.td | 1157 [(set GR16:$dst, (ctlz GR16:$src)), (implicit EFLAGS)]>, 1161 [(set GR16:$dst, (ctlz (loadi16 addr:$src))), 1166 [(set GR32:$dst, (ctlz GR32:$src)), (implicit EFLAGS)]>, 1170 [(set GR32:$dst, (ctlz (loadi32 addr:$src))), 1175 [(set GR64:$dst, (ctlz GR64:$src)), (implicit EFLAGS)]>, 1179 [(set GR64:$dst, (ctlz (loadi64 addr:$src))),
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonPatternsHVX.td | 749 def: Pat<(VecI8 (ctlz HVI8:$Vs)), 754 def: Pat<(VecI16 (ctlz HVI16:$Vs)), (V6_vcl0h HvxVR:$Vs)>; 755 def: Pat<(VecI32 (ctlz HVI32:$Vs)), (V6_vcl0w HvxVR:$Vs)>;
|
| H A D | HexagonBitSimplify.cpp | 2227 auto ctlz = [] (const BitTracker::RegisterCell &C) -> unsigned { in genBitSplit() local 2235 unsigned Z = ctlz(RC); in genBitSplit() 2269 if (SC.width() != W || ctlz(SC) != W-Z) in genBitSplit()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInstrInfoXTHead.td | 622 def : PatGpr<ctlz, TH_FF1>; 623 def : Pat<(XLenVT (ctlz (xor (XLenVT GPR:$rs1), -1))), (TH_FF0 GPR:$rs1)>;
|
| H A D | RISCVInstrInfoZb.td | 606 def : PatGpr<ctlz, CLZ>; 834 def : PatGpr<ctlz, CLZW, i32>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCInstrAltivec.td | 1293 [(set v16i8:$VD, (ctlz v16i8:$VB))]>; 1296 [(set v8i16:$VD, (ctlz v8i16:$VB))]>; 1299 [(set v4i32:$VD, (ctlz v4i32:$VB))]>; 1302 [(set v2i64:$VD, (ctlz v2i64:$VB))]>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | Mips32r6InstrInfo.td | 796 list<dag> Pattern = [(set GPROpnd:$rd, (ctlz (not GPROpnd:$rs)))]; 802 list<dag> Pattern = [(set GPROpnd:$rd, (ctlz GPROpnd:$rs))];
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZInstrVector.td | 530 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-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchInstrInfo.td | 1282 def : PatGpr<ctlz, CLZ_D>; 1284 def : Pat<(ctlz (not GPR:$rj)), (CLO_D GPR:$rj)>; 1293 def : PatGpr<ctlz, CLZ_W>; 1295 def : Pat<(ctlz (not GPR:$rj)), (CLO_W GPR:$rj)>;
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 1574 case Intrinsic::ctlz: in getIntrinsicInstrCost() 2226 case Intrinsic::ctlz: in getTypeBasedIntrinsicInstrCost()
|