summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2019-06-06 16:06:22 -0700
committerGitHub <noreply@github.com>2019-06-06 16:06:22 -0700
commit93216920549a0f574694e383d67d6d0ea5a4fed3 (patch)
treea2a003a7ea6be67589ed5e3c1a4ae07c21dced52 /src/System.Private.CoreLib
parent4c82068adb046eee3573984392a0d1e774062ae0 (diff)
downloadcoreclr-93216920549a0f574694e383d67d6d0ea5a4fed3.tar.gz
coreclr-93216920549a0f574694e383d67d6d0ea5a4fed3.tar.bz2
coreclr-93216920549a0f574694e383d67d6d0ea5a4fed3.zip
Marking Vector128<T>.Count and Vector256<T>.Count as [Intrinsic] (#24991)
* Marking Vector128<T>.Count and Vector256<T>.Count as [Intrinsic] * Fixing NI_Vector128_Count and NI_Vector256_Count to use clsHnd when getting the simdSize and baseType * Applying the formatting patch. * Changing some comments to just be "vector element count". * Fixing impBaseIntrinsic to set the baseType so Vector128_Count and Vector256_Count don't return nullptr
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs1
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs
index cdcddcb49e..9f609eabe4 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128_1.cs
@@ -39,6 +39,7 @@ namespace System.Runtime.Intrinsics
/// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
public static int Count
{
+ [Intrinsic]
get
{
ThrowHelper.ThrowForUnsupportedVectorBaseType<T>();
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs
index 2ed5516455..0a9b99347b 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs
@@ -41,6 +41,7 @@ namespace System.Runtime.Intrinsics
/// <exception cref="NotSupportedException">The type of the current instance (<typeparamref name="T" />) is not supported.</exception>
public static int Count
{
+ [Intrinsic]
get
{
ThrowHelper.ThrowForUnsupportedVectorBaseType<T>();