Repository navigation
Closed
Labels
Milestone
Description
During implementation, the naming of the default value arguments changed from what was reviewed. Original API approval was in #98184
This issue should either approve the differences, or they should be rejected and a PR to fix up the code should be raised.
The implemented APIs need changing to match what was approved.
Approved APIs:
namespace System.Runtime.Intrinsics.Arm;
/// VectorT Summary
public abstract partial class Sve : AdvSimd /// Feature: FEAT_SVE Category: mask
{
/// T: sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateBreakAfterMask(Vector<T> totalMask, Vector<T> fromMask); // BRKA // predicated
/// T: sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateBreakBeforeMask(Vector<T> totalMask, Vector<T> fromMask); // BRKB // predicated
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateMaskForNextActiveElement(Vector<T> totalMask, Vector<T> fromMask); // PNEXT
/// T: sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateMaskForFirstActiveElement(Vector<T> totalMask, Vector<T> fromMask); // PFIRST
public static unsafe Vector<T> CreateMaskForNextActiveElement(Vector<T> totalMask, Vector<T> fromMask); // PNEXT
public static unsafe Vector<T> CreateMaskForFirstActiveElement(Vector<T> totalMask, Vector<T> fromMask); // PFIRST
public static unsafe bool TestAnyTrue(Vector<T> mask, Vector<T> rightMask); // PTEST
public static unsafe bool TestFirstTrue(Vector<T> leftMask, Vector<T> rightMask); // PTEST
public static unsafe bool TestLastTrue(Vector<T> leftMask, Vector<T> rightMask); // PTEST
}Currently implemented:
namespace System.Runtime.Intrinsics.Arm;
/// VectorT Summary
public abstract partial class Sve : AdvSimd /// Feature: FEAT_SVE Category: mask
{
/// T: sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateBreakAfterMask(Vector<T> mask, Vector<T> srcMask); // BRKA // predicated
/// T: sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateBreakBeforeMask(Vector<T> mask, Vector<T> srcMask); // BRKB // predicated
/// T: byte, ushort, uint, ulong
public static unsafe Vector<T> CreateMaskForNextActiveElement(Vector<T> mask, Vector<T> srcMask); // PNEXT
/// T: sbyte, short, int, long, byte, ushort, uint, ulong
public static unsafe Vector<T> CreateMaskForFirstActiveElement(Vector<T> mask, Vector<T> srcMask); // PFIRST
public static unsafe Vector<T> CreateMaskForNextActiveElement(Vector<T> totalMask, Vector<T> srcMask); // PNEXT
public static unsafe Vector<T> CreateMaskForFirstActiveElement(Vector<T> totalMask, Vector<T> srcMask); // PFIRST]
public static unsafe bool TestAnyTrue(Vector<T> mask, Vector<T> srcMask); // PTEST
public static unsafe bool TestFirstTrue(Vector<T> mask, Vector<T> srcMask); // PTEST
public static unsafe bool TestLastTrue(Vector<T> mask, Vector<T> srcMask); // PTEST
}
Activity
dotnet-policy-service commentedon May 1, 2025
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics
See info in area-owners.md if you want to be subscribed.
a74nh commentedon May 1, 2025
Looking at the changes, I suspect the reviewed versions (
totalMaskandfromMask) are the better options.[-][API Proposal]: Rename arguments for SVE CreateBreak APIs[/-][+][API Proposal]: Rename arguments for SVE CreateBreak/CreateMask APIs[/+]kunalspathak commentedon May 1, 2025
@tannergooding
tannergooding commentedon May 8, 2025
@kunalspathak, looks like you reviewed the PR that introduced these: #104184
Do you recall why it was changed? Without a good reason, I'd agree with @a74nh and say we should change it back to what was approved. Then this doesn't need to go back to API review.
a74nh commentedon May 9, 2025
I suspect it was implemented using an older version of the auto generated code.
I will Switch the title and description so that it's no longer an API suggestion change
[-][API Proposal]: Rename arguments for SVE CreateBreak/CreateMask APIs[/-][+]Arm64 SVE: Rename arguments for SVE CreateBreak/CreateMask APIs[/+]arm64: Rename CreateBreak/CreateMask args
arm64: Rename CreateBreak/CreateMask args (dotnet#116255)