reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
705 assert(getBitWidth() > DstTySize && "Not a value truncation"); 707 return getEmpty(DstTySize); 709 return getFull(DstTySize); 712 ConstantRange Union(DstTySize, /*isFullSet=*/false); 720 if (Upper.getActiveBits() > DstTySize || 721 Upper.countTrailingOnes() == DstTySize) 722 return getFull(DstTySize); 724 Union = ConstantRange(APInt::getMaxValue(DstTySize),Upper.trunc(DstTySize)); 724 Union = ConstantRange(APInt::getMaxValue(DstTySize),Upper.trunc(DstTySize)); 734 if (LowerDiv.getActiveBits() > DstTySize) { 736 APInt Adjust = LowerDiv & APInt::getBitsSetFrom(getBitWidth(), DstTySize); 742 if (UpperDivWidth <= DstTySize) 743 return ConstantRange(LowerDiv.trunc(DstTySize), 744 UpperDiv.trunc(DstTySize)).unionWith(Union); 747 if (UpperDivWidth == DstTySize + 1) { 749 UpperDiv.clearBit(DstTySize); 751 return ConstantRange(LowerDiv.trunc(DstTySize), 752 UpperDiv.trunc(DstTySize)).unionWith(Union); 755 return getFull(DstTySize);