reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/X86/X86GenDAGISel.inc
254827   return getI64Imm((uint8_t)N->getAPIntValue().countTrailingZeros(), SDLoc(N));
include/llvm/ADT/APInt.h
  521     return (Ones + LeadZ + countTrailingZeros()) == BitWidth;
include/llvm/Support/KnownBits.h
  177     return One.countTrailingZeros();
  182     return Zero.countTrailingZeros();
lib/Analysis/ConstantFolding.cpp
 2213         return ConstantInt::get(Ty, C0->countTrailingZeros());
lib/Analysis/ScalarEvolution.cpp
 1187     unsigned TwoFactors = Mult.countTrailingZeros();
 5440     return C->getAPInt().countTrailingZeros();
 6261         unsigned TZ = A.countTrailingZeros();
 6276               unsigned MulZeros = OpC->getAPInt().countTrailingZeros();
 8403   uint32_t Mult2 = A.countTrailingZeros();
lib/Analysis/ValueTracking.cpp
 1497         unsigned PossibleTZ = Known2.One.countTrailingZeros();
 5463         ShiftAmount = C->countTrailingZeros();
 5484         ShiftAmount = C->countTrailingZeros();
lib/CodeGen/InterleavedLoadCombinePass.cpp
  321     decErrorMSBs(C.countTrailingZeros());
  478     if (A.countTrailingZeros() < shiftAmt)
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 7866       unsigned ShAmt = UnknownBits.countTrailingZeros();
10214       ShAmt = Mask.countTrailingZeros();
14472   APInt NarrowedUsedBits = UsedBits.lshr(UsedBits.countTrailingZeros());
14895     unsigned ShAmt = Imm.countTrailingZeros();
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  218       if (CN->getAPIntValue().countTrailingZeros() < EltSize)
  221       if (CFPN->getValueAPF().bitcastToAPInt().countTrailingZeros() < EltSize)
 4338       return getConstant(Val.countTrailingZeros(), DL, VT, C->isTargetOpcode(),
 9452     unsigned FirstDemandedIdx = DemandedElts.countTrailingZeros();
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 1351                 DemandedBits.countTrailingZeros() >= ShAmt) {
 3651             unsigned ShiftBits = AndRHSC.countTrailingZeros();
 3678           ShiftBits = C1.countTrailingZeros();
 4579     unsigned Shift = Divisor.countTrailingZeros();
 4774       PreShift = Divisor.countTrailingZeros();
 4968     unsigned K = D.countTrailingZeros();
 5151     unsigned K = D.countTrailingZeros();
lib/Support/APFloat.cpp
 3489   int trailingZeros = significand.countTrailingZeros();
lib/Support/APInt.cpp
  737     unsigned Pow2_A = A.countTrailingZeros();
  738     unsigned Pow2_B = B.countTrailingZeros();
  759       A.lshrInPlace(A.countTrailingZeros() - Pow2);
  762       B.lshrInPlace(B.countTrailingZeros() - Pow2);
lib/Target/AArch64/AArch64FastISel.cpp
 4932   unsigned Lg2 = C.countTrailingZeros();
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2294   unsigned NumberOfIgnoredLowBits = UsefulBits.countTrailingZeros();
lib/Target/AArch64/AArch64ISelLowering.cpp
 9348   unsigned Lg2 = Divisor.countTrailingZeros();
 9401   unsigned TrailingZeroes = ConstValue.countTrailingZeros();
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
 3133           Mask->getAPIntValue().countTrailingZeros() == ShiftAmt) {
lib/Target/AMDGPU/SIISelLowering.cpp
 8257         unsigned NB = CRHS->getAPIntValue().countTrailingZeros();
lib/Target/ARM/ARMISelDAGToDAG.cpp
 2839   unsigned LastOne = A.countTrailingZeros();
lib/Target/ARM/ARMISelLowering.cpp
11719     unsigned Zeros = Imm.countLeadingZeros() + Imm.countTrailingZeros();
12464   unsigned LastActiveBitInA =  A.countTrailingZeros();
12563         DCI.DAG.getConstant(NewFromMask.countTrailingZeros(), dl, VT));
lib/Target/Hexagon/HexagonConstPropagation.cpp
 1716     Count = A1.countTrailingZeros();
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
 1795         MaxFactor = CInt.countTrailingZeros();
lib/Target/PowerPC/PPCISelLowering.cpp
14109   unsigned Lg2 = (IsNegPow2 ? -Divisor : Divisor).countTrailingZeros();
lib/Target/X86/X86ISelLowering.cpp
 7851   int FirstLoadedElt = LoadMask.countTrailingZeros();
20327   unsigned Lg2 = Divisor.countTrailingZeros();
34758           OriginalDemandedBits.countTrailingZeros() >= ShAmt) {
34961     if (OriginalDemandedBits.countTrailingZeros() >= NumElts)
35051         return DAG.getBitcast(VT, ShuffleOps[IdentityOp.countTrailingZeros()]);
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  817     if (C1->countTrailingZeros() == 0)
lib/Transforms/InstCombine/InstCombineCasts.cpp
  950                Result, ConstantInt::get(ITy, UnknownBit.countTrailingZeros()));
 1270           unsigned ShiftAmt = KnownZeroMask.countTrailingZeros();
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1226   unsigned AP2TrailingZeros = AP2.countTrailingZeros();
 1237   int Shift = AP1.countTrailingZeros() - AP2TrailingZeros;
 1272   unsigned NewWidth = CI2->getValue().countTrailingZeros();
 2149   if (Shl->hasOneUse() && Amt != 0 && C.countTrailingZeros() >= Amt &&
 3965         if (unsigned TZs = C->countTrailingZeros()) {
 4779     return APInt::getBitsSetFrom(BitWidth, RHS->countTrailingZeros());
 5003           auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros());
 5009           auto *CmpC = ConstantInt::get(XTy, ValToCheck.countTrailingZeros());
 5022         unsigned CmpVal = CI->countTrailingZeros();
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  324       unsigned CTZ = DemandedMask.countTrailingZeros();
  333       unsigned CTZ = DemandedMask.countTrailingZeros();
  588       unsigned RHSTrailingZeros = SA->countTrailingZeros();
  663         unsigned NTZ = DemandedMask.countTrailingZeros();
 1058                                        DemandedElts.countTrailingZeros());
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2147           APInt V2 = APInt(V.getBitWidth(), 1) << V.countTrailingZeros();
 2157         APInt V2 = APInt(V.getBitWidth(), 1) << V.countTrailingZeros();
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 4256                   (C->getAPInt() + NewF.BaseOffset).countTrailingZeros() >=
tools/clang/lib/AST/ExprConstant.cpp
10606     return Success(Val.countTrailingZeros(), E);
10625     unsigned N = Val.countTrailingZeros();
unittests/ADT/APIntTest.cpp
   49   EXPECT_EQ(0u, Minus1.countTrailingZeros());
   60   EXPECT_EQ(1u, i33minus2.countTrailingZeros());
   71   EXPECT_EQ(15u, i61.countTrailingZeros());
   80   EXPECT_EQ(8u, i61.countTrailingZeros());
   92   EXPECT_EQ(65u, i65.countTrailingZeros());
  100   EXPECT_EQ(64u, i65minus.countTrailingZeros());
  109   EXPECT_EQ(0u, u128max.countTrailingZeros());
  117   EXPECT_EQ(0u, u64max.countTrailingZeros());
  126   EXPECT_EQ(128u, zero.countTrailingZeros());
  136   EXPECT_EQ(0u, one.countTrailingZeros());
  146   EXPECT_EQ(1u, s128.countTrailingZeros());
  157   EXPECT_EQ(1u, s128.countTrailingZeros());
  168   EXPECT_EQ(1u, s128.countTrailingZeros());
  178   EXPECT_EQ(1u, s128.countTrailingZeros());
  191   EXPECT_EQ(0u, s256.countTrailingZeros());
  202   EXPECT_EQ(0u, s256.countTrailingZeros());
  211   EXPECT_EQ(0u, s256.countTrailingZeros());
 2009   EXPECT_EQ(0u, i128lo64.countTrailingZeros());
 2019   EXPECT_EQ(1u, i64hi1lo1.countTrailingZeros());
 2027   EXPECT_EQ(1u, i127hi1lo1.countTrailingZeros());
 2037   EXPECT_EQ(32u, i64hi32.countTrailingZeros());
 2047   EXPECT_EQ(33u, i64hi31.countTrailingZeros());
 2058   EXPECT_EQ(0u, i64lo32.countTrailingZeros());
 2067   EXPECT_EQ(0u, i128lo64.countTrailingZeros());
 2076   EXPECT_EQ(0u, i128lo24.countTrailingZeros());
 2085   EXPECT_EQ(0u, i128lo104.countTrailingZeros());
 2094   EXPECT_EQ(128u, i128lo0.countTrailingZeros());
 2103   EXPECT_EQ(0u, i80lo79.countTrailingZeros());
 2114   EXPECT_EQ(32u, i64hi32.countTrailingZeros());
 2123   EXPECT_EQ(64u, i128hi64.countTrailingZeros());
 2132   EXPECT_EQ(104u, i128hi24.countTrailingZeros());
 2141   EXPECT_EQ(24u, i128hi104.countTrailingZeros());
 2150   EXPECT_EQ(128u, i128hi0.countTrailingZeros());
 2159   EXPECT_EQ(79u, i80hi1.countTrailingZeros());
 2168   EXPECT_EQ(16u, i32hi16.countTrailingZeros());
 2179   EXPECT_EQ(63u, i64from63.countTrailingZeros());
 2190   EXPECT_EQ(0u, i32.countTrailingZeros());
 2199   EXPECT_EQ(0u, i64.countTrailingZeros());
 2208   EXPECT_EQ(0u, i96.countTrailingZeros());
 2217   EXPECT_EQ(0u, i128.countTrailingZeros());
 2246   EXPECT_EQ(32u, i64hi32.countTrailingZeros());
 2255   EXPECT_EQ(64u, i128hi64.countTrailingZeros());
 2264   EXPECT_EQ(104u, i128hi24.countTrailingZeros());
 2273   EXPECT_EQ(24u, i128hi104.countTrailingZeros());
 2282   EXPECT_EQ(128u, i128hi0.countTrailingZeros());
 2291   EXPECT_EQ(79u, i80hi1.countTrailingZeros());
 2300   EXPECT_EQ(16u, i32hi16.countTrailingZeros());
 2353   EXPECT_EQ(253U, i256.countTrailingZeros());
 2358   EXPECT_EQ(191U, i256.countTrailingZeros());
 2363   EXPECT_EQ(126U, i256.countTrailingZeros());
 2368   EXPECT_EQ(62U, i256.countTrailingZeros());
 2373   EXPECT_EQ(0U, i256.countTrailingZeros());
 2385   EXPECT_EQ(25U, i72.countTrailingZeros());
 2391   EXPECT_EQ(7U, i72.countTrailingZeros());
 2397   EXPECT_EQ(63U, i128.countTrailingZeros());
 2422   EXPECT_EQ(1U, i256.countTrailingZeros());
 2427   EXPECT_EQ(63U, i256.countTrailingZeros());
 2432   EXPECT_EQ(128U, i256.countTrailingZeros());
 2437   EXPECT_EQ(192U, i256.countTrailingZeros());
 2442   EXPECT_EQ(255U, i256.countTrailingZeros());
 2485   EXPECT_EQ(0U, i32_max.countTrailingZeros());
 2490   EXPECT_EQ(31U, i32_min.countTrailingZeros());
 2495   EXPECT_EQ(0U, i32_neg1.countTrailingZeros());
 2515   EXPECT_EQ(64U, i96.countTrailingZeros());
 2715       if (!V.isNullValue() && V.countTrailingZeros() == 0) {