-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Ensure that the new Vector512 related ISAs are covered by ILLink Substitutions #83040
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.Intrinsics; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512BW hardware instructions via intrinsics</summary> | ||
[CLSCompliant(false)] | ||
public abstract class Avx512BW : Avx512F | ||
{ | ||
internal Avx512BW() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
|
||
public new abstract class VL : Avx512F.VL | ||
{ | ||
internal VL() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
|
||
public new abstract class X64 : Avx512F.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512BW hardware instructions via intrinsics</summary> | ||
[Intrinsic] | ||
[CLSCompliant(false)] | ||
public abstract class Avx512BW : Avx512F | ||
{ | ||
internal Avx512BW() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
|
||
[Intrinsic] | ||
public new abstract class VL : Avx512F.VL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do the public nested types need doc comments? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but it looks like "all" of them are currently missing for I'll log an issue and gets this handled in a follow up PR later tonight. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
{ | ||
internal VL() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
|
||
[Intrinsic] | ||
public new abstract class X64 : Avx512F.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.Intrinsics; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512CD hardware instructions via intrinsics</summary> | ||
[CLSCompliant(false)] | ||
public abstract class Avx512CD : Avx512F | ||
{ | ||
internal Avx512CD() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
|
||
public new abstract class VL : Avx512F.VL | ||
{ | ||
internal VL() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
|
||
public new abstract class X64 : Avx512F.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512CD hardware instructions via intrinsics</summary> | ||
[Intrinsic] | ||
[CLSCompliant(false)] | ||
public abstract class Avx512CD : Avx512F | ||
{ | ||
internal Avx512CD() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
|
||
[Intrinsic] | ||
public new abstract class VL : Avx512F.VL | ||
{ | ||
internal VL() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
|
||
[Intrinsic] | ||
public new abstract class X64 : Avx512F.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.Intrinsics; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512DQ hardware instructions via intrinsics</summary> | ||
[CLSCompliant(false)] | ||
public abstract class Avx512DQ : Avx512F | ||
{ | ||
internal Avx512DQ() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
|
||
public new abstract class VL : Avx512F.VL | ||
{ | ||
internal VL() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
|
||
public new abstract class X64 : Avx512F.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512DQ hardware instructions via intrinsics</summary> | ||
[Intrinsic] | ||
[CLSCompliant(false)] | ||
public abstract class Avx512DQ : Avx512F | ||
{ | ||
internal Avx512DQ() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
|
||
[Intrinsic] | ||
public new abstract class VL : Avx512F.VL | ||
{ | ||
internal VL() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
|
||
[Intrinsic] | ||
public new abstract class X64 : Avx512F.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.Intrinsics; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512F hardware instructions via intrinsics</summary> | ||
[CLSCompliant(false)] | ||
public abstract class Avx512F : Avx2 | ||
{ | ||
internal Avx512F() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
|
||
public abstract class VL | ||
{ | ||
internal VL() { } | ||
|
||
public static bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
|
||
public new abstract class X64 : Avx2.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { [Intrinsic] get { return false; } } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace System.Runtime.Intrinsics.X86 | ||
{ | ||
/// <summary>This class provides access to X86 AVX512F hardware instructions via intrinsics</summary> | ||
[Intrinsic] | ||
[CLSCompliant(false)] | ||
public abstract class Avx512F : Avx2 | ||
{ | ||
internal Avx512F() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
|
||
[Intrinsic] | ||
public abstract class VL | ||
{ | ||
internal VL() { } | ||
|
||
public static bool IsSupported { get => IsSupported; } | ||
} | ||
|
||
[Intrinsic] | ||
public new abstract class X64 : Avx2.X64 | ||
{ | ||
internal X64() { } | ||
|
||
public static new bool IsSupported { get => IsSupported; } | ||
} | ||
} | ||
} |
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.
Why do we need ILLink.Substitution entries for these when we also have the
.PlatformNotSupported.cs
versions that just returnfalse
? This xml file seems to be included in the same condition as when those .cs files are used.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.
Unsure actually. Maybe some legacy thing from back when they weren't guaranteed false?
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.
It looks like I originally did it in ee12b54, but looking back I'm not sure it is needed. Since we are just following existing convention here, let's not block this PR on it.
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.
#83164