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

Simplify declarations #714

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

kant2002
Copy link
Collaborator

We somehow have 3 types of large IR structures, expressions, block items and declarations. If expression and block items is somewhat simple things, which follow rules, declaration is a thing in it's own which behave as block item, but do not have any lowering, even if they have tree structure. This simplifies declarations a bit, and remove nesting. Place multiple declarations into compound statement.

I'm not sure that this is last refactoring of this area, but at least this is gives idea of what should be done.

We somehow have 3 types of large IR structures, expressions, block items and declarations. If expression and block items is somewhat simple things, which follow rules, declaration is a thing in it's own which behave as block item, but do not have any lowering, even if they have tree structure.
This simplifies declarations a bit, and remove nesting. Place multiple declarations into compound statement.

I'm not sure that this is last refactoring of this area, but at least this is gives idea of what should be done.
Copy link
Owner

@ForNeVeR ForNeVeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ForNeVeR ForNeVeR merged commit 6a38574 into ForNeVeR:main Nov 13, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants