diff options
author | Tanner Gooding <tagoo@outlook.com> | 2019-06-06 16:06:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 16:06:22 -0700 |
commit | 93216920549a0f574694e383d67d6d0ea5a4fed3 (patch) | |
tree | a2a003a7ea6be67589ed5e3c1a4ae07c21dced52 /src/System.Private.CoreLib | |
parent | 4c82068adb046eee3573984392a0d1e774062ae0 (diff) | |
download | coreclr-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.cs | 1 | ||||
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256_1.cs | 1 |
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>(); |