-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all integer overloads for Avx2.BlendVariable #10679
Comments
If you do it on And there are less obvious ones like Now that the |
Agree, I will investigate it and put here later. Thanks!
Don't you mean eliminating |
Yeah, that might be ideal. I remember seeing the discussions around when generics would be used and when the argument types would be exploded, and while the rules make a lot of sense, there's so much flexibility built into the way the Intel intrinsics are defined with |
One of the proposals here was to partially explode the
I don't think implicit conversions are a good idea, and they aren't supported with some languages (such as F#). |
As for the general proposal. I think it would depend on how confusing it is perceived to pass in a |
I like this idea a lot. It should totally be a thing. Also, what was the call on the naming? I remember seeing a suggestion that it be called Also also, let's say that doesn't make it past API review... If I were to define my own partially exploded
I think it goes back to the target audience for these. You have to assume the user knows what the instruction does, and if the instruction operates on the byte level, I'd know that if I were calling it, regardless of the argument types. |
Provided it called the underlying |
Proposal to simplify |
Now, we only have the
byte/sbyte
overload forAvx2.BlendVariable
since the instruction uses the mask vector as a byte sequence.However,
Avx2.BlendVariable
is very common to use, adding all integer overloads (short/ushort/int/uint/long/ulong
) will significantly improve the user experience.cc @tannergooding @CarolEidt @eerhardt
The text was updated successfully, but these errors were encountered: