Home
last modified time | relevance | path

Searched refs:ctlz (Results 1 - 22 of 22) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp187 /// Emit the code to lower ctlz of V before the specified instruction IP.
195 ShVal = Builder.CreateLShr(V, ShVal, "ctlz.sh"); in LowerCTLZ()
196 V = Builder.CreateOr(V, ShVal, "ctlz.step"); in LowerCTLZ()
257 case Intrinsic::ctlz: in LowerIntrinsicCall()
H A DCodeGenPrepare.cpp1826 (IntrinsicID == Intrinsic::ctlz && TLI->isCheapToSpeculateCtlz())) in despeculateCountZeros()
2008 case Intrinsic::ctlz: in optimizeCallInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DDemandedBits.cpp131 case Intrinsic::ctlz: in determineLiveOperandBits()
H A DVectorUtils.cpp49 case Intrinsic::ctlz: in isTriviallyVectorizable()
96 case Intrinsic::ctlz: in hasVectorInstrinsicScalarOpd()
H A DConstantFolding.cpp1428 case Intrinsic::ctlz: in canConstantFoldCallTo()
2206 case Intrinsic::ctlz: in ConstantFoldScalarCall2()
2209 // cttz(0, 1) and ctlz(0, 1) are undef. in ConstantFoldScalarCall2()
H A DValueTracking.cpp1570 case Intrinsic::ctlz: { in computeKnownBitsFromOperator()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp182 Function *CTLZ = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in generateUnsignedDivisionCode()
241 // ; %tmp0 = tail call i32 @llvm.ctlz.i32(i32 %divisor, i1 true) in generateUnsignedDivisionCode()
242 // ; %tmp1 = tail call i32 @llvm.ctlz.i32(i32 %dividend, i1 true) in generateUnsignedDivisionCode()
H A DSimplifyLibCalls.cpp2265 // fls(x) -> (i32)(sizeInBits(x) - llvm.ctlz(x, false))
2269 Intrinsic::ctlz, ArgType);
2270 Value *V = B.CreateCall(F, {Op, B.getFalse()}, "ctlz");
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
H A DAutoUpgrade.cpp517 // llvm.ctlz.* in UpgradeIntrinsicFunction1()
520 "llvm.ctlz." + Name.substr(14), F->getParent()); in UpgradeIntrinsicFunction1()
599 if (Name.startswith("ctlz.") && F->arg_size() == 1) { in UpgradeIntrinsicFunction1()
601 NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicFunction1()
765 .Case("clz.i", Intrinsic::ctlz) in UpgradeIntrinsicFunction1()
2833 Intrinsic::ctlz, in UpgradeIntrinsicCall()
3475 // llvm.nvvm.clz.ll returns an i32, but llvm.ctlz.i64 and returns an i64. in UpgradeIntrinsicCall()
3478 Intrinsic::getDeclaration(F->getParent(), Intrinsic::ctlz, in UpgradeIntrinsicCall()
3480 {Arg, Builder.getFalse()}, "ctlz"); in UpgradeIntrinsicCall()
3481 Rep = Builder.CreateTrunc(Ctlz, Builder.getInt32Ty(), "ctlz in UpgradeIntrinsicCall()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
H A DHexagonBitSimplify.cpp2192 auto ctlz = [] (const BitTracker::RegisterCell &C) -> unsigned {
2200 unsigned Z = ctlz(RC);
2234 if (SC.width() != W || ctlz(SC) != W-Z)
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DSubzeroReactor.cpp4455 auto ctlz = Ice::InstIntrinsic::create(::function, 1, result, intrinsic);
4456 ctlz->addArg(x.value());
4457 ::basicBlock->appendInst(ctlz);
4495 auto ctlz = Ice::InstIntrinsic::create(::function, 1, result, intrinsic);
4496 ctlz->addArg(x.value());
4497 ::basicBlock->appendInst(ctlz);
H A DLLVMReactor.cpp3537 auto func = llvm::Intrinsic::getDeclaration(jit->module.get(), llvm::Intrinsic::ctlz, { T(UInt::type()) }); in Ctlz()
3545 auto func = llvm::Intrinsic::getDeclaration(jit->module.get(), llvm::Intrinsic::ctlz, { T(UInt4::type()) }); in Ctlz()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp1190 II.getIntrinsicID() == Intrinsic::ctlz) && in foldCttzCtlz()
1191 "Expected cttz or ctlz intrinsic"); in foldCttzCtlz()
1195 // ctlz(bitreverse(x)) -> cttz(x) in foldCttzCtlz()
1196 // cttz(bitreverse(x)) -> ctlz(x) in foldCttzCtlz()
1198 Intrinsic::ID ID = IsTZ ? Intrinsic::ctlz : Intrinsic::cttz; in foldCttzCtlz()
1222 // Create a mask for bits above (ctlz) or below (cttz) the first known one. in foldCttzCtlz()
1228 // If all bits above (ctlz) or below (cttz) the first known one are known in foldCttzCtlz()
1237 // If the input to cttz/ctlz is known to be non-zero, in foldCttzCtlz()
1940 case Intrinsic::ctlz: in visitCallInst()
H A DInstCombineSelect.cpp805 /// int a = ctlz(x & -x);
825 if (!match(TrueVal, m_Intrinsic<Intrinsic::ctlz>())) in foldSelectCtlzToCttz()
838 /// Attempt to fold a cttz/ctlz followed by a icmp plus select into a single
839 /// call to cttz/ctlz with flag 'is_zero_undef' cleared.
871 // Check that 'Count' is a call to intrinsic cttz/ctlz. Also check that the in foldSelectCttzCtlz()
872 // input to the cttz/ctlz is used as LHS for the compare instruction. in foldSelectCttzCtlz()
874 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) in foldSelectCttzCtlz()
891 // fact that the cttz/ctlz result will not be used if the input is zero, so in foldSelectCttzCtlz()
H A DInstCombineShifts.cpp1066 (II->getIntrinsicID() == Intrinsic::ctlz || in visitLShr()
1069 // ctlz.i32(x)>>5 --> zext(x == 0) in visitLShr()
H A DInstCombineCompares.cpp3036 case Intrinsic::ctlz: in foldICmpEqIntrinsicWithConstant()
3118 case Intrinsic::ctlz: { in foldICmpIntrinsicWithConstant()
3119 // ctlz(0bXXXXXXXX) > 3 -> 0bXXXXXXXX < 0b00010000 in foldICmpIntrinsicWithConstant()
3127 // ctlz(0bXXXXXXXX) < 3 -> 0bXXXXXXXX > 0b00011111 in foldICmpIntrinsicWithConstant()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp193 bool recognizeAndInsertFFS(); /// Find First Set: ctlz or cttz
1383 Intrinsic::ctlz; in detectShiftUntilZeroIdiom()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h319 if (IID == Intrinsic::ctlz) { in getIntrinsicCost()
1468 // FIXME: ctlz, cttz, ... in getIntrinsicInstrCost()
/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_build.c1477 LLVMValueRef ctlz = in ac_ufN_to_float() local
1478 ac_build_intrinsic(ctx, "llvm.ctlz.i32", ctx->i32, params, 2, AC_FUNC_ATTR_READNONE); in ac_ufN_to_float()
1481 tmp = LLVMBuildSub(ctx->builder, ctlz, LLVMConstInt(ctx->i32, 8, false), ""); in ac_ufN_to_float()
1485 tmp = LLVMBuildSub(ctx->builder, LLVMConstInt(ctx->i32, denormal_exp, false), ctlz, ""); in ac_ufN_to_float()
1873 intrin_name = "llvm.ctlz.i64"; in ac_build_umsb()
1879 intrin_name = "llvm.ctlz.i32"; in ac_build_umsb()
1885 intrin_name = "llvm.ctlz.i16"; in ac_build_umsb()
1891 intrin_name = "llvm.ctlz.i8"; in ac_build_umsb()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp1503 case Intrinsic::ctlz: { in translateKnownIntrinsic()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp2167 case Intrinsic::ctlz: in getIntrinsicInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp6328 case Intrinsic::ctlz: { in visitIntrinsicCall()

Completed in 116 milliseconds