-
Notifications
You must be signed in to change notification settings - Fork 128
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
Improve initialization: e.g. cir.init_array
and cir.init_struct
ops
#443
Comments
I started to investigate a ways how we can support this opcodes in CIR. And I can't recognize what semantic such opcodes should have.
I can't think of a way to use the
I suppose it should be smth like:
But we obviously can't call the ctor because we don't know the address of element being constructed. In this reason
But this construction looks too complex for lowering in So I can't imagine a way how to implement this opcodes in CIR =( |
For the more simple examples of ctor, I just recently added support for that, see The I'll give more thought to this one but let me know if you have more ideas in the meantime. |
Originally posted by @bcardosolopes in #441 (comment)
The text was updated successfully, but these errors were encountered: