You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that we have mostly all the structured control flow primitives required, except for multi-level breaks (we'll probably have to simulate that by returning sums).
This should probably be implemented in hugr-passes instead of here.
The text was updated successfully, but these errors were encountered:
Transform unstructured control flow into
Conditional
s andTailLoop
s (as much as possible).We may want to start by implementing some simpler algorithms for straight-forward cases, to avoid the unnecessary structure of relooper's output.
See
azakai
's blogpost: https://mozakai.blogspot.com/2012/05/reloop-all-blocks.htmlWe may actually implement the
Stackifier
algorithm instead.relooper
drawbacks vs stackify: https://medium.com/leaningtech/solving-the-structured-control-flow-problem-once-and-for-all-5123117b1ee2Note that we have mostly all the structured control flow primitives required, except for multi-level breaks (we'll probably have to simulate that by returning sums).
This should probably be implemented in
hugr-passes
instead of here.The text was updated successfully, but these errors were encountered: