Home
last modified time | relevance | path

Searched refs:getSignedMaxValue (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp119 MaxVal = LHS.getSignedMaxValue().sadd_sat(RHS.getSignedMaxValue()); in computeForAddSub()
122 MinVal = LHS.getSignedMinValue().ssub_sat(RHS.getSignedMaxValue()); in computeForAddSub()
123 MaxVal = LHS.getSignedMaxValue().ssub_sat(RHS.getSignedMinValue()); in computeForAddSub()
250 if (LHS.getSignedMinValue().sge(RHS.getSignedMaxValue())) in abds()
253 if (RHS.getSignedMinValue().sge(LHS.getSignedMaxValue())) in abds()
528 if (LHS.getSignedMaxValue().sle(RHS.getSignedMinValue())) in sgt()
531 if (LHS.getSignedMinValue().sgt(RHS.getSignedMaxValue())) in sgt()
730 : APInt::getSignedMaxValue(BitWidth); in computeForSatAddSub()
972 APInt Denom = RHS.getSignedMaxValue(); in sdiv()
977 ? APInt::getSignedMaxValue(BitWidth) in sdiv()
[all …]
H A DDivisionByConstantInfo.cpp85 APInt SignedMax = APInt::getSignedMaxValue(D.getBitWidth()); in get()
H A DAPInt.cpp981 : APInt::getSignedMaxValue(width); in truncSSat()
2033 : APInt::getSignedMaxValue(BitWidth); in sadd_sat()
2052 : APInt::getSignedMaxValue(BitWidth); in ssub_sat()
2074 : APInt::getSignedMaxValue(BitWidth); in smul_sat()
2097 : APInt::getSignedMaxValue(BitWidth); in sshl_sat()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp28 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantRange.cpp308 APInt MaxValue = APInt::getSignedMaxValue(BitWidth); in makeExactMulNSWRegion()
394 APInt::getSignedMaxValue(BitWidth).ashr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion()
507 return APInt::getSignedMaxValue(getBitWidth()); in getSignedMax()
822 APInt SMax = APInt::getSignedMaxValue(BW); in castOp()
2166 APInt SignedMax = APInt::getSignedMaxValue(getBitWidth()); in signedAddMayOverflow()
2212 APInt SignedMax = APInt::getSignedMaxValue(getBitWidth()); in signedSubMayOverflow()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h315 ? APInt::getSignedMaxValue(BW) in getSentinelValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h306 : APInt::getSignedMaxValue(numBits), in getMaxValue()
H A DAPInt.h209 static APInt getSignedMaxValue(unsigned numBits) { in getSignedMaxValue() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp306 return SE.getConstant(APInt::getSignedMaxValue(BitWidth)); in parseIvAgaisntLimit()
718 const SCEV *SIntMax = SE.getConstant(APInt::getSignedMaxValue(BitWidth)); in computeSafeIterationSpace()
H A DLoopBoundSplit.cpp105 ? APInt::getSignedMaxValue(BitWidth) in calculateUpperBound()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp2853 APInt Mask = APInt::getSignedMaxValue(BitWidth); in isNonZeroAdd()
9037 case SPF_SMAX: return APInt::getSignedMaxValue(BitWidth); in getMinMaxLimit()
9614 Upper = *C - APInt::getSignedMaxValue(Width); in setLimitsForBinOp()
9618 Lower = *C - APInt::getSignedMaxValue(Width); in setLimitsForBinOp()
9643 Upper = APInt::getSignedMaxValue(Width) + *C + 1; in setLimitsForBinOp()
9647 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForBinOp()
9674 Upper = APInt::getSignedMaxValue(Width).ashr(*C) + 1; in setLimitsForBinOp()
9743 APInt IntMax = APInt::getSignedMaxValue(Width); in setLimitsForBinOp()
9842 APInt::getSignedMaxValue(Width) + *C + in getRangeForIntrinsic()
9847 APInt::getSignedMaxValue(Width) + 1); in getRangeForIntrinsic()
[all …]
H A DIVDescriptors.cpp750 APInt::getSignedMaxValue(NumBits) - 1); in isFindIVPattern()
H A DDependenceAnalysis.cpp1635 APInt TU(APInt::getSignedMaxValue(Bits)); in exactSIVtest()
2027 APInt TU(APInt::getSignedMaxValue(Bits)); in exactRDIVtest()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h144 APInt getSignedMaxValue() const { in getSignedMaxValue() function
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonAsmBackend.cpp391 const APInt IntMax = APInt::getSignedMaxValue(bits+align_bits); in HandleFixupError()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp437 APInt SignedMax = APInt::getSignedMaxValue(BitWidth); in ProcessSwitchInst()
H A DLoopConstrainer.cpp102 APInt Max = IsSigned ? APInt::getSignedMaxValue(BitWidth) in isSafeIncreasingBound()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp1759 APInt::getSignedMaxValue(IntVT.getScalarSizeInBits()), DL, IntVT); in ExpandVP_FABS()
1789 APInt::getSignedMaxValue(IntVT.getScalarSizeInBits()), DL, IntVT); in ExpandVP_FCOPYSIGN()
1966 APInt::getSignedMaxValue(IntVT.getScalarSizeInBits()), DL, IntVT); in ExpandFABS()
1994 APInt::getSignedMaxValue(IntVT.getScalarSizeInBits()), DL, IntVT); in ExpandFCOPYSIGN()
H A DTargetLowering.cpp5141 MaxVal = APInt::getSignedMaxValue(OperandBitSize); in SimplifySetCC()
7251 APInt A = APInt::getSignedMaxValue(W).udiv(D0); in prepareSREMEqFold()
7404 APInt::getSignedMaxValue(SVT.getScalarSizeInBits()), DL, VT); in prepareSREMEqFold()
9048 APInt ValueMask = APInt::getSignedMaxValue(BitSize); // All bits but sign. in expandIS_FPCLASS()
10895 APInt MaxVal = APInt::getSignedMaxValue(BitWidth); in expandAddSubSat()
10996 SDValue SatMax = DAG.getConstant(APInt::getSignedMaxValue(BW), dl, VT); in expandShlSat()
11163 APInt MaxVal = APInt::getSignedMaxValue(VTSize); in expandFixedPointMul()
11256 SDValue SatMax = DAG.getConstant(APInt::getSignedMaxValue(VTSize), dl, VT); in expandFixedPointMul()
11656 MaxInt = APInt::getSignedMaxValue(SatWidth).sext(DstWidth); in expandFP_TO_INT_SAT()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp624 return ConstantInt::get(C, APInt::getSignedMaxValue(BitWidth)); in getIdentityValueForAtomicOp()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicInst.h825 return APInt::getSignedMaxValue(numBits); in getSaturationPoint()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp176 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp963 APInt SMax = APInt::getSignedMaxValue(C.getBitWidth()); in foldICmpAddOpConst()
3221 const APInt SMax = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldICmpAddConstant()
4973 ConstantInt::get(Ty, APInt::getSignedMaxValue(BitWidth)); in foldICmpXNegX()
6885 Op0Max = Op0Known.getSignedMaxValue(); in foldICmpUsingKnownBits()
6887 Op1Max = Op1Known.getSignedMaxValue(); in foldICmpUsingKnownBits()
8050 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst()
H A DInstCombineSelect.cpp1586 APInt::getSignedMaxValue( in canonicalizeClampLike()
1847 C = CmpInst::isSigned(Pred) ? APInt::getSignedMaxValue(BitWidth) in foldSelectWithExtremeEqCond()
2179 APInt MaxVal = APInt::getSignedMaxValue(Ty->getScalarSizeInBits()); in foldOverflowingAddSubSelect()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp3060 WideTy, APInt::getSignedMaxValue(ShortBits).sext(WideBits)); in widenScalar()
6119 Ty, APInt::getSignedMaxValue(Ty.getSizeInBits())); in getNeutralElementForVecReduce()
7906 MaxInt = APInt::getSignedMaxValue(SatWidth); in lowerFPTOINT_SAT()
8941 MIRBuilder.buildConstant(Ty, APInt::getSignedMaxValue(NumBits)); in lowerAddSubSatToMinMax()
9055 auto SatMax = MIRBuilder.buildConstant(Ty, APInt::getSignedMaxValue(BW)); in lowerShlSat()
9269 APInt ValueMask = APInt::getSignedMaxValue(BitSize); // All bits but sign. in lowerISFPCLASS()
9543 Ty, APInt::getSignedMaxValue(Ty.getScalarSizeInBits()))); in lowerFAbs()

12