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

Make SymbolicVariable part of the core IR. #4840

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Jul 30, 2024

solver.h is part of the IR folder and uses IR::SymbolicVariable. But IR::SymbolicVariable is only usable when the p4tools back end is enabled. Move IR::SymbolicVariable to the top-level IR.

We can also move solver.h into the p4tools folder again. I do not think it is used by other back ends.

@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Jul 30, 2024
@fruffy fruffy requested review from asl, vlstill and ChrisDodd July 30, 2024 21:11
@asl
Copy link
Contributor

asl commented Jul 30, 2024

I guess the main question is: what is the expected usage of solver.h outside of p4tools? Is there any evidence that there might be some other implementation for this interface?

Copy link
Contributor

@vlstill vlstill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either this or pushing solver to p4tools works for me. I could see some use for solver in some hardcore optimizations maybe, but it is probably a stretch.

@fruffy
Copy link
Collaborator Author

fruffy commented Jul 31, 2024

I guess the main question is: what is the expected usage of solver.h outside of p4tools? Is there any evidence that there might be some other implementation for this interface?

Moving it to the ir folder was part of a PR review request. I do not think anyone has picked it up.

Signed-off-by: fruffy <fruffy@nyu.edu>
@fruffy fruffy added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit 696ff1b Aug 1, 2024
17 checks passed
@fruffy fruffy deleted the fruffy/symbolic_variable branch August 1, 2024 09:59
github-merge-queue bot pushed a commit that referenced this pull request Aug 1, 2024
…4768)

* Make SymbolicVariable part of the core IR. (#4840)

Signed-off-by: fruffy <fruffy@nyu.edu>

* Replace boost::container::flat_map with absl::btree_map in P4Tools.

Signed-off-by: fruffy <fruffy@nyu.edu>

* Review comments.

Signed-off-by: fruffy <fruffy@nyu.edu>

* Rebase on solver move PR.

Signed-off-by: fruffy <fruffy@nyu.edu>

---------

Signed-off-by: fruffy <fruffy@nyu.edu>
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.

4 participants