-
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
JIT: Add GT_SWIFT_ERROR_RET to represent loading error register upon return #100692
Merged
amanasifkhalid
merged 29 commits into
dotnet:main
from
amanasifkhalid:swift-error-reg-ret
Apr 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
a9646c1
Add GT_SWIFT_ERROR_RET
amanasifkhalid b328337
Cleanup
amanasifkhalid 63eb15c
Style
amanasifkhalid 674d8f1
Style; comments
amanasifkhalid 7d2e8fa
Binop implementation
amanasifkhalid a342e00
Update comment
amanasifkhalid 6e50ea7
Merge from main
amanasifkhalid aa8c83c
Comments
amanasifkhalid 9e310ec
Style
amanasifkhalid 15d39bf
Add GetReturnValue helper
amanasifkhalid 873e15a
Handle GT_SWIFT_ERROR_RET in LSRA
amanasifkhalid 5d96892
Overzealous opt
amanasifkhalid 24e8d0d
Feedback
amanasifkhalid bf186b7
Store error to local during return merging
amanasifkhalid c381c48
Handle GT_SWIFT_ERROR_RET in morph
amanasifkhalid 70a69d7
Move GT_SWIFT_ERROR_RET creation to phase
amanasifkhalid de4457b
Handle remaining GT_RETURN-specific code
amanasifkhalid 7096e23
Style
amanasifkhalid 927a55e
Add comment
amanasifkhalid 848704b
Remove ifdef
amanasifkhalid 502f471
Fix store ordering
amanasifkhalid e8b1dbc
Style
amanasifkhalid 2dce428
Do SwiftError local conversion in phase
amanasifkhalid 38ad8a7
Delete assert
amanasifkhalid 18df9c7
Fix build
amanasifkhalid 86a0825
Fix codegen on arm64
amanasifkhalid 41ec8f7
Feedback
amanasifkhalid 6d9d360
Update BADCODE message
amanasifkhalid 0cd339d
Feedback
amanasifkhalid 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
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
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
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 think the message should be phrased in terms of IL, not IR constructs
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.
Would something like "Found invalid use of SwiftError* parameter" be too vague?
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.
That sounds good to me