Skip to content

Emit conv.i in pointer interop only when necessary #491

Open

Description

@ForNeVeR

After implementing #354, we now have a feature that calls C# functions with CPtr, VoidPtr, and FuncPtr in their signatures. To call them, it will always emit a conv.i instruction.

This instruction is not always required (actually, in most cases it isn't): it should only be emitted when the value on stack is not a pointer.

We should fix that, and only emit it when necessary. See TODO[#491] when implementing.

Activity

  1. added
    kind:feature
    status:help-wanted
    area:compiler
    good-first-issue
    on Nov 23, 2023
  2. added a commit that references this issue on Nov 23, 2023
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

    area:compilergood-first-issuekind:featurestatus:help-wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions