Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_bitmanip_intrin.ll5 ; can be two, as is the case for ctlz and cttz.
7 declare i32 @llvm.ctlz.i32(i32, i1)
8 declare i64 @llvm.ctlz.i64(i64, i1)
17 %x = call i32 @llvm.ctlz.i32(i32 %a, i1 0)
22 %x = call i64 @llvm.ctlz.i64(i64 %a, i1 0)
Dtest_bitmanip.def23 X(ctlz) \
39 FOR_ALL_BMI_TYPES_INST(X, ctlz) \
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DIntrinsicEnums.inc47 ctlz, // llvm.ctlz
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonPatternsHVX.td409 def: Pat<(VecI8 (ctlz HVI8:$Vs)),
413 def: Pat<(VecI16 (ctlz HVI16:$Vs)), (V6_vcl0h HvxVR:$Vs)>;
414 def: Pat<(VecI32 (ctlz HVI32:$Vs)), (V6_vcl0w HvxVR:$Vs)>;
DHexagonBitSimplify.cpp2192 auto ctlz = [] (const BitTracker::RegisterCell &C) -> unsigned { in genBitSplit() local
2200 unsigned Z = ctlz(RC); in genBitSplit()
2234 if (SC.width() != W || ctlz(SC) != W-Z) in genBitSplit()
DHexagonPatterns.td1688 def: Pat<(i32 (ctlz I32:$Rs)), (S2_cl0 I32:$Rs)>;
1689 def: Pat<(i32 (trunc (ctlz I64:$Rss))), (S2_cl0p I64:$Rss)>;
1696 def: Pat<(i32 (ctlz (not I32:$Rs))), (S2_cl1 I32:$Rs)>;
1697 def: Pat<(i32 (trunc (ctlz (not I64:$Rss)))), (S2_cl1p I64:$Rss)>;
1704 def: Pat<(i64 (ctlz I64:$Rss)), (ToZext64 (S2_cl0p I64:$Rss))>;
1706 def: Pat<(i64 (ctlz (not I64:$Rss))), (ToZext64 (S2_cl1p I64:$Rss))>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDemandedBits.cpp131 case Intrinsic::ctlz: in determineLiveOperandBits()
DVectorUtils.cpp49 case Intrinsic::ctlz: in isTriviallyVectorizable()
96 case Intrinsic::ctlz: in hasVectorInstrinsicScalarOpd()
DConstantFolding.cpp1428 case Intrinsic::ctlz: in canConstantFoldCallTo()
2206 case Intrinsic::ctlz: in ConstantFoldScalarCall2()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Target/GlobalISel/
DSelectionDAGCompat.td96 def : GINodeEquiv<G_CTLZ, ctlz>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrInteger.td85 defm CLZ : UnaryInt<ctlz, "clz ", 0x67, 0x79>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIntrinsicLowering.cpp257 case Intrinsic::ctlz: in LowerIntrinsicCall()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.td2910 def : Pat<(ctlz Int32Regs:$a), (CLZr32 Int32Regs:$a)>;
2912 // The return type of the ctlz ISD node is the same as its input, but the PTX
2913 // ctz instruction always returns a 32-bit value. For ctlz.i64, convert the
2916 def : Pat<(i64 (ctlz Int64Regs:$a)), (CVT_u64_u32 (CLZr64 Int64Regs:$a), CvtNONE)>;
2917 def : Pat<(i32 (trunc (ctlz Int64Regs:$a))), (CLZr64 Int64Regs:$a)>;
2919 // For 16-bit ctlz, we zero-extend to 32-bit, perform the count, then trunc the
2927 // ctlz.b32 $result, $tmp
2930 // and then ctlz that value. This way we don't have to subtract 16 from the
2933 def : Pat<(i16 (ctlz Int16Regs:$a)),
2936 def : Pat<(i32 (zext (i16 (ctlz Int16Regs:$a)))),
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp182 Function *CTLZ = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in generateUnsignedDivisionCode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAutoUpgrade.cpp601 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicFunction1()
765 .Case("clz.i", Intrinsic::ctlz) in UpgradeIntrinsicFunction1()
2833 Intrinsic::ctlz, in UpgradeIntrinsicCall()
3478 Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicCall()
3565 case Intrinsic::ctlz: in UpgradeIntrinsicCall()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DSubzeroReactor.cpp4455 auto ctlz = Ice::InstIntrinsic::create(::function, 1, result, intrinsic); in Ctlz() local
4456 ctlz->addArg(x.value()); in Ctlz()
4457 ::basicBlock->appendInst(ctlz); in Ctlz()
4495 auto ctlz = Ice::InstIntrinsic::create(::function, 1, result, intrinsic); in Cttz() local
4496 ctlz->addArg(x.value()); in Cttz()
4497 ::basicBlock->appendInst(ctlz); in Cttz()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZInstrVector.td515 def VCLZB : UnaryVRRa<"vclzb", 0xE753, ctlz, v128b, v128b, 0>;
516 def VCLZH : UnaryVRRa<"vclzh", 0xE753, ctlz, v128h, v128h, 1>;
517 def VCLZF : UnaryVRRa<"vclzf", 0xE753, ctlz, v128f, v128f, 2>;
518 def VCLZG : UnaryVRRa<"vclzg", 0xE753, ctlz, v128g, v128g, 3>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCInstrAltivec.td1228 [(set v16i8:$vD, (ctlz v16i8:$vB))]>;
1231 [(set v8i16:$vD, (ctlz v8i16:$vB))]>;
1234 [(set v4i32:$vD, (ctlz v4i32:$vB))]>;
1237 [(set v2i64:$vD, (ctlz v2i64:$vB))]>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMips32r6InstrInfo.td795 list<dag> Pattern = [(set GPROpnd:$rd, (ctlz (not GPROpnd:$rs)))];
801 list<dag> Pattern = [(set GPROpnd:$rd, (ctlz GPROpnd:$rs))];
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstrInfo.td2359 [(set GR16:$dst, (ctlz GR16:$src)), (implicit EFLAGS)]>,
2363 [(set GR16:$dst, (ctlz (loadi16 addr:$src))),
2368 [(set GR32:$dst, (ctlz GR32:$src)), (implicit EFLAGS)]>,
2372 [(set GR32:$dst, (ctlz (loadi32 addr:$src))),
2377 [(set GR64:$dst, (ctlz GR64:$src)), (implicit EFLAGS)]>,
2381 [(set GR64:$dst, (ctlz (loadi64 addr:$src))),
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp1066 (II->getIntrinsicID() == Intrinsic::ctlz || in visitLShr()
DInstCombineSelect.cpp825 if (!match(TrueVal, m_Intrinsic<Intrinsic::ctlz>())) in foldSelectCtlzToCttz()
874 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) in foldSelectCttzCtlz()
DInstCombineCalls.cpp1190 II.getIntrinsicID() == Intrinsic::ctlz) && in foldCttzCtlz()
1198 Intrinsic::ID ID = IsTZ ? Intrinsic::ctlz : Intrinsic::cttz; in foldCttzCtlz()
1940 case Intrinsic::ctlz: in visitCallInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp1383 Intrinsic::ctlz; in detectShiftUntilZeroIdiom()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Target/
DTargetSelectionDAG.td143 def SDTIntBitCountUnaryOp : SDTypeProfile<1, 1, [ // ctlz, cttz
413 def ctlz : SDNode<"ISD::CTLZ" , SDTIntBitCountUnaryOp>;

123