-
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
Apply ConstantExpected attribute in runtime repo APIs as needed #63426
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsWith #62436 we added a new ConstantExpectedAttribute to express that only constant value is expected for a parameter. Now we need to apply that parameter to the APIs parameters needs it. This issue is for tracking the APIs needs this attribute As far as I know, we need to add this to the runtime/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx2.cs Lines 2137 to 2162 in 4427c56
@GrabYourPitchforks @tannergooding please add the other APIs/parameters needs the attribute. Originally posted by @stephentoub in #62436 (comment)
|
If I'm not mistaken the intrinsic that has imm8 would need the attribute |
I have looked into this as part of testing the analyzer in dotnet/roslyn-analyzers#5766 what I have at the moment https://github.com/wzchua/runtime/commits/constantexpected |
@tannergooding please check @wzchua's commits that applying the attributes, or do you want them to raise a PR? Probably that is easier for review and discuss if needed |
With #62436 we added a new ConstantExpectedAttribute to express that only constant value is expected for a parameter. Now we need to apply that parameter to the APIs parameters needs it. This issue is for tracking the APIs needs this attribute
As far as I know, we need to add this to the
byte count
parameter for the following APIs:runtime/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx2.cs
Lines 2137 to 2162 in 4427c56
@GrabYourPitchforks @tannergooding please add the other APIs/parameters needs the attribute.
See @stephentoub's comment in #62436 (comment)
The text was updated successfully, but these errors were encountered: