[llvm] [WebAssembly] Add ref.test_func handling to AsmParser (PR #139642)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 09:07:28 PDT 2025


================
@@ -668,6 +668,8 @@ class WebAssemblyAsmParser final : public MCTargetAsmParser {
       if (parseFunctionTableOperand(&FunctionTable))
         return true;
       ExpectFuncType = true;
+    } else if (Name == "ref.test") {
+      ExpectFuncType = true;
----------------
sbc100 wrote:

In the long run I guess this should instead be something like `ExpectRefType`?   

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


More information about the llvm-commits mailing list