-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add trait+funcs for linking Hugrs explicitly by Node (linking 2/4) #2521
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
Open
acl-cqc
wants to merge
52
commits into
main
Choose a base branch
from
acl/insert_link_nodes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
1723b48
Add HugrMut::insert_forest / insert_view_forest, implement insert_hug…
acl-cqc 2e66542
insert_subgraph delegates to insert_forest (copying nodes list)
acl-cqc 02fea73
errors; docs
acl-cqc fdee944
Tests
acl-cqc 0eaf3eb
fix test - edges removed rather than delocalized
acl-cqc 05072b6
Merge remote-tracking branch 'origin/main' into acl/insert_forest
acl-cqc f55c288
More docs/links
acl-cqc 3621a7f
WIP
acl-cqc 0f3883b
Dedup dfg_calling_defn_decl, start
acl-cqc 865fdb8
Implement LinkHugr, split old insert_link_nodes -> check_directives+l…
acl-cqc 54e87a0
Fix test, and note duplication
acl-cqc b522ff1
Common up insertion-checking in tests; expand doc
acl-cqc 5774665
fix doclinks
acl-cqc 7c41f73
Error on overlapping Add::replace; handle Add overlapping w/ UseExist…
acl-cqc e70015f
test multi-replace / replace+add
acl-cqc 7001f9c
fix doc
acl-cqc 698283c
NodeLinkingDirective::replace takes impl IntoIterator
acl-cqc 18e1cf7
Avoid test nondeterminism; clippy
acl-cqc 10778ce
Optimize by turning HashMap into impl IntoIterator, avoid size_hint
acl-cqc 826990d
struct InsertedForest; use InsertForestResult alias more widely
acl-cqc f9eee44
N -> SN
acl-cqc caecc43
Make DoubleCopy contain a named field
acl-cqc bd12196
Revert "Make DoubleCopy contain a named field"
acl-cqc bdc0ff1
Use rstest::fixture
acl-cqc 58dccdd
test tidy
acl-cqc b1c0d2a
add benchmark
acl-cqc 88a4987
lint benchmark and add to criterion group
acl-cqc cb92e0c
comments
acl-cqc a73ce4f
Better benchmarks via iter_batched
acl-cqc 481648e
Always convert to HashMap; update insert_forest_internal; roots->root…
acl-cqc 9a9c325
Do not require HashMap, so insert_view_forest can avoid building one
acl-cqc ec01c36
Separate errors: DoubleCopy => DuplicateNode + SubtreeAlreadyCopied
acl-cqc 8426498
docs
acl-cqc f8bdaa1
Builder docs for #2496
acl-cqc 17a8de4
remove not-yet-existent doclink
acl-cqc 191119f
Improve doc of dfg_calling_defn_decl
acl-cqc a3341df
Merge branch 'acl/insert_forest' into acl/insert_link_Nodes
acl-cqc 351fa78
Rename Builder add_(hugr_=>)view_with_wires_link_nodes
acl-cqc 871e26e
Rename LinkHugr => HugrLinking
acl-cqc ccc57ba
Rename insert_(hugr/from_view)_link_nodes => add_(hugr/view)_link_nodes
acl-cqc f3d0d84
Review suggestions (doc improvements)
acl-cqc 3438e5e
doc: HugrLinking: add _static_ edges between old and inserted nodes
acl-cqc 2a6f33a
Improve docs: module-children, not necessarily funcdefn/decl
acl-cqc 685e19f
insert_view_forest uses iter_batched and recreates host each time
acl-cqc 57e58e2
oops, fix borrow in bench
acl-cqc 6850d9d
Merge remote-tracking branch 'origin/main' into acl/insert_forest
acl-cqc eac8d74
Merge branch 'acl/insert_forest' into acl/insert_link_nodes
acl-cqc 5979bf6
Add ModuleBuilder::add_{hugr,view}_link_nodes
acl-cqc 1a3e37a
ModuleBuilder::add_(hugr/view)_link_nodes => link_(hugr/view)_by_node
acl-cqc cc861fa
HugrMut methods are insert_link_(hugr/view)_by_node
acl-cqc 0de1326
Dataflow builder: add_link_(hugr/view)_by_node_with_wires
acl-cqc 97b3bf1
doclinks
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.