Skip to content

Support call_indirect in WAMI conversion pipeline #83

Description

@byeongjee

Problem

CallIndirectOp exists in the wasmstack dialect but there is no conversion pattern from the WAMI or func dialect level to produce it. Indirect function calls cannot be represented in the current compilation pipeline.

Why this matters

Indirect calls are essential for function pointers, virtual dispatch, and callback patterns. Without this, programs using these patterns cannot be compiled through WAMI.

Expected behavior

A conversion pattern (or WAMI-level operation) should support lowering indirect calls through to wasmstack.call_indirect.

Location

  • Missing pattern in lib/WAMI/ConversionPatterns/WAMIConvertFunc.cpp
  • Target op: CallIndirectOp in wasmstack dialect

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions