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:
Aaron Sinclair committed 2025-11-15 03:35:31 -08:00
1 parent e18baf3106
commit cd89f75c1c
4 files changed
+346 -113

No files matched your search

Binary file not shown.