Implement match/case statement code generation
- Add _emit_match() using LLVM switch instruction - Handle value patterns and wildcard (case _:) patterns - Each case gets its own basic block with branch to end - Wildcard case becomes default label in switch - All tests passing (30/30) - Tabs.wasm size: 1908 → 3185 bytes
This commit is contained in:
1 parent
e18baf3106
commit
cd89f75c1c
4 files changed
+346
-113
No files matched your search
Binary file not shown.
Reference in new issue
Block a user