Searched refs:countLeadingOnes (Results 1 – 10 of 10) sorted by relevance
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 29 EXPECT_EQ(126u, Minus3.countLeadingOnes()); in TEST() 34 EXPECT_EQ(128u, Minus1.countLeadingOnes()); in TEST() 48 EXPECT_EQ(32u, i33minus2.countLeadingOnes()); in TEST() 61 EXPECT_EQ(0u, i65.countLeadingOnes()); in TEST() 70 EXPECT_EQ(1u, i65minus.countLeadingOnes()); in TEST() 78 EXPECT_EQ(128u, u128max.countLeadingOnes()); in TEST() 87 EXPECT_EQ(0u, u64max.countLeadingOnes()); in TEST() 96 EXPECT_EQ(0u, zero.countLeadingOnes()); in TEST() 106 EXPECT_EQ(0u, one.countLeadingOnes()); in TEST()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1293 return BitWidth - countLeadingOnes() + 1; in getMinSignedBits() 1352 unsigned countLeadingOnes() const; 1357 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 171 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBitsMul() 172 KnownZero2.countLeadingOnes(), in computeKnownBitsMul() 387 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits() 589 unsigned Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits() 590 KnownZero2.countLeadingOnes()); in computeKnownBits()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 770 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits() 772 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
|
D | InstCombineCompares.cpp | 1066 if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) { in visitICmpInstWithInstAndIntCst()
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 710 unsigned APInt::countLeadingOnes() const { in countLeadingOnes() function in APInt 2057 Overflow = ShAmt >= countLeadingOnes(); in sshl_ov()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 1980 unsigned LeadZ = std::max(KnownZero.countLeadingOnes() + in computeKnownBits() 1981 KnownZero2.countLeadingOnes(), in computeKnownBits() 1995 unsigned LeadZ = KnownZero2.countLeadingOnes(); in computeKnownBits() 2324 uint32_t Leaders = std::max(KnownZero.countLeadingOnes(), in computeKnownBits() 2325 KnownZero2.countLeadingOnes()); in computeKnownBits()
|
D | SelectionDAGBuilder.cpp | 711 unsigned NumZeroBits = LOI->KnownZero.countLeadingOnes(); in getCopyFromRegs()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUISelLowering.cpp | 1863 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 11970 if (Zeros.countLeadingOnes() < BitWidth - AndBitWidth) in LowerToBT()
|