Lines Matching refs:rhsConstant
434 if (auto rhsConstant = rhs.dyn_cast<SDBMConstantExpr>()) { in tryConvertAffineExpr() local
435 int64_t constant = rhsConstant.getValue(); in tryConvertAffineExpr()
469 auto rhsConstant = rhs.dyn_cast<SDBMConstantExpr>(); in tryConvertAffineExpr() local
470 if (!rhsConstant) in tryConvertAffineExpr()
475 if (rhsConstant.getValue() != -1) in tryConvertAffineExpr()
494 auto rhsConstant = rhs.dyn_cast<SDBMConstantExpr>(); in tryConvertAffineExpr() local
496 if (!lhsVar || !rhsConstant) in tryConvertAffineExpr()
499 SDBMStripeExpr::get(lhsVar, rhsConstant)); in tryConvertAffineExpr()
682 auto rhsConstant = rhs.dyn_cast<SDBMConstantExpr>(); in operator +() local
683 if (!rhsConstant && lhsConstant) { in operator +()
685 std::swap(lhsConstant, rhsConstant); in operator +()
687 assert(rhsConstant && "at least one operand must be a constant"); in operator +()
692 rhsConstant.getValue()); in operator +()
693 return addConstant(lhs.cast<SDBMVaryingExpr>(), rhsConstant.getValue()); in operator +()
703 auto rhsConstant = rhs.dyn_cast<SDBMConstantExpr>(); in operator -() local
706 if (lhsConstant && rhsConstant) in operator -()
708 rhsConstant.getValue()); in operator -()
715 if (rhsConstant) in operator -()
716 return lhs + (-rhsConstant); in operator -()