/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
H A D | IntrinsicLowering.cpp | 187 /// 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 D | CodeGenPrepare.cpp | 1826 (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 D | DemandedBits.cpp | 131 case Intrinsic::ctlz: in determineLiveOperandBits()
|
H A D | VectorUtils.cpp | 49 case Intrinsic::ctlz: in isTriviallyVectorizable() 96 case Intrinsic::ctlz: in hasVectorInstrinsicScalarOpd()
|
H A D | ConstantFolding.cpp | 1428 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 D | ValueTracking.cpp | 1570 case Intrinsic::ctlz: { in computeKnownBitsFromOperator()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
H A D | IntegerDivision.cpp | 182 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 D | SimplifyLibCalls.cpp | 2265 // 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 D | AutoUpgrade.cpp | 517 // 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 D | HexagonBitSimplify.cpp | 2192 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 D | SubzeroReactor.cpp | 4455 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 D | LLVMReactor.cpp | 3537 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 D | InstCombineCalls.cpp | 1190 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 D | InstCombineSelect.cpp | 805 /// 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 D | InstCombineShifts.cpp | 1066 (II->getIntrinsicID() == Intrinsic::ctlz || in visitLShr() 1069 // ctlz.i32(x)>>5 --> zext(x == 0) in visitLShr()
|
H A D | InstCombineCompares.cpp | 3036 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 D | LoopIdiomRecognize.cpp | 193 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 D | BasicTTIImpl.h | 319 if (IID == Intrinsic::ctlz) { in getIntrinsicCost() 1468 // FIXME: ctlz, cttz, ... in getIntrinsicInstrCost()
|
/third_party/mesa3d/src/amd/llvm/ |
H A D | ac_llvm_build.c | 1477 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 D | IRTranslator.cpp | 1503 case Intrinsic::ctlz: { in translateKnownIntrinsic()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 2167 case Intrinsic::ctlz: in getIntrinsicInstrCost()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 6328 case Intrinsic::ctlz: { in visitIntrinsicCall()
|