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

Fix IR operation usage to use OpSize when possible #4132

Merged
merged 7 commits into from
Oct 27, 2024

Conversation

Sonicadvance1
Copy link
Member

@Sonicadvance1 Sonicadvance1 commented Oct 25, 2024

No functional change.

This is a continued stride towards using OpSize enums instead of constant numbers to reduce confusion and misunderstandings.

It gets very confusing at times when an argument to an IR operation is a size versus an index, or scale or another constant. We had already cleaned up a decent amount of this early this year, late last year but this hits all the OpcodeDispatcher files in the folder. Once this is merged we can start enforcing OpSize passing to IR operations without implicit conversions. Likely will require a bit more mopping up on the edges, but should make it easier.

Just a little cleanup while I'm distracted.

@lioncash
Copy link
Contributor

Needs a rebase

@Sonicadvance1
Copy link
Member Author

Rebased

@lioncash lioncash merged commit d2aa521 into FEX-Emu:main Oct 27, 2024
12 checks passed
@Sonicadvance1 Sonicadvance1 deleted the fix_irsize branch October 27, 2024 21:27
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.

2 participants