-
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
[mono][swift-interop] Support for Swift struct lowering in direct P/Invoke returns #104389
Merged
matouskozak
merged 16 commits into
dotnet:main
from
matouskozak:swift-interop/pinvoke-struct-returns
Jul 15, 2024
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
503c88c
refactor struct lowering in method-to-ir.c
matouskozak 873699c
[miniJIT][ARM64] Swift struct lowering in returns
matouskozak ca6b22a
[interp][ARM64] Swift struct lowering in returns
matouskozak 5c62098
enable SwiftRetAbiStress tests on Mono
matouskozak 5890869
[miniJIT][x64] Swift struct lowering in returns
matouskozak 49fa2ed
[interp][x64] Swift struct lowering in returns
matouskozak c3b6cce
refactoring arm64/x64
matouskozak 4b239a3
more refactoring x64
matouskozak e6226db
swift ret buffer: r10 to rax move for VCALL
matouskozak a710be9
Merge branch 'main' into swift-interop/pinvoke-struct-returns
matouskozak 16f9715
Merge branch 'main' into swift-interop/pinvoke-struct-returns
matouskozak b9f3212
refactoring of swift ret. buffer handlig and more
matouskozak 983d661
change byref of typedref to byref of klass
matouskozak 8e662a4
replace spaces with tabs + formatting
matouskozak 45498f9
[arm64] move add_return_valuetype_swiftcall
matouskozak a8d58bd
[x64] refactor add_return_valuetype_swiftcall
matouskozak 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.
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.
It is not clear to me why we can use
mono_class_get_byref_type (mono_defaults.typed_reference_class)
instead ofmono_class_get_byref_type (klass);
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'm not sure either. I did some investigating and it seems that the all byref types get changed to generic
MONO_TYPE_I
which is then handled by codegen as a pointer-sized integer. I will change it tomono_class_get_byref_type (klass)
as it makes more sense.