-
Notifications
You must be signed in to change notification settings - Fork 13
feat: Normalize CFGs #2591
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
Merged
feat: Normalize CFGs #2591
Changes from 41 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
b9e2af9
Generalize InlineDFG to any HugrNode
acl-cqc e39db0b
Generalize merge_bbs to any HugrNode
acl-cqc fbfa4de
factor out mk_rep2
acl-cqc 26e3668
Option -> parametrize
acl-cqc a571810
factor out add_unpack
acl-cqc 4777809
Add normalize_cfgs and error/result enums, deprecate merge_basic_blocks
acl-cqc d5ae400
Combine two entry-elisions, plus some missing edges/ports; revert mk_…
acl-cqc c4de50a
Some fixes, docs
acl-cqc ad58ea3
Attempt first test == elision. Resulting structure is a PITA to inspect
acl-cqc 43ecfba
Do elision as separate case, w/ take_inputs
acl-cqc 271fe8a
Rename cfg->h, outline cfg_node
acl-cqc 80c31a9
Test adding some unreachable blocks
acl-cqc 02d39eb
Inline unary_unit_sum, sort out imports
acl-cqc 9242b4c
Test removing entry block
acl-cqc 6f29698
fix test (and business logic)
acl-cqc 1d4780b
update numbers of ports
acl-cqc 4a9de85
Test removing block before exit
acl-cqc 32f5e32
rename add_unpack => wire_unpack_first
acl-cqc 6f9a7ae
common up unpack_before_output (via an extra clone of a typerow)
acl-cqc 6f5e595
simplify test checks using strings
acl-cqc 3251918
Convert triple-BB test to use normalize_cfgs
acl-cqc 4fa1f40
elide_cfg only tests w/ unreachable entry-predecessor
acl-cqc 3593a66
docs
acl-cqc 6ad9ff4
InlineDFG defaults to Node
acl-cqc d60928f
fmt
acl-cqc d89a65f
Generalize normalize_cfg to any node type
acl-cqc 8f44608
WIP test on nested cfg
acl-cqc 476e97f
test result, validate, test structure; fix entrypoint
acl-cqc 3830caf
Test predicates in right place and followed by unpack.
acl-cqc 28032a9
comment CFGToDFG
acl-cqc 7ebc9f8
comments
acl-cqc ea4d27f
Avoid error if we process CFGs in wrong order
acl-cqc 33aada6
remove old debug
acl-cqc 317b596
Keep entry block stuff in a DFG
acl-cqc 6e0a897
comments requested in review
acl-cqc 3737f01
allow->expect, fmt
acl-cqc 3050976
Split apart normalize_cfg.rs, taking all tests with it
acl-cqc c2af7cb
Revert "Split apart normalize_cfg.rs, taking all tests with it"
acl-cqc 9d617b9
Rename module, add deprecated mod merge_bbs with just re-export
acl-cqc ec0e2f6
fmt
acl-cqc 33086a5
Merge remote-tracking branch 'origin/main' into acl/norm_cfg
acl-cqc dedd861
common up optype_mut's
acl-cqc 683bcfe
check Entry has no preds even if succ == exit; remove test
acl-cqc 476d276
clippy: lifetimes needless after all?
acl-cqc 4006171
fixup! check Entry
acl-cqc d92aa25
Report preserved exit_dfg/entry_dfg
acl-cqc e8582f6
rename module normalize_cfg{=>s}
acl-cqc c41411c
report num_merged by separating merge_basic_blocks
acl-cqc 2f92e90
docs
acl-cqc 34491eb
Ooops, version number
acl-cqc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.