[MC][WebAssembly] Fix type checking for bulk memory instructions
authorSam Clegg <sbc@chromium.org>
Tue, 4 Apr 2023 15:37:25 +0000 (08:37 -0700)
committerSam Clegg <sbc@chromium.org>
Tue, 4 Apr 2023 21:10:10 +0000 (14:10 -0700)
commitf56b5921d3954cbd99175d0df44030e7782bc456
tree4202f75541cbb4cd212e0297de0729d18305d070
parente0f7ef4b9ccf906f5382578a7ac0a0ba8d6d4f2b
[MC][WebAssembly] Fix type checking for bulk memory instructions

This code currently assumes that all bulk memory operations occur on
memory 0 which who's type is determined by the wasm32 vs wasm64 target
triple.  Further improvements would be need to support multi-memory.

Differential Revision: https://reviews.llvm.org/D147540
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
llvm/test/MC/WebAssembly/bulk-memory-encodings.s