Skip to content
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

Feature request: RegionVisitor and RegionTransformer #63

Open
Tracked by #72
sklam opened this issue Jun 12, 2023 · 0 comments
Open
Tracked by #72

Feature request: RegionVisitor and RegionTransformer #63

sklam opened this issue Jun 12, 2023 · 0 comments

Comments

@sklam
Copy link
Member

sklam commented Jun 12, 2023

Sample implementation used in Numba RVSDG frontend: https://github.com/numba/numba/blob/edfc1b95bf633abb346fbbe265acf2bb20560a6e/numba/core/frontend2/regionpasses.py

RegionVisitor and RegionTransformers enables a hierarchical thinking for compiler pass implementation. This simplifies compiler passes to just 3 abstract methods:

  • visit_block(): handle a purely data-dependence block in RVSDG.
  • visit_loop(): handle a loop region.
  • visit_switch(): handle a switch region.
@sklam sklam changed the title Feature request: RegionVisitor and RegionTransformers Feature request: RegionVisitor and RegionTransformer Jun 12, 2023
@kc611 kc611 mentioned this issue Jun 19, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant