-
Notifications
You must be signed in to change notification settings - Fork 1
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
rewriter: support the 6 x86 param regs for post condition functions #471
Conversation
ced7990
to
fa355e9
Compare
Before either of these things I think we should explore what the checks themselves will look like. So trying out ways of allowing a developer to opt-in to simple checks or providing a way to specify their own more specific checks. In general I'd like us to have a more clear picture of what this looks like/maybe have an "end-to-end" demo or test before fixing the details like passing in arguments correctly for all possible function signatures. The same goes for return values although we may want to handle that earlier to support checks that are conditional on the return value. |
fa355e9
to
54dbe7e
Compare
8a8db26
to
94bbdb3
Compare
54dbe7e
to
b24b1bc
Compare
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.
left some minor comments, but codegen changes LGTM
b24b1bc
to
d1ce1e0
Compare
94bbdb3
to
82a087d
Compare
d1ce1e0
to
40bbda3
Compare
This is done by pushing the param regs onto the stack in the prologue (if there's a post condition function), and then popping them before we call the post condition function. Next we'll work on supporting more than the 6 param regs, as well as passing the return value.
…ich isn't supported yet This is a fatal error (ICE) since the caller can just set `--no-enable-dav1d_get_picture-post-condition`.
…g `pushq`s from `emit_prologue`
1dcaf11
to
5eaa9bc
Compare
This is done by pushing the param regs onto the stack in the prologue (if there's a post condition function), and then popping them before we call the post condition function.
Next we'll work on supporting more than the 6 param regs, as well as passing the return value.