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

Move validation before the lowering stage #1349

Open
mhasel opened this issue Oct 24, 2024 · 0 comments
Open

Move validation before the lowering stage #1349

mhasel opened this issue Oct 24, 2024 · 0 comments

Comments

@mhasel
Copy link
Member

mhasel commented Oct 24, 2024

Moving the validation step before lowering the user-written AST would remove the need for multiple safe-guards in the lowering-stage. Additionally, it would ensure only user-written code is validated. The drawback of this is that it is no longer possible to call the generated init-functions in code directly, since at the time of validation they cannot be resolved - this is problematic when not working with a runtime.

Since we are working on eliminating the need for calling init-functions manually by adding them to the .init_array, we could re-evaluate the order of execution of these pipeline-stages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant