This adds missing select instruction support and block return type
support for reference types. Also refactors WebAssemblyInstrRef.td and
rearranges tests in reference-types.s. Tests don't include exnref
types, because we currently don't support exnref for ref.null and
the type will be removed soon anyway.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/MC/WebAssembly/reference-types.s | ||
---|---|---|
8 | Isn't it useful to continue to test externref and funcref as function return types? Or is that tested elsewhere? |
llvm/test/MC/WebAssembly/reference-types.s | ||
---|---|---|
8 | llvm-mc cannot check the correctness of that. We can put any signature here and the test will pass anyway. |
llvm/test/MC/WebAssembly/reference-types.s | ||
---|---|---|
8 | But it must be at least checked for valid type? You can write (foo) -> (bar) can you? It might be good to check that these types are accepted in this position? |
llvm/test/MC/WebAssembly/reference-types.s | ||
---|---|---|
8 | I added two more tests to test reference type signatures. |
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp | ||
---|---|---|
343 | See also https://reviews.llvm.org/D92323, which contains this. Happy for this to land though! |
See also https://reviews.llvm.org/D92323, which contains this. Happy for this to land though!