Uh oh!
There was an error while loading. Please reload this page.
Arm64/Sve: Implement ConditionalSelect API - #100718
Conversation
kunalspathak
commented
Apr 6, 2024

ghost
commented
Apr 6, 2024
Note regarding the |
kunalspathak
commented
Apr 6, 2024
@dotnet/arm64-contrib |
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics |
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,362 @@ | |||
| // Licensed to the .NET Foundation under one or more agreements. | |||
| // The .NET Foundation licenses this file to you under the MIT license. | |||
There was a problem hiding this comment.
Is this template based on an existing template?
Can we just use a generic 3 op template here? I don't think I see anthing specific to conditionalselect
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| /// ConditionalSelect : Conditionally select elements | ||
| /// <summary> |
There was a problem hiding this comment.
nit: It's preferred to order these "alphabetically" as well, since that's what tooling will do in various places.
This is done based on the type name, not the language keyword:
byte(Byte),double(Double),short(Int16),int(Int32),long(Int64),nint(IntPtr),sbyte(SByte),float(Single),ushort(UInt16),uint(UInt32),ulong(UInt64), nuint (UIntPtr)
There was a problem hiding this comment.
@a74nh - do you mind fixing the tool to generate these alphabetically?
There was a problem hiding this comment.
@a74nh - do you mind fixing the tool to generate these alphabetically?
Done. The branch with the autogenerated files should now be in order for all the .cs files.
| public static System.Numerics.Vector<uint> CreateTrueMaskUInt32([ConstantExpected] SveMaskPattern pattern = SveMaskPattern.All) { throw null; } | ||
| public static System.Numerics.Vector<ulong> CreateTrueMaskUInt64([ConstantExpected] SveMaskPattern pattern = SveMaskPattern.All) { throw null; } | ||
| public static System.Numerics.Vector<sbyte> ConditionalSelect(System.Numerics.Vector<sbyte> mask, System.Numerics.Vector<sbyte> left, System.Numerics.Vector<sbyte> right) { throw null; } |
There was a problem hiding this comment.
If this is ever generated by the tooling, it's going to change all this to be done alphabetically, hence the comment above.
kunalspathak
commented
Apr 24, 2024
Replaced with #100743 |