-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: add comb
dialect
#949
base: main
Are you sure you want to change the base?
Conversation
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
1 similar comment
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
1 similar comment
Alive Statistics: 90 / 93 (3 failed) |
…d all sorrys are solved)
Alive Statistics: 90 / 93 (3 failed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some comments about the way you model replicate
To make, say, | add (w : Nat) (arity : Nat) Which you then pick up in the signature to specify we want | add w arity => List.replicate arity (Ty.bv w) (You might want to specify For the operation semantics, you could fold over the list of argument using the current binary implementations |
This is exactly what we do in LLVM dialect, and so far it's worked out great there, so it feels like the way to go here also! |
I'm not sure quite what you mean by |
Thanks for the comments @alexkeizer! I'll start to fix the variadic implementation and the replicate.
|
Alive Statistics: 90 / 93 (3 failed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me :) Having n
replicate functions is probably the right way to do it too.
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
@alexkeizer @ymherklotz thanks for the review. I've added the |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
Alive Statistics: 90 / 93 (3 failed) |
This PR adds the
comb
dialect.truthTable
operation and wildcard/cases SV semantics are missing, as they will require more infrastructure (and are not that used AFAIU)