Searched refs:countLeadingZeros (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.h67 MB = countLeadingZeros(Val);
69 ME = countLeadingZeros((Val - 1) ^ Val);
75 ME = countLeadingZeros(Val) - 1;
77 MB = countLeadingZeros((Val - 1) ^ Val) + 1;
91 MB = countLeadingZeros(Val);
93 ME = countLeadingZeros((Val - 1) ^ Val);
99 ME = countLeadingZeros(Val) - 1;
101 MB = countLeadingZeros((Val - 1) ^ Val) + 1;
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h202 return One.countLeadingZeros();
207 return Zero.countLeadingZeros();
H A DMathExtras.h225 unsigned countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) { function in namespace:llvm
286 return countLeadingZeros(Val, ZB_Undefined) ^
502 return countLeadingZeros<T>(~Value, ZB);
586 return 31 - countLeadingZeros(Value);
592 return 63 - countLeadingZeros(Value);
599 return 32 - countLeadingZeros(Value - 1);
605 return 64 - countLeadingZeros(Value - 1);
686 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
H A DScaledNumber.h88 int Shift = 64 - Width - countLeadingZeros(Digits);
195 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1;
307 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff);
428 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); }
429 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); }
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/MCA/
H A DSupport.h101 return (std::numeric_limits<uint64_t>::digits - countLeadingZeros(Mask)) - 1;
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
H A DScaledNumber.cpp47 unsigned LeadingZeros = countLeadingZeros(Upper);
65 if (int Zeros = countLeadingZeros(Dividend64)) {
97 if (int Zeros = countLeadingZeros(Dividend)) {
H A DNativeFormatting.cpp139 unsigned Nibbles = (64 - countLeadingZeros(N) + 3) / 4;
H A DAPInt.cpp594 Count += llvm::countLeadingZeros(V);
1351 unsigned shift = countLeadingZeros(v[n-1]);
1999 if (countLeadingZeros() + RHS.countLeadingZeros() + 2 <= BitWidth) {
2021 Overflow = ShAmt.uge(countLeadingZeros());
2033 Overflow = ShAmt.ugt(countLeadingZeros());
3060 return A.getBitWidth() - ((A ^ B).countLeadingZeros() + 1);
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DBoolean.h78 unsigned countLeadingZeros() const { return V ? 0 : 1; } function in class:clang::interp::Boolean
H A DIntegral.h138 unsigned countLeadingZeros() const { return llvm::countLeadingZeros<T>(V); } function in class:clang::interp::Integral
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp72 return (unsigned)RHS->getZExtValue() > LHS->countLeadingZeros();
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.cpp110 auto RangeMSB = 32 - countLeadingZeros(Regs);
H A DARMAddressingModes.h291 unsigned RotAmt = countLeadingZeros(V);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelDAGToDAG.cpp59 int msksize = 32 - countLeadingZeros(value);
141 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val), dl);
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallBitVector.h242 return NumBaseBits - countLeadingZeros(Bits) - 1;
316 return NumBaseBits - countLeadingZeros(Bits) - 1;
H A DAPInt.h219 /// out-of-line slow case for countLeadingZeros
1590 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); }
1645 /// The APInt version of the countLeadingZeros functions in
1653 unsigned countLeadingZeros() const {
1656 return llvm::countLeadingZeros(U.VAL) - unusedBits;
1678 return isNegative() ? countLeadingOnes() : countLeadingZeros();
H A DSparseBitVector.h140 countLeadingZeros(Bits[Idx]) - 1;
H A DBitVector.h259 return (CurrentWord + 1) * BITWORD_SIZE - countLeadingZeros(Copy) - 1;
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBasicValueFactory.cpp246 if (V1.isSigned() && Amt > V1.countLeadingZeros())
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp273 unsigned LZ = countLeadingZeros(Imm);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h300 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f));
329 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumb2InstrInfo.cpp340 unsigned RotAmt = countLeadingZeros(ThisVal);
545 unsigned RotAmt = countLeadingZeros<unsigned>(Offset);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp459 unsigned NLZ = DemandedMask.countLeadingZeros();
574 if (DemandedMask.countLeadingZeros() <= ShiftAmt)
692 unsigned NLZ = DemandedMask.countLeadingZeros();
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.h462 return countLeadingZeros(MaxWaveScratchSize) + getWavefrontSizeLog2();
/freebsd-12-stable/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp1378 multi_char_too_long |= (LitVal.countLeadingZeros() < 8);

Completed in 281 milliseconds

123