numba / numba-rvsdg

Numba compatible RVSDG (Regionalized Value State Dependence Graph) utilities.
https://numba-rvsdg.readthedocs.io/
BSD 2-Clause "Simplified" License
18 stars 7 forks source link

enable `scfg.restructure()` #112

Closed esc closed 7 months ago

esc commented 7 months ago

This moves the loop and branch restructuring code from the ByteFlow class to the SCFG class. The ByteFlow class is scheduled for eventual deletion anyway -- so this is a first step in that direction.

This is needed now, such that SCFG generated from Python abstract syntax trees can also be transformed.

esc commented 7 months ago

The change is straightforward code moving and minor modification. The pre-commit hook is complaining about rendering.py though: https://github.com/numba/numba-rvsdg/actions/runs/8706874067/job/23880512661?pr=112#step:5:53

fixed.