| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 393 return getNonEmpty(APInt::getSignedMinValue(BitWidth).ashr(ShAmtUMax), in makeGuaranteedNoWrapRegion() 394 APInt::getSignedMaxValue(BitWidth).ashr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion() 969 return ashr(Other); in binaryOp() 1803 ConstantRange::ashr(const ConstantRange &Other) const { in ashr() function in ConstantRange 1813 APInt PosMax = getSignedMax().ashr(Other.getUnsignedMin()) + 1; in ashr() 1820 APInt PosMin = getSignedMin().ashr(Other.getUnsignedMax()); in ashr() 1827 APInt NegMax = getSignedMax().ashr(Other.getUnsignedMax()) + 1; in ashr() 1834 APInt NegMin = getSignedMin().ashr(Other.getUnsignedMin()); in ashr()
|
| H A D | ConstantFold.cpp | 841 return ConstantInt::get(C1->getType(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 528 LLVM_ABI ConstantRange ashr(const ConstantRange &Other) const;
|
| H A D | VPIntrinsics.def | 148 // llvm.vp.ashr(x,y,mask,vlen)
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 827 APInt ashr(unsigned ShiftAmt) const { in ashr() function 891 return RelativeShift > 0 ? ashr(RelativeShift) : shl(-RelativeShift); in relativeAShr() 908 APInt ashr(const APInt &ShiftAmt) const { in ashr() function
|
| H A D | APSInt.h | 153 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | IntegralAP.h | 311 R->copy(A.getValue().ashr(ShiftAmount)); in shiftRight()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 438 LLVM_ABI static KnownBits ashr(const KnownBits &LHS, const KnownBits &RHS,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVMatInt.cpp | 548 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 854 Known = KnownBits::ashr( in SimplifyDemandedUseBits() 1346 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits() 1352 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()
|
| H A D | InstCombineCompares.cpp | 1030 if (IsAShr && AP1 == AP2.ashr(Shift)) { in foldICmpShrConstConst() 1739 AnyCmpCstBitsShiftedOut = NewCmpCst.ashr(*C3) != C1; in foldICmpAndShift() 1740 if (NewAndCst.ashr(*C3) != C2) in foldICmpAndShift() 2377 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant() 2381 C.ashr(*ShiftAmt).shl(*ShiftAmt) == C) { in foldICmpShlConstant() 2382 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant() 2391 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1; in foldICmpShlConstant() 2493 ConstantInt::get(TruncTy, RHSC.ashr(*ShiftAmt).trunc(TypeBits - Amt)); in foldICmpShlConstant() 2580 if (ShiftedC.ashr(ShAmtVal) == C) in foldICmpShrConstant() 2587 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1)) in foldICmpShrConstant() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | HashRecognize.cpp | 145 return KnownBits::ashr(KnownL, KnownR); in computeBinOp()
|
| H A D | ValueTracking.cpp | 1434 return KnownBits::ashr(KnownVal, KnownAmt, ShAmtNonZero, Exact); in computeKnownBitsFromOperator() 2929 return Lhs.ashr(Rhs); in isNonZeroShift() 9673 Lower = APInt::getSignedMinValue(Width).ashr(*C); in setLimitsForBinOp() 9674 Upper = APInt::getSignedMaxValue(Width).ashr(*C) + 1; in setLimitsForBinOp() 9682 Upper = C->ashr(ShiftAmount) + 1; in setLimitsForBinOp() 9685 Lower = C->ashr(ShiftAmount); in setLimitsForBinOp()
|
| H A D | LazyValueInfo.cpp | 1272 if ((New.ashr(*ShAmtC)) != RHS) in getValueFromICmpCondition()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | BuiltinsAMDGPU.def | 478 TARGET_BUILTIN(__builtin_amdgcn_ashr_pk_i8_i32, "UsUiUiUi", "nc", "ashr-pk-insts") 479 TARGET_BUILTIN(__builtin_amdgcn_ashr_pk_u8_i32, "UsUiUiUi", "nc", "ashr-pk-insts")
|
| /freebsd/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Scalar.cpp | 457 m_integer = m_integer.ashr(rhs.m_integer); in operator >>=()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUMCExpr.cpp | 440 KBM[Expr] = KnownBits::ashr(LHSKnown, RHSKnown); in binaryOpKnownBitsMapHelper()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreInstrInfo.td | 491 defm ASHR : FL3R_L2RBITP<0b000101100, 0b100101100, "ashr", sra>; 1323 // ashr X, 32 is equivalent to ashr X, 31 on the XCore.
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelValueTracking.cpp | 471 Known = KnownBits::ashr(LHSKnown, RHSKnown); in computeKnownBitsImpl() 616 Known = KnownBits::ashr(KnownBits::shl(Known, ShiftKnown), ShiftKnown); in computeKnownBitsImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerCombiner.cpp | 183 APInt ShiftedConstValue = ConstValue.ashr(TrailingZeroes); in matchAArch64MulConstCombine()
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 914 INSTKEYWORD(shl, Shl); INSTKEYWORD(lshr, LShr); INSTKEYWORD(ashr, AShr); in LexIdentifier()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 428 KnownBits KnownBits::ashr(const KnownBits &LHS, const KnownBits &RHS, in ashr() function in KnownBits
|
| H A D | APInt.cpp | 3105 return (C1 & C2) + (C1 ^ C2).ashr(1); in avgFloorS() 3115 return (C1 | C2) - (C1 ^ C2).ashr(1); in avgCeilS()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 1218 Result.IntVal = valueToShift.ashr(getShiftAmount(shiftAmount, valueToShift)); in visitAShr() 1225 Dest.IntVal = valueToShift.ashr(getShiftAmount(shiftAmount, valueToShift)); in visitAShr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 1634 if (NumToTest != 0 && Known.Zero.ashr(NumToTest).isAllOnes()) { in getNumSignificantBits() 1642 if (Known.Zero.ashr(Pow2 - 1).isAllOnes()) in getNumSignificantBits()
|