Skip to content
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

[SR-3946] Figure out the number of registers designated to hold the function result value #46531

Closed
ematejska mannequin opened this issue Feb 13, 2017 · 3 comments
Closed
Labels
affects ABI Flag: Affects ABI bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself

Comments

@ematejska
Copy link
Mannequin

ematejska mannequin commented Feb 13, 2017

Previous ID SR-3946
Radar rdar://problem/31419827
Original Reporter @ematejska
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, AffectsABI
Assignee None
Priority Medium

md5: 1ed01cd2ffc3ef7ce2ef8e1964b7e4f9

Issue Description:

Function signature lowering is the mapping of a function's source-language type, which includes formal parameters and results, all the way down to a physical convention, which dictates what values are stored in what registers and what values to pass on the stack.

Lowering the result value is usually done first, with a certain number of registers designated to hold the result value if it fits, otherwise the result value is passed on the stack. Ahead of ABI stability, a good heuristic is needed for the limit and is architecture specific.

@bob-wilson
Copy link
Contributor

@swift-ci create

@bob-wilson
Copy link
Contributor

We're happy with that current implementation and do not plan changes in this area for the stable ABI.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects ABI Flag: Affects ABI bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself
Projects
None yet
Development

No branches or pull requests

2 participants