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