Skip to content

Simplify ABI lowering requirements for frontends #40

Open

Description

@asb

This is definitely a long term effort. Ideally, the frontend would not need to be concerned with calling convention details. Achieving this is harder than it first appears, and probably requires an IR-level pass (some of the PNaCl passes are relevant here).

Activity

  1. asb commented on Sep 27, 2017

    @asb
    ContributorAuthor

    I'll also note that having 'issigned' and 'isunsigned' parameter attributes rather than 'zeroext' / 'signext' would also help. Correctly marking the extension of parameters is important for performance (avoiding needless masking across function calls), but these attributes must not be applied to values passed by memory. The LLVM backend could ignore the attributes for values passed in memory, but that feels like surprising behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions