Lines Matching refs:getBitWidth

48   assert(Lower.getBitWidth() == Upper.getBitWidth() &&
59 uint32_t W = CR.getBitWidth();
152 unsigned BitWidth = C.getBitWidth();
204 return contains(APInt::getSignedMaxValue(getBitWidth())) &&
205 contains(APInt::getSignedMinValue(getBitWidth()));
212 APInt Size(getBitWidth()+1, 0);
213 Size.setBit(getBitWidth());
218 return (Upper - Lower).zext(getBitWidth()+1);
226 return APInt::getMaxValue(getBitWidth());
235 return APInt::getMinValue(getBitWidth());
243 APInt SignedMax(APInt::getSignedMaxValue(getBitWidth()));
258 APInt SignedMin(APInt::getSignedMinValue(getBitWidth()));
307 assert(Val.getBitWidth() == getBitWidth() && "Wrong bit width");
326 assert(getBitWidth() == CR.getBitWidth() &&
339 return ConstantRange(getBitWidth(), false);
352 return ConstantRange(getBitWidth(), false);
369 return ConstantRange(getBitWidth(), false);
407 assert(getBitWidth() == CR.getBitWidth() &&
431 return ConstantRange(getBitWidth());
445 return ConstantRange(getBitWidth());
472 return ConstantRange(getBitWidth());
490 unsigned SrcTySize = getBitWidth();
510 unsigned SrcTySize = getBitWidth();
530 assert(getBitWidth() > DstTySize && "Not a value truncation");
536 APInt MaxValue = APInt::getMaxValue(DstTySize).zext(getBitWidth());
537 APInt MaxBitValue(getBitWidth(), 0);
552 UpperDiv = APInt::getMaxValue(getBitWidth());
562 APInt Div(getBitWidth(), 0);
583 unsigned SrcTySize = getBitWidth();
594 unsigned SrcTySize = getBitWidth();
605 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
607 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
613 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
618 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
626 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
628 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
634 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
639 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
652 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
661 APInt this_min = getUnsignedMin().zext(getBitWidth() * 2);
662 APInt this_max = getUnsignedMax().zext(getBitWidth() * 2);
663 APInt Other_min = Other.getUnsignedMin().zext(getBitWidth() * 2);
664 APInt Other_max = Other.getUnsignedMax().zext(getBitWidth() * 2);
668 ConstantRange UR = Result_zext.truncate(getBitWidth());
676 this_min = getSignedMin().sext(getBitWidth() * 2);
677 this_max = getSignedMax().sext(getBitWidth() * 2);
678 Other_min = Other.getSignedMin().sext(getBitWidth() * 2);
679 Other_max = Other.getSignedMax().sext(getBitWidth() * 2);
685 ConstantRange SR = Result_sext.truncate(getBitWidth());
695 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
699 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
708 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
712 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
719 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
721 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
732 RHS_umin = APInt(getBitWidth(), 1);
740 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
748 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
754 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
755 return ConstantRange(APInt::getNullValue(getBitWidth()), umin + 1);
761 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
767 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
768 return ConstantRange(umax, APInt::getNullValue(getBitWidth()));
774 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
780 APInt Zeros(getBitWidth(), getUnsignedMax().countLeadingZeros());
785 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
791 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
796 return ConstantRange(getBitWidth(), /*isFullSet=*/true);
803 return ConstantRange(getBitWidth(), /*isFullSet=*/false);
805 return ConstantRange(getBitWidth(), /*isFullSet=*/true);