Lines Matching refs:lrhs
513 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) in simplifyAdd() local
514 return lBin.getLHS() + (lrhs.getValue() + rhsConst.getValue()); in simplifyAdd()
553 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyAdd() local
554 return lBin.getLHS() + rhs + lrhs; in simplifyAdd()
566 auto lrhs = rBinOpExpr.getLHS(); in simplifyAdd() local
570 AffineBinaryOpExpr lrBinOpExpr = lrhs.dyn_cast<AffineBinaryOpExpr>(); in simplifyAdd()
628 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) in simplifyMul() local
629 return lBin.getLHS() * (lrhs.getValue() * rhsConst.getValue()); in simplifyMul()
635 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyMul() local
636 return (lBin.getLHS() * rhs) * lrhs; in simplifyMul()
687 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyFloorDiv() local
689 if (lrhs.getValue() % rhsConst.getValue() == 0) in simplifyFloorDiv()
690 return lBin.getLHS() * (lrhs.getValue() / rhsConst.getValue()); in simplifyFloorDiv()
742 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyCeilDiv() local
744 if (lrhs.getValue() % rhsConst.getValue() == 0) in simplifyCeilDiv()
745 return lBin.getLHS() * (lrhs.getValue() / rhsConst.getValue()); in simplifyCeilDiv()