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: allow using instruction handler when simplifying program #395

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

Shadow53
Copy link
Contributor

@Shadow53 Shadow53 commented Sep 4, 2024

Users of quil-rs can use InstructionHandler to override how instructions are associated with frames, but this is not considered by Program::into_simplified. This PR adds a method, InstructionHandler::simplify_program, that uses the frame matching of InstructionHandler to determine which frames to retain in the program.

Copy link

github-actions bot commented Sep 4, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-09-04 21:15 UTC

@Shadow53 Shadow53 merged commit 8fb2cd8 into main Sep 4, 2024
14 checks passed
@Shadow53 Shadow53 deleted the use-instruction-handler-when-simplifying branch September 4, 2024 21:13
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.

2 participants