This ensures we have the non-register version of the instruction.
The stack version of call_indirect now wants a type index argument,
so that has been added in the existing tests.
Tested:
llvm-lit -v find test -name WebAssembly
Differential D51662
[WebAssembly] Made assembler only use stack instruction tablegen defs aardappel on Sep 4 2018, 3:55 PM. Authored by
Details This ensures we have the non-register version of the instruction. The stack version of call_indirect now wants a type index argument, Tested:
Diff Detail
Event TimelineComment Actions LGTM to ensure we are using the stack instructions.
Comment Actions @dschuff I could also remove the type index argument from the table-gen defs for now, if you think that is better. Though a future assembler can possibly allow parsing symbolic operands and turn them into integers if it has seen a previous type declaration? Comment Actions Would setting the isCodeGenOnly on the non-stack instructions accomplish this as well? |
nit: maybe IsWebAssemblyTarget? On first read I'd assumed that WebAssemblyTarget was the string "WebAssembly" and I was confused what Target.getName() was doing in this expression