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: (scf-to-cf) add lowering for index_switch #3179

Merged
merged 6 commits into from
Sep 25, 2024

Conversation

alexarice
Copy link
Collaborator

Again this is mainly copied from the implementation in mlir

@alexarice alexarice self-assigned this Sep 17, 2024
@alexarice alexarice added testing PRs that modify tests transformations Changes or adds a transformatio labels Sep 17, 2024
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.04%. Comparing base (7e2b0f7) to head (3bfcfe3).
Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3179      +/-   ##
==========================================
+ Coverage   90.03%   90.04%   +0.01%     
==========================================
  Files         430      432       +2     
  Lines       54183    54483     +300     
  Branches     8392     8453      +61     
==========================================
+ Hits        48784    49060     +276     
- Misses       4043     4056      +13     
- Partials     1356     1367      +11     

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

case_value,
default_block,
(),
DenseIntOrFPElementsAttr.vector_from_list(case_values, i32),
Copy link
Member

Choose a reason for hiding this comment

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

can this not be the op.cases above? Does the type change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, op.cases is a DenseArrayBase but this is a DenseIntOrFPElementsAttr and these appear to not be the same

alexarice and others added 3 commits September 23, 2024 08:00
Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
@alexarice alexarice merged commit da8fca0 into main Sep 25, 2024
14 checks passed
@alexarice alexarice deleted the alexarice/switch-lower branch September 25, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing PRs that modify tests transformations Changes or adds a transformatio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants