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

Collect and flatten local struct decls #3903

Merged
merged 3 commits into from
Feb 23, 2023

Conversation

kamleshbhalui
Copy link
Contributor

This PR collect all local declarations which are struct type and move it to the metadata struct and

replace all it's uses with meta.(meta is param name)
call flattenStruct pass to flatten the struct decl in metadata struct and replace all it's uses

@usha1830 usha1830 merged commit 3e9bf6b into p4lang:main Feb 23, 2023
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