• Home
  • Raw
  • Download

Lines Matching refs:AffineConstantExpr

34     void visitConstantExpr(AffineConstantExpr expr) { callback(expr); }  in walk()
176 (op.getLHS().template isa<AffineConstantExpr>() || in isPureAffine()
177 op.getRHS().template isa<AffineConstantExpr>()); in isPureAffine()
184 op.getRHS().template isa<AffineConstantExpr>(); in isPureAffine()
199 return std::abs(this->cast<AffineConstantExpr>().getValue()); in getLargestKnownDivisor()
228 return cast<AffineConstantExpr>().getValue() % factor == 0; in isMultipleOf()
293 if (expr.cast<AffineConstantExpr>().getValue()) in isDivisibleBySymbol()
354 if (expr.cast<AffineConstantExpr>().getValue() != 0) in symbolicDivide()
468 AffineConstantExpr::AffineConstantExpr(AffineExpr::ImplType *ptr) in AffineConstantExpr() function in AffineConstantExpr
470 int64_t AffineConstantExpr::getValue() const { in getValue()
489 auto lhsConst = lhs.dyn_cast<AffineConstantExpr>(); in simplifyAdd()
490 auto rhsConst = rhs.dyn_cast<AffineConstantExpr>(); in simplifyAdd()
498 if (lhs.isa<AffineConstantExpr>() || in simplifyAdd()
513 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) in simplifyAdd()
522 AffineConstantExpr rLhsConstExpr; in simplifyAdd()
525 (rLhsConstExpr = lBinOpExpr.getRHS().dyn_cast<AffineConstantExpr>())) { in simplifyAdd()
534 AffineConstantExpr rRhsConstExpr; in simplifyAdd()
536 (rRhsConstExpr = rBinOpExpr.getRHS().dyn_cast<AffineConstantExpr>())) { in simplifyAdd()
553 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyAdd()
597 auto lhsConst = lhs.dyn_cast<AffineConstantExpr>(); in simplifyMul()
598 auto rhsConst = rhs.dyn_cast<AffineConstantExpr>(); in simplifyMul()
609 if (!rhs.isSymbolicOrConstant() || lhs.isa<AffineConstantExpr>()) { in simplifyMul()
628 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) in simplifyMul()
635 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyMul()
667 auto lhsConst = lhs.dyn_cast<AffineConstantExpr>(); in simplifyFloorDiv()
668 auto rhsConst = rhs.dyn_cast<AffineConstantExpr>(); in simplifyFloorDiv()
687 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyFloorDiv()
723 auto lhsConst = lhs.dyn_cast<AffineConstantExpr>(); in simplifyCeilDiv()
724 auto rhsConst = rhs.dyn_cast<AffineConstantExpr>(); in simplifyCeilDiv()
742 if (auto lrhs = lBin.getRHS().dyn_cast<AffineConstantExpr>()) { in simplifyCeilDiv()
766 auto lhsConst = lhs.dyn_cast<AffineConstantExpr>(); in simplifyMod()
767 auto rhsConst = rhs.dyn_cast<AffineConstantExpr>(); in simplifyMod()
870 assert(expr.getRHS().isa<AffineConstantExpr>()); in visitMulExpr()
903 assert(expr.getRHS().isa<AffineConstantExpr>()); in visitModExpr()
974 void SimpleAffineExprFlattener::visitConstantExpr(AffineConstantExpr expr) { in visitConstantExpr()
991 assert(expr.getRHS().isa<AffineConstantExpr>()); in visitDivExpr()