Home
last modified time | relevance | path

Searched refs:RHSMax (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp1699 unsigned RHSMax = RHS.getUnsignedMax().getLimitedValue(BitWidth); in computeShlNUW() local
1703 MaxShl = LHSMax << std::min(RHSMax, MaxShAmt); in computeShlNUW()
1705 RHSMax = std::min(RHSMax, LHSMin.countLeadingZeros()); in computeShlNUW()
1706 if (RHSMin <= RHSMax) in computeShlNUW()
1715 unsigned RHSMax) { in computeShlNSWWithNNegLHS() argument
1724 MaxShl = LHSMax << std::min(RHSMax, MaxShAmt); in computeShlNSWWithNNegLHS()
1726 RHSMax = std::min(RHSMax, LHSMin.countLeadingZeros() - 1); in computeShlNSWWithNNegLHS()
1727 if (RHSMin <= RHSMax) in computeShlNSWWithNNegLHS()
1735 unsigned RHSMin, unsigned RHSMax) { in computeShlNSWWithNegLHS() argument
1744 MinShl = LHSMin.shl(std::min(RHSMax, MaxShAmt)); in computeShlNSWWithNegLHS()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp4722 llvm::APInt RHSMax = in GetMaximumShiftAmount() local
4725 if (RHSMax.ult(Ty->getBitWidth())) in GetMaximumShiftAmount()
4726 return llvm::ConstantInt::get(RHSTy, RHSMax); in GetMaximumShiftAmount()