Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DInferIntRangeInterfaceTest.cpp30 APInt maxInt = APInt::getSignedMaxValue(64); in TEST()
54 APInt intMax = APInt::getSignedMaxValue(64); in TEST()
81 APInt intMax = APInt::getSignedMaxValue(64); in TEST()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DIntegerRangeAnalysis.cpp31 APInt smax = width != 0 ? APInt::getSignedMaxValue(width) : umax; in getPessimisticValueState()
180 return getUpper ? APInt::getSignedMaxValue(width) in visitNonControlFlowArguments()
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
/llvm-project-15.0.7/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp73 APInt SignedMax = APInt::getSignedMaxValue(D.getBitWidth()); in get()
H A DKnownBits.cpp373 if (LHS.getSignedMaxValue().sle(RHS.getSignedMinValue())) in sgt()
376 if (LHS.getSignedMinValue().sgt(RHS.getSignedMaxValue())) in sgt()
H A DAPInt.cpp942 : APInt::getSignedMaxValue(width); in truncSSat()
2016 : APInt::getSignedMaxValue(BitWidth); in sadd_sat()
2035 : APInt::getSignedMaxValue(BitWidth); in ssub_sat()
2057 : APInt::getSignedMaxValue(BitWidth); in smul_sat()
2076 : APInt::getSignedMaxValue(BitWidth); in sshl_sat()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DInferIntRangeInterface.cpp76 smax = APInt::getSignedMaxValue(width); in fromUnsigned()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalg.cpp155 int64_t maxValue = APInt::getSignedMaxValue(inputBitWidth).getSExtValue() + in createLinalgBodyCalculationForElementwiseOp()
161 if (maxValue <= APInt::getSignedMaxValue(16).getSExtValue()) { in createLinalgBodyCalculationForElementwiseOp()
163 } else if (maxValue <= APInt::getSignedMaxValue(32).getSExtValue()) { in createLinalgBodyCalculationForElementwiseOp()
165 } else if (maxValue <= APInt::getSignedMaxValue(48).getSExtValue()) { in createLinalgBodyCalculationForElementwiseOp()
183 loc, APInt::getSignedMaxValue(inputBitWidth).getSExtValue(), in createLinalgBodyCalculationForElementwiseOp()
404 max, APInt::getSignedMaxValue(intTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
514 APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
552 APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
701 elementTy, APInt::getSignedMaxValue(elementTy.getIntOrFloatBitWidth())); in createInitialValueForReduceOp()
1304 int32_t intMax = APInt::getSignedMaxValue(outBitWidth).getSExtValue(); in matchAndRewrite()
H A DTosaToLinalgNamed.cpp211 APInt::getSignedMaxValue(inputETy.getIntOrFloatBitWidth()) in matchAndRewrite()
387 APInt::getSignedMaxValue(inputETy.getIntOrFloatBitWidth()) in matchAndRewrite()
944 loc, APInt::getSignedMaxValue(outBitwidth).getSExtValue(), in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantRange.cpp268 APInt MaxValue = APInt::getSignedMaxValue(BitWidth); in makeExactMulNSWRegion()
353 APInt::getSignedMaxValue(BitWidth).ashr(ShAmtUMax) + 1); in makeGuaranteedNoWrapRegion()
439 return APInt::getSignedMaxValue(getBitWidth()); in getSignedMax()
754 APInt SMax = APInt::getSignedMaxValue(BW); in castOp()
1698 APInt SignedMax = APInt::getSignedMaxValue(getBitWidth()); in signedAddMayOverflow()
1744 APInt SignedMax = APInt::getSignedMaxValue(getBitWidth()); in signedSubMayOverflow()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DKnownBitsTest.cpp414 APInt Min = APInt::getSignedMaxValue(Bits); in TEST()
421 EXPECT_EQ(Max, Known.getSignedMaxValue()); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DKnownBits.h142 APInt getSignedMaxValue() const { in getSignedMaxValue() function
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp2632 APInt Mask = APInt::getSignedMaxValue(BitWidth); in isKnownNonZero()
6911 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForBinOp()
6989 APInt IntMax = APInt::getSignedMaxValue(Width); in setLimitsForBinOp()
7075 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForIntrinsic()
7095 Lower = *C - APInt::getSignedMaxValue(Width); in setLimitsForIntrinsic()
7096 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForIntrinsic()
7102 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForIntrinsic()
7131 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForIntrinsic()
7141 Upper = APInt::getSignedMaxValue(Width) + 1; in setLimitsForIntrinsic()
7166 Upper = APInt::getSignedMaxValue(BitWidth) + 1; in setLimitsForSelectPattern()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DInferIntRangeInterfaceImpls.cpp45 isSigned ? APInt::getSignedMaxValue(width) : APInt::getMaxValue(width); in minMaxBy()
324 APInt smax = APInt::getSignedMaxValue(width); in inferResultRanges()
H A DArithmeticOps.cpp1562 signedMax.convertFromAPInt(APInt::getSignedMaxValue(intWidth), true, in matchAndRewrite()
1982 APInt::getSignedMaxValue(resultType.cast<IntegerType>().getWidth())); in getIdentityValueAttr()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPSInt.h285 : APInt::getSignedMaxValue(numBits), Unsigned); in getMaxValue()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopBoundSplit.cpp105 ? APInt::getSignedMaxValue(BitWidth) in calculateUpperBound()
H A DInductiveRangeCheckElimination.cpp395 const SCEV *SIntMax = SE.getConstant(APInt::getSignedMaxValue(BitWidth)); in extractRangeChecksFromCond()
741 APInt Max = IsSigned ? APInt::getSignedMaxValue(BitWidth) : in isSafeIncreasingBound()
1626 const SCEV *SIntMax = SE.getConstant(APInt::getSignedMaxValue(BitWidth)); in computeSafeIterationSpace()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonAsmBackend.cpp398 const APInt IntMax = APInt::getSignedMaxValue(bits+align_bits); in HandleFixupError()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp386 APInt::getSignedMaxValue(inputElementType.getIntOrFloatBitWidth()) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp164 : llvm::APInt::getSignedMaxValue(bitwidth)); in minMaxValueForSignedInt()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp290 APInt::getSignedMaxValue(EltBits)); in getNeutralReductionElement()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp450 return APInt::getSignedMaxValue(BitWidth); in getIdentityValueForAtomicOp()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantRangeTest.cpp1425 ConstantRange SMax = ConstantRange(APInt::getSignedMaxValue(32)); in TEST()
1599 APInt::getSignedMaxValue(32) - 4)); in TEST()
1622 APInt::getSignedMaxValue(32) - 4)); in TEST()
1649 APInt::getSignedMaxValue(32))); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DIntrinsicInst.h613 return APInt::getSignedMaxValue(numBits); in getSaturationPoint()

12