Lines Matching defs:lrhs
688 if (auto lrhs = dyn_cast<AffineConstantExpr>(lBin.getRHS()))
689 return lBin.getLHS() + (lrhs.getValue() + rhsConst.getValue());
727 if (auto lrhs = dyn_cast<AffineConstantExpr>(lBin.getRHS())) {
728 return lBin.getLHS() + rhs + lrhs;
741 auto lrhs = rBinOpExpr.getLHS();
748 auto lrhsBinOpExpr = dyn_cast<AffineBinaryOpExpr>(lrhs);
764 // Process lrhs, which is 'expr floordiv c'.
766 AffineBinaryOpExpr lrBinOpExpr = dyn_cast<AffineBinaryOpExpr>(lrhs);
833 if (auto lrhs = dyn_cast<AffineConstantExpr>(lBin.getRHS()))
834 return lBin.getLHS() * (lrhs.getValue() * rhsConst.getValue());
840 if (auto lrhs = dyn_cast<AffineConstantExpr>(lBin.getRHS())) {
841 return (lBin.getLHS() * rhs) * lrhs;
891 // Simplify `(expr * lrhs) floordiv rhsConst` when `lrhs` is known to be a
895 if (auto lrhs = dyn_cast<AffineConstantExpr>(lBin.getRHS())) {
897 if (lrhs.getValue() % rhsConst.getValue() == 0)
898 return lBin.getLHS() * (lrhs.getValue() / rhsConst.getValue());
950 // Simplify `(expr * lrhs) ceildiv rhsConst` when `lrhs` is known to be a
954 if (auto lrhs = dyn_cast<AffineConstantExpr>(lBin.getRHS())) {
956 if (lrhs.getValue() % rhsConst.getValue() == 0)
957 return lBin.getLHS() * (lrhs.getValue() / rhsConst.getValue());