-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: BasicBlockExits should not be
OpTag::DataflowParent
(#1409)
The optags for basic blocks where defined as ```mermaid graph TD classDef transparent fill:#0000,stroke:#0000 a[...]:::transparent-->DataflowParent b[...]:::transparent-->ControlFlowChild DataflowParent --> BasicBlock ControlFlowChild --> BasicBlock BasicBlock --> BasicBlockExit ``` notice that `BasicBlockExit` was a descendant from `DataflowParent`. This caused errors on code that checked for the tag, such as the [`force_order` pass](https://github.com/CQCL/hugr/blob/e485a23e0cb73b0070e5d6f3374f6de16f545d04/hugr-passes/src/force_order.rs#L58-L59). This PR changes the hierarchy to ```mermaid graph TD classDef transparent fill:#0000,stroke:#0000 a[...]:::transparent-->DataflowParent b[...]:::transparent-->ControlFlowChild DataflowParent --> DataflowBlock ControlFlowChild --> BasicBlockExit ControlFlowChild --> DataflowBlock ``` Closes #1408 BREAKING CHANGE: Removed `OpTag::BasicBlock`, replaced with `OpTag::DataflowBlock` and `OpTag::ControlFlowChild` --------- Co-authored-by: Seyon Sivarajah <[email protected]>
- Loading branch information
Showing
6 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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