Repository navigation
implement airTrunc for @truncate - #1
Closed
SoraTenshi wants to merge 42 commits into
Closed
SoraTenshi wants to merge 42 commits into
SoraTenshi wants to merge 42 commits into
Conversation
offset isn't being calculated correctly for beqz. for some reason different offset in lowerMir and inside of the emit.
if else statements work!
- before we were storing each arg in it's own function arg register. with this commit now we store the args in the fa register before calling as per the RISC-V calling convention, however as soon as we enter the callee, aka in airArg, we spill the argument to the stack. this allows us to spend less effort worrying about whether we're going to clobber the function arguments when another function is called inside of the callee. - we were actually clobbering the fa regs inside of resolveCallingConvetion, because of the null argument to allocReg. now each lock is stored in an array which is then iterated over and unlocked, which actually aids in the first point of this commit.
lots of thinking later, ive begun to grasp my head around how the pointers should work. this commit allows basic pointer loading and storing to happen.
when the struct is in stack memory, we access it using a byte-offset, because that's how the stack works. on the other hand when the struct is in a register, we are working with bits and the field offset should be a bit offset.
better indicates when we have controlled panic rather than a segfault.
we can use `std.os.exit` now! because it only upcasts.
Rexicon226
force-pushed
the
riscv
branch
3 times, most recently
from
April 23, 2024 04:35
fc4053a to
7053eb0
Compare
Rexicon226
force-pushed
the
riscv
branch
7 times, most recently
from
May 11, 2024 20:23
1745a3c to
21da821
Compare
Rexicon226
force-pushed
the
riscv
branch
3 times, most recently
from
May 26, 2024 06:09
9c47f95 to
5e3e464
Compare
Rexicon226
force-pushed
the
riscv
branch
3 times, most recently
from
June 13, 2024 11:42
2d8f04d to
e60c581
Compare
Rexicon226
force-pushed
the
riscv
branch
2 times, most recently
from
July 10, 2024 05:44
d2a65f9 to
527f69b
Compare
Rexicon226
force-pushed
the
riscv
branch
6 times, most recently
from
July 26, 2024 11:20
6d02831 to
8da212c
Compare
Rexicon226
force-pushed
the
riscv
branch
4 times, most recently
from
August 2, 2024 00:31
eb4ce3f to
0764490
Compare
This file contains hidden or 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
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.
i also added in the MIR instruction list
xor