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 returning NamedTuples from the JIT #147

Open
t-vi opened this issue Apr 9, 2024 · 0 comments
Open

Handle returning NamedTuples from the JIT #147

t-vi opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed jit

Comments

@t-vi
Copy link
Collaborator

t-vi commented Apr 9, 2024

NamedTuples have (some) support in the interpreter, but to return them from the JIT, we would need some more things:

  • ensure value tracking covers creation (populating the attribute_wrappers) - this is in interpreter,
  • when seeing NamedTuples being returned, add epilogue code to create the NamedTuple from its contents (which are available),

This is nontrivial as it requires return values to be routed through the epilogue, but I don't think that is grave.

This is probably an intermediate to advanced issue for people fond of the JIT / frontend bits.

@t-vi t-vi added enhancement New feature or request help wanted Extra attention is needed jit labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed jit
Projects
None yet
Development

No branches or pull requests

1 participant