Uh oh!
There was an error while loading. Please reload this page.
JIT: Add support for struct returns from Swift reverse pinvokes - #100091
Conversation
jakobbotsch
commented
Mar 22, 2024
/azp run runtime-coreclr jitstress, runtime-coreclr jitstressregs, runtime-coreclr jitstress2-jitstressregs |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jakobbotsch
commented
Mar 22, 2024
cc @dotnet/jit-contrib PTAL @amanasifkhalid Failures look like #99810 and other known failures |
| { | ||
| printf("Swift compilation returns %s as %d primitive(s) in registers\n", | ||
| typGetObjLayout(retTypeHnd)->GetClassName(), lowering->numLoweredElements); | ||
| for (size_t i = 0; i < lowering->numLoweredElements; i++) |
There was a problem hiding this comment.
I think we dump these lowered element types in a few places now, right? You may want to consider moving this logic to a helper method (though feel free to do that in a future PR).
There was a problem hiding this comment.
Yeah. Makes sense to factor this, let me do that in a follow-up.
jakobbotsch
commented
Mar 22, 2024
Also FYI @jkoritzinsky and cc @jkotas for the stub change. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
jkotas
commented
Mar 22, 2024
The stub change LGTM |
jakobbotsch
commented
Mar 23, 2024
/azp run runtime |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Update the 10 tests to have some struct returns as well.
We also have to change the prestub to save
raxsince it's used as a register for the ret buffer in Swift calls.