-
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
Arm64/Sve: Implement ConditionalSelect API #100718
Conversation
kunalspathak
commented
Apr 6, 2024
Note regarding the
|
@dotnet/arm64-contrib |
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics |
@@ -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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
||
/// <summary> |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@a74nh - do you mind fixing the tool to generate these alphabetically?
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.
@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.
@@ -4149,7 +4149,16 @@ public new abstract partial class Arm64 : System.Runtime.Intrinsics.Arm.AdvSimd. | |||
public static System.Numerics.Vector<ushort> CreateTrueMaskUInt16([ConstantExpected] SveMaskPattern pattern = SveMaskPattern.All) { throw null; } | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is ever generated by the tooling, it's going to change all this to be done alphabetically, hence the comment above.
Replaced with #100743 |