Lines Matching refs:I1
301 static bool isSameValue(const APSInt &I1, const APSInt &I2) {
302 return !compareValues(I1, I2);
306 static int compareValues(const APSInt &I1, const APSInt &I2) {
307 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
308 return I1.IsUnsigned ? I1.compare(I2) : I1.compareSigned(I2);
311 if (I1.getBitWidth() > I2.getBitWidth())
312 return compareValues(I1, I2.extend(I1.getBitWidth()));
313 if (I2.getBitWidth() > I1.getBitWidth())
314 return compareValues(I1.extend(I2.getBitWidth()), I2);
318 if (I1.isSigned()) {
320 if (I1.isNegative())
328 return I1.compare(I2);