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
Problem
CallIndirectOpexists 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
lib/WAMI/ConversionPatterns/WAMIConvertFunc.cppCallIndirectOpin wasmstack dialect