Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ChrisDodd
Copy link
Contributor

Extending array support to allow arrays of extern instances.

@ChrisDodd ChrisDodd force-pushed the cdodd-externarray branch from 603b698 to 764e40f Compare July 1, 2025 23:32
@ChrisDodd ChrisDodd requested review from asl and fruffy July 2, 2025 22:02
@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Jul 4, 2025
@fruffy
Copy link
Collaborator

fruffy commented Jul 4, 2025

I haven't kept track, is this something that is already part of the spec or do we have a related spec issue? Is this an alternative solution to #5330?

@ChrisDodd
Copy link
Contributor Author

ChrisDodd commented Jul 5, 2025

The array change to the spec has not yet been pulled in (p4lang/p4-spec#1360), but it includes an allowance for arrays of extern instances (for architectures that want to support it). This is orthogonal to #5330, though necessary to support an alternative using (arrays of) externs with implicit read/assign methods. (so in that sense it is an alternative)

@ChrisDodd
Copy link
Contributor Author

@jafingerhut @vgurevich @fruffy @asl Anyone have any further comments on this? Any objections?

@ChrisDodd ChrisDodd force-pushed the cdodd-externarray branch 2 times, most recently from 6970e59 to 3c2ad82 Compare August 11, 2025 22:02
@ChrisDodd
Copy link
Contributor Author

@fruffy @jafingerhut @jonathan-dilorenzo This PR has now been hanging out waiting for approval for 3 months. Per discussions in the LDWG it would seem to be ok.

@fruffy
Copy link
Collaborator

fruffy commented Sep 30, 2025

Approving since there have not been any objections within this time frame.

@ChrisDodd ChrisDodd added this pull request to the merge queue Sep 30, 2025
Merged via the queue into p4lang:main with commit 9d17f37 Sep 30, 2025
18 of 19 checks passed
@ChrisDodd ChrisDodd deleted the cdodd-externarray branch September 30, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Topics concerning the core segments of the compiler (frontend, midend, parser)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants