Skip to content

Pass around "sub_cfg" in Cfg_selectgen #3792

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

Merged

Conversation

mshinwell
Copy link
Collaborator

@mshinwell mshinwell commented Apr 2, 2025

This slightly bizarre PR should be a no-op. It adds a new sub_cfg parameter which, in #3782, will propagate the sub-cfg state which is currently held in the current_sub_cfg instance variable. This reduces the diff to #3782.

The next step will be to actually use these parameters to pass around the sub-cfg values even in the version with objects, to further reduce the diff.

(It was unfortunately necessary to update some method signatures in this PR; these changes will be deleted in #3782.)

Includes #3789

@mshinwell mshinwell enabled auto-merge (squash) April 2, 2025 14:37
@mshinwell mshinwell merged commit 77e4f82 into ocaml-flambda:main Apr 2, 2025
26 checks passed
gretay-js pushed a commit to gretay-js/flambda-backend that referenced this pull request Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants