[WebAssembly][NFC] Refactor SIMD load/store tablegen defs
authorThomas Lively <tlively@google.com>
Wed, 23 Dec 2020 04:06:12 +0000 (20:06 -0800)
committerThomas Lively <tlively@google.com>
Wed, 23 Dec 2020 04:06:12 +0000 (20:06 -0800)
commitefe7f5ede0b3276f3f43daca46410bb7978221fb
treeba535f5f6707b444bb6967b2fbcae1ed55bf3d30
parente6fde1ae7df0b019392352b61d898c9b83b775fa
[WebAssembly][NFC] Refactor SIMD load/store tablegen defs

Introduce `Vec` records, each bundling all information related to a single SIMD
lane interpretation. This lets TableGen definitions take a single Vec parameter
from which they can extract information rather than taking multiple redundant
parameters. This commit refactors all of the SIMD load and store instruction
definitions to use the new `Vec`s. Subsequent commits will similarly refactor
additional instruction definitions.

Differential Revision: https://reviews.llvm.org/D93660
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
llvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td