Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yamaguchi1024 committed Nov 4, 2022
1 parent 446b2cf commit d0c5b50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/exo/LoopIR_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,10 @@ def calc_dim(self, dim):
[w for w in self.win_stmt.rhs.idx if isinstance(w, LoopIR.Interval)]
)

# Because our goal here is to offset `dim` in the original
# call argument to the point indexing to the windowing expression,
# new_dim should essencially be:
# `dim` + "number of LoopIR.Points in the windowing expression before the `dim` number of LoopIR.Interval"
new_dim = 0
for w in self.win_stmt.rhs.idx:
if isinstance(w, LoopIR.Interval):
Expand Down

0 comments on commit d0c5b50

Please sign in to comment.