Lines Matching refs:getBitWidth

51   assert(Lower.getBitWidth() == Upper.getBitWidth() &&  in ConstantRange()
62 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion()
151 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp()
201 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion()
332 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet()
333 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet()
338 return APInt::getOneBitSet(getBitWidth()+1, getBitWidth()); in getSetSize()
341 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize()
346 assert(getBitWidth() == Other.getBitWidth()); in isSizeStrictlySmallerThan()
360 return APInt::getMaxValue(getBitWidth()).ugt(MaxSize - 1); in isSizeLargerThan()
367 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax()
373 return APInt::getMinValue(getBitWidth()); in getUnsignedMin()
379 return APInt::getSignedMaxValue(getBitWidth()); in getSignedMax()
385 return APInt::getSignedMinValue(getBitWidth()); in getSignedMin()
417 assert(Val.getBitWidth() == getBitWidth() && "Wrong bit width"); in subtract()
429 assert(getBitWidth() == CR.getBitWidth() && in intersectWith()
442 return ConstantRange(getBitWidth(), false); in intersectWith()
455 return ConstantRange(getBitWidth(), false); in intersectWith()
472 return ConstantRange(getBitWidth(), false); in intersectWith()
503 assert(getBitWidth() == CR.getBitWidth() && in unionWith()
524 return ConstantRange(getBitWidth()); in unionWith()
538 return ConstantRange(getBitWidth()); in unionWith()
565 return ConstantRange(getBitWidth()); in unionWith()
588 if (getBitWidth() == ResultBitWidth) in castOp()
591 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in castOp()
594 auto BW = getBitWidth(); in castOp()
601 auto BW = getBitWidth(); in castOp()
612 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in castOp()
619 unsigned SrcTySize = getBitWidth(); in zeroExtend()
636 unsigned SrcTySize = getBitWidth(); in signExtend()
652 assert(getBitWidth() > DstTySize && "Not a value truncation"); in truncate()
683 APInt Adjust = LowerDiv & APInt::getBitsSetFrom(getBitWidth(), DstTySize); in truncate()
706 unsigned SrcTySize = getBitWidth(); in zextOrTrunc()
715 unsigned SrcTySize = getBitWidth(); in sextOrTrunc()
756 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in binaryOp()
763 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in add()
765 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in add()
770 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in add()
776 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in add()
796 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in sub()
798 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in sub()
803 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in sub()
809 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in sub()
821 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in multiply()
830 APInt this_min = getUnsignedMin().zext(getBitWidth() * 2); in multiply()
831 APInt this_max = getUnsignedMax().zext(getBitWidth() * 2); in multiply()
832 APInt Other_min = Other.getUnsignedMin().zext(getBitWidth() * 2); in multiply()
833 APInt Other_max = Other.getUnsignedMax().zext(getBitWidth() * 2); in multiply()
837 ConstantRange UR = Result_zext.truncate(getBitWidth()); in multiply()
853 this_min = getSignedMin().sext(getBitWidth() * 2); in multiply()
854 this_max = getSignedMax().sext(getBitWidth() * 2); in multiply()
855 Other_min = Other.getSignedMin().sext(getBitWidth() * 2); in multiply()
856 Other_max = Other.getSignedMax().sext(getBitWidth() * 2); in multiply()
862 ConstantRange SR = Result_sext.truncate(getBitWidth()); in multiply()
872 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in smax()
876 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in smax()
885 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in umax()
889 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in umax()
898 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in smin()
902 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in smin()
911 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in umin()
915 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in umin()
922 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in udiv()
924 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in udiv()
943 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in udiv()
951 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in binaryAnd()
957 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in binaryAnd()
958 return ConstantRange(APInt::getNullValue(getBitWidth()), std::move(umin) + 1); in binaryAnd()
964 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in binaryOr()
970 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in binaryOr()
971 return ConstantRange(std::move(umax), APInt::getNullValue(getBitWidth())); in binaryOr()
977 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in shl()
984 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in shl()
998 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in lshr()
1003 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in lshr()
1011 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in ashr()
1057 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in ashr()
1064 return ConstantRange(getBitWidth(), /*isFullSet=*/false); in inverse()
1066 return ConstantRange(getBitWidth(), /*isFullSet=*/true); in inverse()