-
Notifications
You must be signed in to change notification settings - Fork 79
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: (x86) PR15 - S Operations #2539
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2539 +/- ##
========================================
Coverage 89.81% 89.81%
========================================
Files 351 354 +3
Lines 44152 44319 +167
Branches 6593 6617 +24
========================================
+ Hits 39655 39805 +150
- Misses 3539 3549 +10
- Partials 958 965 +7 ☔ View full report in Codecov by Sentry. |
Ok now we're getting to the juicy part of representing assembly control flow in xDSL. I'm still of the opinion that we should always follow the MLIR invariant that if a region is in SSA, then when a block is entered all the instructions are executed. This jump, for me, should be a terminator, as it is in the |
I haven't really thought as far as dynamic offsets. My goal for now is to implement a complete basic version that would handle most simple cases and then potentially develop it further based on people's needs. I suppose it's best to keep to static jumps for now? |
In that case, I would recommend adding the equivalents to the |
Big 👍 from me. Note that the MLIR community has been discussing this lately (I remember a talk at eurollvm2023 by Jeff and the mojo people about this). So, let's see what they come up with to do the things they want. |
@superlopuh @webmiche Let me know if this is more or less what you had in mind. I didn't do assembly emission tests yet because those need to supposedly be in a block to work and I don't have that functionality yet. I kind of made a hack to make the other filecheck work in the first place. |
Co-authored-by: Sasha Lopoukhine <superlopuh@gmail.com>
Added support for S operations and the unconditional jump. I'll do conditional jumps in a seperate PR as they would involve creating a new register type.