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

dialects: (scf) make iteration variable type explicit #3138

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

alexarice
Copy link
Collaborator

In mlir, if the iteration variable of scf.for does not have an explicit type, then it is assumed to be index. This change matches this behaviour in xDSL.

@alexarice alexarice added dialects Changes on the dialects testing PRs that modify tests labels Sep 3, 2024
@alexarice alexarice self-assigned this Sep 3, 2024
Copy link
Collaborator

@webmiche webmiche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you touched some csl stuff. Does this affect anything there? (@dk949, @n-io)

Otherwise, LGTM!

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.97%. Comparing base (d95e30d) to head (1c0313a).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3138      +/-   ##
==========================================
+ Coverage   89.94%   89.97%   +0.02%     
==========================================
  Files         425      426       +1     
  Lines       53571    53711     +140     
  Branches     8299     8319      +20     
==========================================
+ Hits        48185    48325     +140     
+ Misses       4044     4043       -1     
- Partials     1342     1343       +1     

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

@dk949
Copy link
Collaborator

dk949 commented Sep 3, 2024

I see that you touched some csl stuff. Does this affect anything there? (@dk949, @n-io)

Otherwise, LGTM!

We use i16s for loop indices which used to be inferred from ub, lb and step, but I'm guessing no longer is.

So, no, I don't think this affects anything.

@alexarice alexarice merged commit c1d6501 into main Sep 3, 2024
14 checks passed
@alexarice alexarice deleted the alexarice/scffor branch September 3, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects testing PRs that modify tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants