Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

optimize codegen for match #1323

Open
stylewarning opened this issue Nov 4, 2024 · 0 comments
Open

optimize codegen for match #1323

stylewarning opened this issue Nov 4, 2024 · 0 comments
Labels
codegen Coalton -> Lisp enhancement New feature or request

Comments

@stylewarning
Copy link
Member

we codegen IF when we do a boolean match, but we can go further:

  • match on an enum (use CASE, which will be a jump table)
  • match on simple binding patterns (use TYPECASE)
@stylewarning stylewarning added enhancement New feature or request codegen Coalton -> Lisp labels Nov 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
codegen Coalton -> Lisp enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant