-
Notifications
You must be signed in to change notification settings - Fork 5.2k
JIT: Support storing Swift error register value to SwiftError struct #98586
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
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d66b6a8
Add error reg support
amanasifkhalid 0da12b3
Kill error reg if calling a Swift method
amanasifkhalid 56eb2a4
Style
amanasifkhalid 2c533aa
Don't forget arm64 lsra
amanasifkhalid 49bf639
Remove space
amanasifkhalid 0d35921
Re-disable Swift call conv
amanasifkhalid d1618c3
Fix comment
amanasifkhalid 1966828
Fix another comment
amanasifkhalid 62fb26a
Kill error reg only if Swift method has error handling
amanasifkhalid 197f704
Add GTF_CALL, GTF_GLOB_REF flags to errorRegNode
amanasifkhalid 83b0524
Use TYP_I_IMPL
amanasifkhalid 984edf6
add genCodeForSwiftErrorReg
amanasifkhalid 8152cad
Remove SwiftError* call arg after adding IR for it
amanasifkhalid dc2268d
Remove sig parsing to impPopArgsForUnmanagedCall
amanasifkhalid 8f92c30
Add impAppendSwiftErrorStore
amanasifkhalid 61851e1
Add comment explaining GT_SWIFT_ERROR dest reg
amanasifkhalid 0a0b556
Style
amanasifkhalid ced9ed3
pull
amanasifkhalid f61d406
Disable
amanasifkhalid 33ff3df
Fix comment
amanasifkhalid 8b57428
Throw exception for passing SwiftError struct
amanasifkhalid 7ce0adb
Fix value num
amanasifkhalid 7692346
Mark error reg as busy until GT_SWIFT_ERROR consumes it
amanasifkhalid 24b4bec
enable Swift call conv in JIT
amanasifkhalid ad8aa75
Fix assert
amanasifkhalid 0edff77
Allow Swift call conv in dllimport.cpp
amanasifkhalid 5ec97c2
Improve codegen for storing error reg
amanasifkhalid cc6e2dc
Remove loop
amanasifkhalid 5a0a60f
ifdef lsra changes
amanasifkhalid f38e916
Move GT_SWIFT_ERROR to right after GT_CALL node during lowering
amanasifkhalid b08a4e0
Use delayRegFree to mark error register as busy
amanasifkhalid 276b978
Style
amanasifkhalid b619bae
Move GT_SWIFT_ERROR move logic to LowerNonvirtPinvokeCall
amanasifkhalid b7b8e57
Move delayRegFree logic to LinearScan::BuildCall
amanasifkhalid 991ddce
Use setDelayFree()
amanasifkhalid 9048ab2
Fix
amanasifkhalid 764f872
Fix and enable error handling tests
amanasifkhalid f125610
Merge branch 'main' into swift-error-reg
amanasifkhalid 2c0eab8
Enable test for coreclr
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.