Skip to content
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

Handle tail calls #335

Closed
danmatichuk opened this issue Sep 23, 2022 · 0 comments
Closed

Handle tail calls #335

danmatichuk opened this issue Sep 23, 2022 · 0 comments
Labels
stale Review - close as 'wontfix' or integrate into other ticket

Comments

@danmatichuk
Copy link
Collaborator

Currently an exception is thrown in the case where a function call does not have a statically-known return point. This happens for tail calls, when a function is jumped to directly without setting up a new stack frame.

Without a return point, we need to handle this by instead considering the return of the tail call to be the return point of the calling function. This is fairly straightforward to represent in the PairGraph, as it just involves adding some additional return edges.

Some additional consideration may be needed for how to handle transforming the stack frame variable, however.

@thebendavis thebendavis added the stale Review - close as 'wontfix' or integrate into other ticket label May 31, 2024
@thebendavis thebendavis closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Review - close as 'wontfix' or integrate into other ticket
Projects
None yet
Development

No branches or pull requests

2 participants