Lines Matching refs:APInt
209 operands, [](APInt a, const APInt &b) { return std::move(a) + b; }); in fold()
231 operands, [](APInt a, const APInt &b) { return std::move(a) - b; }); in fold()
257 operands, [](const APInt &a, const APInt &b) { return a * b; }); in fold()
272 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
295 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
310 static APInt signedCeilNonnegInputs(const APInt &a, const APInt &b, in signedCeilNonnegInputs()
313 APInt one(a.getBitWidth(), 1, true); // Signed value 1. in signedCeilNonnegInputs()
314 APInt val = a.ssub_ov(one, overflow).sdiv_ov(b, overflow); in signedCeilNonnegInputs()
329 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
334 APInt quotient = a.udiv(b); in fold()
337 APInt one(a.getBitWidth(), 1, true); in fold()
356 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
365 APInt zero = APInt::getZero(bits); in fold()
374 APInt posA = zero.ssub_ov(a, overflowOrDiv0); in fold()
375 APInt posB = zero.ssub_ov(b, overflowOrDiv0); in fold()
380 APInt posA = zero.ssub_ov(a, overflowOrDiv0); in fold()
381 APInt div = posA.sdiv_ov(b, overflowOrDiv0); in fold()
385 APInt posB = zero.ssub_ov(b, overflowOrDiv0); in fold()
386 APInt div = a.sdiv_ov(posB, overflowOrDiv0); in fold()
405 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
414 APInt zero = APInt::getZero(bits); in fold()
423 APInt posA = zero.ssub_ov(a, overflowOrDiv0); in fold()
424 APInt posB = zero.ssub_ov(b, overflowOrDiv0); in fold()
429 APInt posA = zero.ssub_ov(a, overflowOrDiv0); in fold()
430 APInt ceil = signedCeilNonnegInputs(posA, b, overflowOrDiv0); in fold()
434 APInt posB = zero.ssub_ov(b, overflowOrDiv0); in fold()
435 APInt ceil = signedCeilNonnegInputs(a, posB, overflowOrDiv0); in fold()
454 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
477 constFoldBinaryOp<IntegerAttr>(operands, [&](APInt a, const APInt &b) { in fold()
497 APInt intValue; in fold()
502 operands, [](APInt a, const APInt &b) { return std::move(a) & b; }); in fold()
519 operands, [](APInt a, const APInt &b) { return std::move(a) | b; }); in fold()
539 operands, [](APInt a, const APInt &b) { return std::move(a) ^ b; }); in fold()
616 APInt intValue; in fold()
628 [](const APInt &a, const APInt &b) { in fold()
644 APInt intValue; in fold()
654 [](const APInt &a, const APInt &b) { in fold()
690 APInt intValue; in fold()
702 [](const APInt &a, const APInt &b) { in fold()
718 APInt intValue; in fold()
728 [](const APInt &a, const APInt &b) { in fold()
886 operands, getType(), [bitWidth](const APInt &a, bool &castStatus) { in fold()
915 operands, getType(), [bitWidth](const APInt &a, bool &castStatus) { in fold()
970 operands, getType(), [bitWidth](const APInt &a, bool &castStatus) { in fold()
1065 operands, getType(), [&resEleType](const APInt &a, bool &castStatus) { in fold()
1068 APInt::getZero(floatTy.getWidth())); in fold()
1091 operands, getType(), [&resEleType](const APInt &a, bool &castStatus) { in fold()
1094 APInt::getZero(floatTy.getWidth())); in fold()
1219 APInt bits = operand.isa<FloatAttr>() in fold()
1258 const APInt &lhs, const APInt &rhs) { in applyCmpPredicate()
1562 signedMax.convertFromAPInt(APInt::getSignedMaxValue(intWidth), true, in matchAndRewrite()
1578 unsignedMax.convertFromAPInt(APInt::getMaxValue(intWidth), false, in matchAndRewrite()
1595 signedMin.convertFromAPInt(APInt::getSignedMinValue(intWidth), true, in matchAndRewrite()
1610 unsignedMin.convertFromAPInt(APInt::getMinValue(intWidth), false, in matchAndRewrite()
1639 APInt::getZero(floatTy.getWidth())); in matchAndRewrite()
1911 operands, [&](const APInt &a, const APInt &b) { in fold()
1926 operands, [&](const APInt &a, const APInt &b) { in fold()
1941 operands, [&](const APInt &a, const APInt &b) { in fold()
1969 APInt::getAllOnes(resultType.cast<IntegerType>().getWidth())); in getIdentityValueAttr()
1973 APInt::getSignedMinValue(resultType.cast<IntegerType>().getWidth())); in getIdentityValueAttr()
1982 APInt::getSignedMaxValue(resultType.cast<IntegerType>().getWidth())); in getIdentityValueAttr()
1986 APInt::getMaxValue(resultType.cast<IntegerType>().getWidth())); in getIdentityValueAttr()