[llvm] Add support for ref.func to AsmParser/MC (PR #163326)

Demetrius Kanios via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 13:59:11 PDT 2025


QuantumSegfault wrote:

I'm not entirely sure what you are requesting. I can add this in `WebAssemblyAsmTypeCheck::typeCheck`
```cpp
if (Name == "ref.func") {
    pushType(Ref{});
    return false;
}
```

But isn't that less specific than `funcref`? The default behavior already pushes a `funcref`. Unless there's a way to emit a specific `(ref func_sig_idx)` instead of `(ref)` or `funcref` (`(ref null func)`)?

https://github.com/llvm/llvm-project/pull/163326


More information about the llvm-commits mailing list