-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Representation of redirecting factory bodies in Kernel AST #29841
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
Comments
When doing the kernel2kernel constants transformation I've run into this issue, since the redirecting factory constructor's body has a Also If we need to preserve the information in modular compilation outputs, it seems to make sense to have a construct in Kernel IR to represent it (is it e.g. needed for If we decide to do it differently, e.g. by lowering factory constructors to have a body with a tailcall and a hint to not show it in stack frames, then we might not need it. Would be wonderful if we could come up with a solution to fix this issue. |
@stefantsov Could you take a look at implementing this when you get a chance? |
@kmillikin Sure. I plan to start working on it today. |
To support modular compilation, we need a a way to represent redirecting factories, including the unresolved kind. I've mocked it up in Fasta in RedirectingFactoryBody.
See also #29169.
The text was updated successfully, but these errors were encountered: