Skip to content

Generating IR without dependencies included #15224

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

Closed
wants to merge 3 commits into from

Conversation

cameel
Copy link
Member

@cameel cameel commented Jun 26, 2024

The first part of refactor for #15179.

Introduces ObjectSource object that can store partial IR output (without the sources of dependent contracts). Then makes IRGenerator output it. Finally CompilerStack puts it together into a complete IR source file.

Status

Works but still needs some tweaks.

It compiles and gives the same results as the original codegen, but I want to do some final changes to the structure and also fill in small things that I skipped on the first pass (constructors, docstrings, etc.). The remaining stuff is marked with TMP notes.

The next step will be passing ObjectSource directly to YulStack and making it handle incomplete Objects. This will make the compiler reuse optimized IR

@cameel cameel self-assigned this Jun 26, 2024
@cameel cameel force-pushed the generating-ir-without-dependencies-included branch from c4876e5 to 9399332 Compare June 26, 2024 12:34
@cameel cameel force-pushed the generating-ir-without-dependencies-included branch from 9399332 to e95e533 Compare July 1, 2024 04:39
@cameel
Copy link
Member Author

cameel commented Jul 1, 2024

Closing in favor of #15229.

@cameel cameel closed this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant