-
Notifications
You must be signed in to change notification settings - Fork 4
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
X86 backend wip #100
Merged
Merged
X86 backend wip #100
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ handwritten svg ~ :) html would have probably been the better choice.
TAC_RETURN did not correctly calculate the stackframe size and there was bunch of assumptions about it throughout the code. All of this should now use the correct lvst_* functions to calculate the stack frame size. Also link the program when using '-x86' flag to eliminate that manual step. Example: $ sd -x86 ifstatement.dg ld -o /tmp/program ifstatement.o So it prints that it called 'ld' and where the program is stored.
✅ Deploy Preview for espl1000 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
allow the lvst size to be different based on the testcase.
Create fake instances of sst, lvst with greater flexibility. This eliminates some edge cases in the compiler which were previously there to compensate for the lack of these tables in testing. Also start writing tests for TAC_CALL.
Implement a test for a function call with 1 argument. Adjust the offset calculation for rbp.
IR statements can 'use' and 'define' IR temporaries. This can be used to calculate sets 'in', 'out' which describe which temporaries are live on an incoming respective outgoing edge of an IR statement. 2 IR temporaries (used by struct TAC in our case) can share a register if they are not both live at the some point in the program. Tests: 2 very basic tests, needs to be extended TODO: probably make a '_liveness_struct.h' file to define 'struct Liveness' so it can be inspected from the testcases. References: https://lambda.uta.edu/cse5317/notes/node40.html
Test the contents of 'in','out','def','use' map for different IR statements (struct TAC). 'use' and 'def' map are the inputs for liveness analysis, so they have test coverage for many IR statements.
pointbazaar
force-pushed
the
x86-backend-wip
branch
from
December 18, 2024 20:25
2b19eae
to
bb26be7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.