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
documentation: (toy) add initial lowering to riscv #1365
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1365 +/- ##
==========================================
+ Coverage 89.71% 89.76% +0.04%
==========================================
Files 196 198 +2
Lines 25269 25342 +73
Branches 3800 3807 +7
==========================================
+ Hits 22671 22748 +77
+ Misses 1999 1997 -2
+ Partials 599 597 -2
☔ View full report in Codecov by Sentry. |
) | ||
|
||
|
||
class AddSections(RewritePattern): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With @AntonLydike's riscemu malloc and friends, the .bss section hack is not necessary, similarly we can probably get away with dropping the data section. I'd like to first merge the end-to-end flow as it's working today, and make it better later, if that's ok with everyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
DeadCodeElimination().apply(ctx, module_op) | ||
# ReconcileUnrealizedCastsPass().apply(ctx, module_op) | ||
|
||
DeadCodeElimination().apply(ctx, module_op) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes I guess not really necessary right now, I'll remove it in the next PR
Adds the structure of the riscv lowering and the first pass. I added some future changes as TODOs so that the remaining work is clear.