Home
last modified time | relevance | path

Searched refs:ashr (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp393 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 DConstantFold.cpp841 return ConstantInt::get(C1->getType(), C1V.ashr(C2V)); in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h528 LLVM_ABI ConstantRange ashr(const ConstantRange &Other) const;
H A DVPIntrinsics.def148 // llvm.vp.ashr(x,y,mask,vlen)
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h827 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 DAPSInt.h153 return IsUnsigned ? APSInt(lshr(Amt), true) : APSInt(ashr(Amt), false);
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DIntegralAP.h311 R->copy(A.getValue().ashr(ShiftAmount)); in shiftRight()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h438 LLVM_ABI static KnownBits ashr(const KnownBits &LHS, const KnownBits &RHS,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp548 APInt Chunk = Val.ashr(ShiftVal).sextOrTrunc(PlatRegSize); in getIntMatCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp854 Known = KnownBits::ashr( in SimplifyDemandedUseBits()
1346 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits()
1352 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()
H A DInstCombineCompares.cpp1030 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 DHashRecognize.cpp145 return KnownBits::ashr(KnownL, KnownR); in computeBinOp()
H A DValueTracking.cpp1434 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 DLazyValueInfo.cpp1272 if ((New.ashr(*ShAmtC)) != RHS) in getValueFromICmpCondition()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsAMDGPU.def478 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 DScalar.cpp457 m_integer = m_integer.ashr(rhs.m_integer); in operator >>=()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.cpp440 KBM[Expr] = KnownBits::ashr(LHSKnown, RHSKnown); in binaryOpKnownBitsMapHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.td491 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 DGISelValueTracking.cpp471 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 DAArch64PostLegalizerCombiner.cpp183 APInt ShiftedConstValue = ConstValue.ashr(TrailingZeroes); in matchAArch64MulConstCombine()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp914 INSTKEYWORD(shl, Shl); INSTKEYWORD(lshr, LShr); INSTKEYWORD(ashr, AShr); in LexIdentifier()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp428 KnownBits KnownBits::ashr(const KnownBits &LHS, const KnownBits &RHS, in ashr() function in KnownBits
H A DAPInt.cpp3105 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 DExecution.cpp1218 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 DHexagonVectorCombine.cpp1634 if (NumToTest != 0 && Known.Zero.ashr(NumToTest).isAllOnes()) { in getNumSignificantBits()
1642 if (Known.Zero.ashr(Pow2 - 1).isAllOnes()) in getNumSignificantBits()

12