Skip to content

Generating IR without dependencies included#15224

Closed
cameel wants to merge 3 commits intodevelopfrom
generating-ir-without-dependencies-included
Closed

Generating IR without dependencies included#15224
cameel wants to merge 3 commits intodevelopfrom
generating-ir-without-dependencies-included

Conversation

@cameel
Copy link
Collaborator

@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
Collaborator 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