Added type deduced v_setall intrinsic#15541
Conversation
|
v_setall_##<short_type_id>(type val) intrinsics are declared the way it is possible to deduce short_type_id from the input value type. So it could be convenient to use uniform named version. |
|
What is about a variant via template? (would help with proper forcing of used types) |
|
Corresponding low-level intrinsics have different names for different types(at least for x86 SIMD) so it looks like it would be necessary to specialize the template for every type. Existing implementation will IMO also force correctness of input type because it will define the output vector type that can't be implicitly casted to another vector type if there is a mismatch. The change make impossible(or essentially harder) to add implicit vector type casting, but I doubt whether we need such casting. |
|
Please add corresponding intrinsic test |
|
@terfendail Could you take a look on this patch: #15839 ? |
|
@terfendail, @alalek Do you have aby progress on the patch? |
|
Replaced by #15839 |
This pullrequest changes
Added type deduced v_setall intrinsic