Skip to content
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: handle strided layout attr in memref_stream lowering #2866

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

superlopuh
Copy link
Member

We currently treat all memrefs as raw pointers in our memref_stream.streaming_region lowering, but that's not correct, we want to take the strided layout into account when possible. This PR adds some helpers to compute the appropriate stride map, and uses them to construct the correct snitch stride pattern.

@superlopuh superlopuh added the transformations Changes or adds a transformatio label Jul 8, 2024
@superlopuh superlopuh self-assigned this Jul 8, 2024
Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@7fd68f4). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2866   +/-   ##
=======================================
  Coverage        ?   89.85%           
=======================================
  Files           ?      395           
  Lines           ?    49787           
  Branches        ?     7676           
=======================================
  Hits            ?    44738           
  Misses          ?     3838           
  Partials        ?     1211           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@superlopuh superlopuh merged commit f148516 into main Jul 8, 2024
10 checks passed
@superlopuh superlopuh deleted the sasha/memref_stream/strided-lowering branch July 8, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transformations Changes or adds a transformatio
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants