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

[vm] Add support for SI64 to F32 casts #19455

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

vinayakdsci
Copy link
Contributor

@vinayakdsci vinayakdsci commented Dec 11, 2024

Adds support to the VM for casting from si64 type to f32 type.

Enables the lowering of arith.sitofp %arg0 : i64 to f32 after demotion.

@pashu123
Copy link
Contributor

In the PR body is a bit misleading:

This PR doesn't enable canonicalization but supports lowering the final op after demotion. 

@vinayakdsci
Copy link
Contributor Author

@pashu123 I have auto-generated op_table.h. I can see a good many changes here, looks like it wasn't update in quite some time.

@vinayakdsci vinayakdsci force-pushed the vm-add-si64f32-cast branch 3 times, most recently from 24f8c86 to 9dd5a3d Compare December 12, 2024 22:00
@vinayakdsci
Copy link
Contributor Author

@benvanik, @pashu123 I have split IntToFPOpConversion into UIToFPOpConversion and SIToFPOpConversion.
This should eliminate the need for templates/specialization completely.

Copy link
Contributor

@pashu123 pashu123 left a comment

Choose a reason for hiding this comment

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

LGTM!

@vinayakdsci vinayakdsci merged commit 0cafee9 into iree-org:main Dec 13, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants