void Schedule::accept(IRVisitor *visitor) const { for (const ReductionVariable &r : rvars()) { if (r.min.defined()) { r.min.accept(visitor); } if (r.extent.defined()) { r.extent.accept(visitor); } } for (const Split &s : splits()) { if (s.factor.defined()) { s.factor.accept(visitor); } } for (const Bound &b : bounds()) { if (b.min.defined()) { b.min.accept(visitor); } if (b.extent.defined()) { b.extent.accept(visitor); } if (b.modulus.defined()) { b.modulus.accept(visitor); } if (b.remainder.defined()) { b.remainder.accept(visitor); } } }
void StageSchedule::accept(IRVisitor *visitor) const { for (const ReductionVariable &r : rvars()) { if (r.min.defined()) { r.min.accept(visitor); } if (r.extent.defined()) { r.extent.accept(visitor); } } for (const Split &s : splits()) { if (s.factor.defined()) { s.factor.accept(visitor); } } for (const PrefetchDirective &p : prefetches()) { if (p.offset.defined()) { p.offset.accept(visitor); } } }