Skip to content

Move validation before the lowering stage #1349

Open
@mhasel

Description

@mhasel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions