diff options
author | Tanner Gooding <tagoo@outlook.com> | 2018-12-21 13:13:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 13:13:21 -0800 |
commit | 61c8abe982bc1936112ea843524b0921e373f40f (patch) | |
tree | c57fe98c865b1dc57fb1ce14bc08ff3cc9b2cb09 /src/vm/methodtablebuilder.cpp | |
parent | a9ceb1534e5a205bc1b56d0c097595ef8c2ff7f6 (diff) | |
download | coreclr-61c8abe982bc1936112ea843524b0921e373f40f.tar.gz coreclr-61c8abe982bc1936112ea843524b0921e373f40f.tar.bz2 coreclr-61c8abe982bc1936112ea843524b0921e373f40f.zip |
Ensure that the S.N.Vector methods are marked as [Intrinsic] and that the attribute is respected by the runtime (#21601)
* Updating the SIMD intrinsics to check for the `[Intrinsic]` attribute
* Ensure that the existing Vector/Vector<T> intrinsic methods are marked as such.
* Fixing Vector<T>.DotProduct and Vector.AndNot to be treated as intrinsic
* Fixing `SIMDIntrinsicBitwiseAndNot` to swap the operands for XARCH
Diffstat (limited to 'src/vm/methodtablebuilder.cpp')
-rw-r--r-- | src/vm/methodtablebuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/methodtablebuilder.cpp b/src/vm/methodtablebuilder.cpp index 3e30f385aa..c33c2db564 100644 --- a/src/vm/methodtablebuilder.cpp +++ b/src/vm/methodtablebuilder.cpp @@ -5120,7 +5120,7 @@ MethodTableBuilder::InitNewMethodDesc( } // Check for methods marked as [Intrinsic] - if (GetModule()->IsSystem()) + if (GetModule()->IsSystem() || GetAssembly()->IsSIMDVectorAssembly()) { HRESULT hr = GetMDImport()->GetCustomAttributeByName(pMethod->GetMethodSignature().GetToken(), g_CompilerServicesIntrinsicAttribute, |