-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hugr-py): Allow defining functions, consts, and aliases inside D…
…FGs (#1394) Move `define_function` and `add_alias_defn` from `Module` to a common root for both it and `DFG`. Move both `add_const` definitions to that common base. I had to move `Function` to `dfg.py` due to circular deps, but I added a reexport to avoid breaking changes.
- Loading branch information
Showing
2 changed files
with
88 additions
and
89 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