Skip to content

Commit

Permalink
[wasm] Make PackedSimd.Shuffle internal (#89401)
Browse files Browse the repository at this point in the history
We don't want it public until we fix the llvm/aot compiler crash
  • Loading branch information
radekdoulik authored Jul 25, 2023
1 parent 2b834f5 commit 6679062
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public abstract class PackedSimd
public static Vector128<nint> ReplaceScalar(Vector128<nint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, nint value) { throw new PlatformNotSupportedException(); }
public static Vector128<nuint> ReplaceScalar(Vector128<nuint> vector, [ConstantExpected(Max = (byte)(3))] byte imm, nuint value) { throw new PlatformNotSupportedException(); }

public static Vector128<sbyte> Shuffle(Vector128<sbyte> lower, Vector128<sbyte> upper, Vector128<sbyte> indices) { throw new PlatformNotSupportedException(); }
public static Vector128<byte> Shuffle(Vector128<byte> lower, Vector128<byte> upper, Vector128<byte> indices) { throw new PlatformNotSupportedException(); }
internal static Vector128<sbyte> Shuffle(Vector128<sbyte> lower, Vector128<sbyte> upper, Vector128<sbyte> indices) { throw new PlatformNotSupportedException(); }
internal static Vector128<byte> Shuffle(Vector128<byte> lower, Vector128<byte> upper, Vector128<byte> indices) { throw new PlatformNotSupportedException(); }

public static Vector128<sbyte> Swizzle(Vector128<sbyte> vector, Vector128<sbyte> indices) { throw new PlatformNotSupportedException(); }
public static Vector128<byte> Swizzle(Vector128<byte> vector, Vector128<byte> indices) { throw new PlatformNotSupportedException(); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ public abstract class PackedSimd
/// i8x16.shuffle
/// </summary>
[Intrinsic]
public static Vector128<sbyte> Shuffle(Vector128<sbyte> lower, Vector128<sbyte> upper, Vector128<sbyte> indices) => Shuffle(lower, upper, indices);
internal static Vector128<sbyte> Shuffle(Vector128<sbyte> lower, Vector128<sbyte> upper, Vector128<sbyte> indices) => Shuffle(lower, upper, indices);
/// <summary>
/// i8x16.shuffle
/// </summary>
[Intrinsic]
public static Vector128<byte> Shuffle(Vector128<byte> lower, Vector128<byte> upper, Vector128<byte> indices) => Shuffle(lower, upper, indices);
internal static Vector128<byte> Shuffle(Vector128<byte> lower, Vector128<byte> upper, Vector128<byte> indices) => Shuffle(lower, upper, indices);

/// <summary>
/// i8x16.swizzle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6440,8 +6440,6 @@ public abstract partial class PackedSimd
public static Vector128<double> ReplaceScalar(Vector128<double> vector, [System.Diagnostics.CodeAnalysis.ConstantExpectedAttribute(Max = (byte)(1))] byte imm, double value) { throw null; } // takes ImmLaneIdx2
public static Vector128<nint> ReplaceScalar(Vector128<nint> vector, [System.Diagnostics.CodeAnalysis.ConstantExpectedAttribute(Max = (byte)(3))] byte imm, nint value) { throw null; }
public static Vector128<nuint> ReplaceScalar(Vector128<nuint> vector, [System.Diagnostics.CodeAnalysis.ConstantExpectedAttribute(Max = (byte)(3))] byte imm, nuint value) { throw null; }
public static Vector128<sbyte> Shuffle(Vector128<sbyte> lower, Vector128<sbyte> upper, Vector128<sbyte> indices) { throw null; }
public static Vector128<byte> Shuffle(Vector128<byte> lower, Vector128<byte> upper, Vector128<byte> indices) { throw null; }
public static Vector128<sbyte> Swizzle(Vector128<sbyte> vector, Vector128<sbyte> indices) { throw null; }
public static Vector128<byte> Swizzle(Vector128<byte> vector, Vector128<byte> indices) { throw null; }
public static Vector128<sbyte> Add(Vector128<sbyte> left, Vector128<sbyte> right) { throw null; }
Expand Down

0 comments on commit 6679062

Please sign in to comment.