Lines Matching full:other
17 bool ConstantIntRanges::operator==(const ConstantIntRanges &other) const {
18 return umin().getBitWidth() == other.umin().getBitWidth() &&
19 umin() == other.umin() && umax() == other.umax() &&
20 smin() == other.smin() && smax() == other.smax();
85 ConstantIntRanges::rangeUnion(const ConstantIntRanges &other) const {
90 if (other.umin().getBitWidth() == 0)
91 return other;
93 const APInt &uminUnion = umin().ult(other.umin()) ? umin() : other.umin();
94 const APInt &umaxUnion = umax().ugt(other.umax()) ? umax() : other.umax();
95 const APInt &sminUnion = smin().slt(other.smin()) ? smin() : other.smin();
96 const APInt &smaxUnion = smax().sgt(other.smax()) ? smax() : other.smax();
102 ConstantIntRanges::intersection(const ConstantIntRanges &other) const {
107 if (other.umin().getBitWidth() == 0)
108 return other;
110 const APInt &uminIntersect = umin().ugt(other.umin()) ? umin() : other.umin();
111 const APInt &umaxIntersect = umax().ult(other.umax()) ? umax() : other.umax();
112 const APInt &sminIntersect = smin().sgt(other.smin()) ? smin() : other.smin();
113 const APInt &smaxIntersect = smax().slt(other.smax()) ? smax() : other.smax();