Home | History | Annotate | Download | only in IR

Lines Matching refs:getBitWidth

48   assert(Lower.getBitWidth() == Upper.getBitWidth() &&
59 uint32_t W = CR.getBitWidth();
148 RHS = APInt(getBitWidth(), 0);
191 unsigned BitWidth = Other.getBitWidth();
250 return contains(APInt::getSignedMaxValue(getBitWidth())) &&
251 contains(APInt::getSignedMinValue(getBitWidth()));
258 APInt Size(getBitWidth()+1, 0);
259 Size.setBit(getBitWidth());
264 return (Upper - Lower).zext(getBitWidth()+1);
272 return APInt::getMaxValue(getBitWidth());
281 return APInt::getMinValue(getBitWidth());
289 APInt SignedMax(APInt::getSignedMaxValue(getBitWidth()));
304 APInt SignedMin(APInt::getSignedMinValue(getBitWidth()));
353 assert(Val.getBitWidth() == getBitWidth() && "Wrong bit width");
372 assert(getBitWidth() == CR.getBitWidth() &&
385 return ConstantRange(getBitWidth(), false);
398 return ConstantRange(getBitWidth(), false);
415 return ConstantRange(getBitWidth(), false);
453 assert(getBitWidth() == CR.getBitWidth() &&
477 return ConstantRange(getBitWidth());
491 return ConstantRange(getBitWidth());
518 return ConstantRange(getBitWidth());
536 unsigned SrcTySize = getBitWidth();
556 unsigned SrcTySize = getBitWidth();
576 assert(getBitWidth() > DstTySize && "Not a value truncation");
582 APInt MaxValue = APInt::getMaxValue(DstTySize).zext(getBitWidth());
583 APInt MaxBitValue(getBitWidth(), 0);
598 UpperDiv = APInt::getMaxValue(getBitWidth());
608 APInt Div(getBitWidth(), 0);
629 unsigned SrcTySize = getBitWidth();
640 unsigned SrcTySize = getBitWidth();
651 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
653 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
659 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
664 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
672 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
674 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
680 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
685 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
698 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
707 APInt this_min = getUnsignedMin().zext(getBitWidth() * 2);
708 APInt this_max = getUnsignedMax().zext(getBitWidth() * 2);
709 APInt Other_min = Other.getUnsignedMin().zext(getBitWidth() * 2);
710 APInt Other_max = Other.getUnsignedMax().zext(getBitWidth() * 2);
714 ConstantRange UR = Result_zext.truncate(getBitWidth());
729 this_min = getSignedMin().sext(getBitWidth() * 2);
730 this_max = getSignedMax().sext(getBitWidth() * 2);
731 Other_min = Other.getSignedMin().sext(getBitWidth() * 2);
732 Other_max = Other.getSignedMax().sext(getBitWidth() * 2);
738 ConstantRange SR = Result_sext.truncate(getBitWidth());
748 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
752 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
761 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
765 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
774 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
778 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
787 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
791 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
798 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
800 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
811 RHS_umin = APInt(getBitWidth(), 1);
819 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
827 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
833 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
834 return ConstantRange(APInt::getNullValue(getBitWidth()), umin + 1);
840 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
846 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
847 return ConstantRange(umax, APInt::getNullValue(getBitWidth()));
853 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
859 APInt Zeros(getBitWidth(), getUnsignedMax().countLeadingZeros());
864 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
870 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
875 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
882 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
884 return ConstantRange(getBitWidth(), /*isFullSet=*/true);