-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transformations: add memref-stream-interleave #2823
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2823 +/- ##
==========================================
- Coverage 89.83% 89.83% -0.01%
==========================================
Files 396 397 +1
Lines 49139 49194 +55
Branches 7533 7549 +16
==========================================
+ Hits 44143 44191 +48
- Misses 3805 3808 +3
- Partials 1191 1195 +4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful.
+ tuple( | ||
AffineExpr.dimension(i) | ||
for i in range( | ||
interleave_bound_index + 1, m.data.num_dims + 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do these numbers stem from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is that there is an extra dimension added somewhere in the middle of the affine map domain. This is the slice of the domain after the updated value, so it's going from inserted_index + 1 to old_len + 1
inclusive.
…eaved' into sasha/memref_stream/lower-interleaved
I just realized a design flaw in this representation while implementing the lowering to loops, I'll try to finish an end-to-end lowering and see whether this is still the right approach. |
Lowering works OK, let's merge this and keep going. |
No description provided.