-
Notifications
You must be signed in to change notification settings - Fork 11
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
Closure Conversion - index out of bounds #119
Comments
Example file links to 404. Do you have an update? |
Here is the file from when the issue was opened: Here is the file currently: (Nothing big regarding this issue should have changed) |
I have to double-check with @f-fries but I think the problem is that the whole clos dialect assumes that the first argument is a |
This is indeed the problem. I opened a new issue #126 as it really is an enhancement and closing this here for now. |
Therefore, one needs a pass that reorders mem to the front and propagates it to functions without mem (higher order arguments and others) in order to generate the code. |
I think it makes everyone's life easier if we can just assume that the first argument is |
It might still be a good idea to uniformly add |
The error
is triggered in some examples when trying to use closure conversion.
Example Thorin file:
https://github.com/NeuralCoder3/thorin2/blob/autodiff/enzyme/brussel.thorin
Commit 84af1a0
Stacktrace
Possibly related to #117, #118
The text was updated successfully, but these errors were encountered: