-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Generator for staged function should be in .source #18838
Comments
I agree. Also, in theory it would be nice to have an actual unspecialized implementation of a generated function in the |
I was a little excited to see (btw if I could insert AST/IR into new methods or get the actual toplevel source from a method, I would find that useful - e.g. we could make Traitor.jl actually useful). |
Understood --- the key feature of this field is that it's what was originally written, albeit converted to IR. We could call the field |
|
cc @vtjnash |
Not directly related to this, but there is a questionable property of the CodeInfo type I didn't notice before: there is no way to uncompress it without having its Of course, the solution to this might involve eliminating the compressed representation. However, even then we still might want per-method constant tables, in which case you'd still need a |
It's also a bit odd that a |
This is already true for other reasons, but we perhaps should still add the backlink. It would be redundant with its lookup, but so are a lot of the fields of
It wouldn't be a terrible idea to duplicate it, since Please let's wait for #17057 first though, since that can complicate these questions quite significantly. And separating the CodeInfo fields out into their own type is one mechanism I've been using to partition the complexity better. (because it means that type inference doesn't change any fields of MethodInstance)
Yes. In theory too, I think this means the |
@Keno: is this really release blocking? |
Yes, this whole data structure needs another look. Right now it may not have enough information for the debugger anymore (the second issue Jeff mentioned above). |
Will fixing this be breaking? If so, this needs to be worked on ASAP |
From my perspective, not fixing this would be breaking, since it is necessary for Gallium to work in v0.6 (stopped working around September 14.) |
@Keno I believe the debugger should be getting a |
I'll have to revisit this. I remember when we tried porting the debugger over initially, there was something missing, but since we thought this would be refactored anyway, I don't think we went into too much detail. |
fix #18838, populate `source` field of generated functions
It doesn't make much sense to me to not have this here. It's what the user wrote, after all, even if you have to look at
isstaged
to properly interpret it.The text was updated successfully, but these errors were encountered: