Skip to content

Commit

Permalink
Cleanup apply_deltas (#1464)
Browse files Browse the repository at this point in the history
Next step in cleanup of pattern-matcher:

* Each rewrite-transformation is applied immediately when it is
identified (since the IR now allows us to do this).
* Eliminate the extra checks to avoid overlapping matches (because of
above)
* Use a structured representation of the delta
* Enable function constructing the replacement to return None (failure
of rewrite)
* Cleanup MatchResult
* Other naming cleanup

TODO:
* Consider extending delta representation to capture old/new
output-values

---------

Co-authored-by: Ti-Tai Wang <[email protected]>
Co-authored-by: Justin Chu <[email protected]>
  • Loading branch information
3 people authored Apr 26, 2024
1 parent 997beb2 commit 8dba367
Showing 1 changed file with 105 additions and 143 deletions.
Loading

0 comments on commit 8dba367

Please sign in to comment.