Generate match {} statements by merging adjacent MatchVariant trie edges.

This commit is contained in:
Chris Fallin
2021-09-05 17:21:15 -07:00
parent ed4c857082
commit 3ccbaf0f69
3 changed files with 191 additions and 52 deletions

View File

@@ -1,7 +1,3 @@
- Convert series of if-lets from MatchVariants into a match { ... }.
- Should be pretty simple; just need to recognize adjacent edges in
priority-order that are all MatchVariants on the same input.
- Document semantics carefully, especially wrt extractors.
- Verify that priorities work as expected.
- Build out an initial set of bindings for Cranelift LowerCtx with extractors
for instruction info.