Skip to content
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

feat: support perspective name qualification #504

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

DavePearce
Copy link
Collaborator

No description provided.

This adds some initial tests for perspective qualified notation.
This updates the implementation to use the notion of a "path" rather
than a trio of (module, perspective, name).  This should future proof us
for recursive submodules, and also simply helps ensure things actually
make sense.
This replaces these two constructs with a single new construct (called,
helpfully, `ModuleScope`).  The difference is that the new construct can
describe nested trees, thus making it suitable for handling perspectives
(and later submodules).

At this stage, register allocation is now working again with
perspectives.  I've chosen to retain backwards compatibility in terms of
naming with the original corset.  The issue is around the naming of
registers which arise from coalescing perspective columns.  The names
currently do not include the perspective name, and this means they can
potentially clash.  However, clashing is not a critical issue at this
time, since it will always result in the generated Trace.java file
containing a syntax error.
@DavePearce DavePearce linked an issue Jan 8, 2025 that may be closed by this pull request
@DavePearce DavePearce merged commit 7ab511b into main Jan 8, 2025
2 checks passed
@DavePearce DavePearce deleted the 501-feat-support-perspective-name-qualification branch January 8, 2025 21:28
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.

feat: support perspective name qualification
1 participant