|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/APInt.h 1545 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); }
1633 return isNegative() ? countLeadingOnes() : countLeadingZeros();
include/llvm/Support/KnownBits.h 187 return One.countLeadingZeros();
192 return Zero.countLeadingZeros();
lib/Analysis/ConstantFolding.cpp 2215 return ConstantInt::get(Ty, C0->countLeadingZeros());
lib/Analysis/IVDescriptors.cpp 127 MaxBitWidth = Mask.getBitWidth() - Mask.countLeadingZeros();
lib/Analysis/ScalarEvolution.cpp 3204 unsigned LZ = RHSC->getAPInt().countLeadingZeros();
6260 unsigned LZ = A.countLeadingZeros();
6309 (CIVal.getBitWidth() - CIVal.countLeadingZeros())) {
lib/Analysis/ValueTracking.cpp 456 (Range.getUnsignedMax() ^ Range.getUnsignedMin()).countLeadingZeros();
1486 unsigned PossibleLZ = Known2.One.countLeadingZeros();
5495 Upper = Lower.shl(Lower.countLeadingZeros()) + 1;
5504 unsigned ShiftAmount = C->countLeadingZeros() - 1;
5521 } else if (C->countLeadingZeros() < Width - 1) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp14474 if (NarrowedUsedBits.countLeadingZeros())
14896 unsigned MSB = BitWidth - Imm.countLeadingZeros() - 1;
20078 DAG.getConstant(AndMask.countLeadingZeros(), SDLoc(AndLHS),
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 3965 return std::max(FirstAnswer, std::min(VTBits, Mask.countLeadingZeros()));
4334 return getConstant(Val.countLeadingZeros(), DL, VT, C->isTargetOpcode(),
lib/CodeGen/SelectionDAG/TargetLowering.cpp 1458 if (DemandedBits.countLeadingZeros() < ShAmt)
1471 DemandedBits.countLeadingZeros() >= ShAmt) {
1925 unsigned DemandedBitsLZ = DemandedBits.countLeadingZeros();
lib/IR/ConstantRange.cpp 1219 if (Other_umax.ugt(max.countLeadingZeros()))
lib/Support/APInt.cpp 1974 if (countLeadingZeros() + RHS.countLeadingZeros() + 2 <= BitWidth) {
1974 if (countLeadingZeros() + RHS.countLeadingZeros() + 2 <= BitWidth) {
1996 Overflow = ShAmt.uge(countLeadingZeros());
2008 Overflow = ShAmt.ugt(countLeadingZeros());
3035 return A.getBitWidth() - ((A ^ B).countLeadingZeros() + 1);
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 2295 unsigned NumberOfIgnoredHighBits = UsefulBits.countLeadingZeros();
lib/Target/ARM/ARMISelDAGToDAG.cpp 2838 unsigned FirstOne = A.getBitWidth() - A.countLeadingZeros() - 1;
lib/Target/ARM/ARMISelLowering.cpp11719 unsigned Zeros = Imm.countLeadingZeros() + Imm.countTrailingZeros();
12465 unsigned FirstActiveBitInB = B.getBitWidth() - B.countLeadingZeros() - 1;
lib/Target/Hexagon/HexagonConstPropagation.cpp 1681 Count = A1.countLeadingZeros();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 1266 return C->getValue().countLeadingZeros() >= IterCount;
lib/Target/X86/X86ISelDAGToDAG.cpp 3905 unsigned MaskLZ = MaskVal.countLeadingZeros();
lib/Target/X86/X86ISelLowering.cpp34834 if (OriginalDemandedBits.countLeadingZeros() < ShAmt)
34848 OriginalDemandedBits.countLeadingZeros() >= ShAmt)
35574 if (EltBits[0].countLeadingZeros() >= 32)
lib/Transforms/InstCombine/InstCombineCasts.cpp 1284 unsigned ShiftAmt = KnownZeroMask.countLeadingZeros();
lib/Transforms/InstCombine/InstCombineCompares.cpp 1189 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros();
1189 Shift = AP1.countLeadingZeros() - AP2.countLeadingZeros();
4579 if (CVal.getBitWidth() - CVal.countLeadingZeros() > MulWidth)
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 429 unsigned NLZ = DemandedMask.countLeadingZeros();
544 if (DemandedMask.countLeadingZeros() <= ShiftAmt)
662 unsigned NLZ = DemandedMask.countLeadingZeros();
lib/Transforms/InstCombine/InstructionCombining.cpp 2616 LeadingKnownZeros, C.getCaseValue()->getValue().countLeadingZeros());
lib/Transforms/Vectorize/SLPVectorizer.cpp 5109 Mask.getBitWidth() - Mask.countLeadingZeros(), MaxBitWidth);
tools/clang/lib/AST/ExprConstant.cpp 2544 else if (LHS.countLeadingZeros() < SA)
10576 return Success(Val.countLeadingZeros(), E);
tools/clang/lib/CodeGen/CGExprCXX.cpp 746 numElementsWidth - sizeWidth > count.countLeadingZeros())
tools/clang/lib/Lex/LiteralSupport.cpp 1374 multi_char_too_long |= (LitVal.countLeadingZeros() < 8);
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp 72 return (unsigned)RHS->getZExtValue() > LHS->countLeadingZeros();
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp 246 if (V1.isSigned() && Amt > V1.countLeadingZeros())
unittests/ADT/APIntTest.cpp 46 EXPECT_EQ(0u, Minus1.countLeadingZeros());
57 EXPECT_EQ(0u, i33minus2.countLeadingZeros());
68 EXPECT_EQ(45u, i61.countLeadingZeros());
77 EXPECT_EQ(42u, i61.countLeadingZeros());
88 EXPECT_EQ(65u, i65.countLeadingZeros());
97 EXPECT_EQ(0u, i65minus.countLeadingZeros());
107 EXPECT_EQ(0u, u128max.countLeadingZeros());
114 EXPECT_EQ(64u, u64max.countLeadingZeros());
123 EXPECT_EQ(128u, zero.countLeadingZeros());
133 EXPECT_EQ(127u, one.countLeadingZeros());
143 EXPECT_EQ(126u, s128.countLeadingZeros());
154 EXPECT_EQ(126u, s128.countLeadingZeros());
164 EXPECT_EQ(96u, s128.countLeadingZeros());
174 EXPECT_EQ(0u, s128.countLeadingZeros());
188 EXPECT_EQ(252u, s256.countLeadingZeros());
198 EXPECT_EQ(190u, s256.countLeadingZeros());
207 EXPECT_EQ(0u, s256.countLeadingZeros());
2007 EXPECT_EQ(64u, i128lo64.countLeadingZeros());
2017 EXPECT_EQ(1u, i64hi1lo1.countLeadingZeros());
2025 EXPECT_EQ(1u, i127hi1lo1.countLeadingZeros());
2035 EXPECT_EQ(0u, i64hi32.countLeadingZeros());
2045 EXPECT_EQ(0u, i64hi31.countLeadingZeros());
2056 EXPECT_EQ(32u, i64lo32.countLeadingZeros());
2065 EXPECT_EQ(64u, i128lo64.countLeadingZeros());
2074 EXPECT_EQ(104u, i128lo24.countLeadingZeros());
2083 EXPECT_EQ(24u, i128lo104.countLeadingZeros());
2092 EXPECT_EQ(128u, i128lo0.countLeadingZeros());
2101 EXPECT_EQ(1u, i80lo79.countLeadingZeros());
2112 EXPECT_EQ(0u, i64hi32.countLeadingZeros());
2121 EXPECT_EQ(0u, i128hi64.countLeadingZeros());
2130 EXPECT_EQ(0u, i128hi24.countLeadingZeros());
2139 EXPECT_EQ(0u, i128hi104.countLeadingZeros());
2148 EXPECT_EQ(128u, i128hi0.countLeadingZeros());
2157 EXPECT_EQ(0u, i80hi1.countLeadingZeros());
2166 EXPECT_EQ(0u, i32hi16.countLeadingZeros());
2177 EXPECT_EQ(0u, i64from63.countLeadingZeros());
2188 EXPECT_EQ(0u, i32.countLeadingZeros());
2197 EXPECT_EQ(0u, i64.countLeadingZeros());
2206 EXPECT_EQ(0u, i96.countLeadingZeros());
2215 EXPECT_EQ(0u, i128.countLeadingZeros());
2244 EXPECT_EQ(0u, i64hi32.countLeadingZeros());
2253 EXPECT_EQ(0u, i128hi64.countLeadingZeros());
2262 EXPECT_EQ(0u, i128hi24.countLeadingZeros());
2271 EXPECT_EQ(0u, i128hi104.countLeadingZeros());
2280 EXPECT_EQ(128u, i128hi0.countLeadingZeros());
2289 EXPECT_EQ(0u, i80hi1.countLeadingZeros());
2298 EXPECT_EQ(0u, i32hi16.countLeadingZeros());
2352 EXPECT_EQ(1U, i256.countLeadingZeros());
2357 EXPECT_EQ(63U, i256.countLeadingZeros());
2362 EXPECT_EQ(128U, i256.countLeadingZeros());
2367 EXPECT_EQ(192U, i256.countLeadingZeros());
2372 EXPECT_EQ(255U, i256.countLeadingZeros());
2421 EXPECT_EQ(253U, i256.countLeadingZeros());
2426 EXPECT_EQ(191U, i256.countLeadingZeros());
2431 EXPECT_EQ(126U, i256.countLeadingZeros());
2436 EXPECT_EQ(62U, i256.countLeadingZeros());
2441 EXPECT_EQ(0U, i256.countLeadingZeros());
2484 EXPECT_EQ(32U, i32_max.countLeadingZeros());
utils/TableGen/CodeGenSchedule.cpp 379 (Lhs.countLeadingZeros() > Rhs.countLeadingZeros())));
379 (Lhs.countLeadingZeros() > Rhs.countLeadingZeros())));