Skip to content

Add cf ("control-flow") module and split cfg into cf::unstructured vs cf::structurize. #26

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eddyb
Copy link
Collaborator

@eddyb eddyb commented Aug 11, 2025

Similar to (and currently based on):

The only non-trivial change is splitting cfg into two modules (cf::unstructured for the CFG definition itself, and cf::structurize for the structurization algorithm).

Apart from that, cfgssa, SelectionKind and ExitInvocationKind are all moved to cf.


This refactor is less important for now, but future work will likely add new modules in cf, especially for interprocedural passes (e.g. inlining, emulating exceptional control-flow and recursive calls, etc.).

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.

1 participant