Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3946

Figure out the number of registers designated to hold the function result value

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ematejska Ewa Matejska
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: