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

Remove usages of K source and location classes #1002

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

Baltoli
Copy link
Contributor

@Baltoli Baltoli commented Mar 1, 2024

Part of: #999

We are currently working on removing the reverse dependency that the LLVM backend has on the K frontend's data structures; this PR takes a step towards that goal by removing the backend's use of the K Source and Location classes. These classes are only ever used in the matching compiler as simple PODs that carry around data, so they can be replaced trivially with Java classes here.

This PR needs a matching change to the K frontend to work, along with appropriate lockstep merging.

Also contains a minor fix in 4b644b0 for an edge case in the exhaustiveness checker for rules with no location; we want to propagate an empty optional here rather than null.

@Baltoli Baltoli changed the title Remove source location Remove usages of K source and location classes Mar 1, 2024
@Baltoli Baltoli marked this pull request as ready for review March 1, 2024 14:38
@rv-jenkins rv-jenkins merged commit 87edd79 into master Mar 1, 2024
7 checks passed
@rv-jenkins rv-jenkins deleted the remove-source-location branch March 1, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants