-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Intrinsics analyzer and fixes #85481
Merged
davidwrighton
merged 21 commits into
dotnet:main
from
davidwrighton:IntrinsicsAnalyzerAndFixes
May 16, 2023
Merged
Changes from 5 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e1f2f17
Implement analyzer for platform intrinsics use in System.Private.CoreLib
davidwrighton b246bd0
Remove BypassReadyToRunAttribute as it should no longer be needed for…
davidwrighton 35105fb
Document new intrinsic handling behavior and enhance crossgen2 to res…
davidwrighton 59a55e4
Fix build break
davidwrighton 768d1a9
Fix condition noted in code review
davidwrighton 5ac974c
Update analyzer to detect more patterns, and attribute much of System…
davidwrighton cdc8b3f
Add pragmas and attributes to the packed span helpers
davidwrighton a01fd9d
Hah! It works
davidwrighton 5573738
Rename attribute and fix docs
davidwrighton 5134b86
Merge branch 'main' of github.com:dotnet/runtime into IntrinsicsAnaly…
davidwrighton 506f053
Add analyzer tests and fixup issues from merging with main branch
davidwrighton 2e33ae4
Disable tests on Mono due to Mono runtime bug
davidwrighton 8a69798
Handle incorrect namespace for the CompExactlyDependsOnAttribute and …
davidwrighton 919e0c3
Merge branch 'main' of github.com:dotnet/runtime into IntrinsicsAnaly…
davidwrighton 4e413bd
With the analyzer, negative checks are problematic, so re-order some …
davidwrighton 994ff3e
Code review feedback
davidwrighton 8ed51a1
Update src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorIn…
davidwrighton 9442ebe
Update src/libraries/System.Private.CoreLib/tests/IntrinsicsInSystemP…
davidwrighton fba92eb
Update src/libraries/System.Private.CoreLib/gen/IntrinsicsInSystemPri…
davidwrighton fcc38ca
Update IntrinsicsInSystemPrivateCoreLibAnalyzer.cs
davidwrighton 62c5e58
Use auto-implemented get-only property
davidwrighton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I found this example helpful; could we keep it in the crossgen2 section?
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.
The issue is that the example is no longer correct. With the new attribute, the "Unacceptable" code is now legal to use, and the analyzer will ensure that you put the attribute 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.
The unacceptable code is still illegal without an attribute if I understand correctly - I found it helpful in understanding the problem that the attribute solves.