Skip to content

Build the nested IR on the frontend.#1203

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_930927480
Open

Build the nested IR on the frontend.#1203
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_930927480

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 12, 2026

Copy link
Copy Markdown

Build the nested IR on the frontend.

We restructure the IR so namespaces and records can contain other items. This has several consequences:

  • To support forward-declaring and break circular dependencies (Item -> Namespace/Record -> Item), Item is now a struct inheriting from std::variant.
  • Nested items are held via std::shared_ptr over std::unique_ptr to preserve copy constructors during this transition, and to maintain support for certain things like redeclarations.

@google-cla

google-cla Bot commented Jun 12, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

We restructure the IR so namespaces and records can contain other items. This has several consequences:
* To support forward-declaring and break circular dependencies (Item -> Namespace/Record -> Item), `Item` is now a struct inheriting from `std::variant`.
* Nested items are held via `std::shared_ptr` over `std::unique_ptr` to preserve copy constructors during this transition, and to maintain support for certain things like redeclarations.

PiperOrigin-RevId: 930927480
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.

0 participants