| /llvm-project-15.0.7/mlir/unittests/Interfaces/ |
| H A D | InferIntRangeInterfaceTest.cpp | 30 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 D | IntegerRangeAnalysis.cpp | 31 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 D | OpDescriptor.cpp | 20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | DivisionByConstantInfo.cpp | 73 APInt SignedMax = APInt::getSignedMaxValue(D.getBitWidth()); in get()
|
| H A D | KnownBits.cpp | 373 if (LHS.getSignedMaxValue().sle(RHS.getSignedMinValue())) in sgt() 376 if (LHS.getSignedMinValue().sgt(RHS.getSignedMaxValue())) in sgt()
|
| H A D | APInt.cpp | 942 : 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 D | InferIntRangeInterface.cpp | 76 smax = APInt::getSignedMaxValue(width); in fromUnsigned()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 155 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 D | TosaToLinalgNamed.cpp | 211 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 D | ConstantRange.cpp | 268 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 D | KnownBitsTest.cpp | 414 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 D | KnownBits.h | 142 APInt getSignedMaxValue() const { in getSignedMaxValue() function
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 2632 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 D | InferIntRangeInterfaceImpls.cpp | 45 isSigned ? APInt::getSignedMaxValue(width) : APInt::getMaxValue(width); in minMaxBy() 324 APInt smax = APInt::getSignedMaxValue(width); in inferResultRanges()
|
| H A D | ArithmeticOps.cpp | 1562 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 D | APSInt.h | 285 : APInt::getSignedMaxValue(numBits), Unsigned); in getMaxValue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopBoundSplit.cpp | 105 ? APInt::getSignedMaxValue(BitWidth) in calculateUpperBound()
|
| H A D | InductiveRangeCheckElimination.cpp | 395 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 D | HexagonAsmBackend.cpp | 398 const APInt IntMax = APInt::getSignedMaxValue(bits+align_bits); in HandleFixupError()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 386 APInt::getSignedMaxValue(inputElementType.getIntOrFloatBitWidth()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/ |
| H A D | SCFToOpenMP.cpp | 164 : llvm::APInt::getSignedMaxValue(bitwidth)); in minMaxValueForSignedInt()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ExpandVectorPredication.cpp | 290 APInt::getSignedMaxValue(EltBits)); in getNeutralReductionElement()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAtomicOptimizer.cpp | 450 return APInt::getSignedMaxValue(BitWidth); in getIdentityValueForAtomicOp()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantRangeTest.cpp | 1425 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 D | IntrinsicInst.h | 613 return APInt::getSignedMaxValue(numBits); in getSaturationPoint()
|