[WebAssembly] Reorder load/store operands to match binary encoding.
authorDan Gohman <dan433584@gmail.com>
Tue, 25 Oct 2016 00:17:11 +0000 (00:17 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 25 Oct 2016 00:17:11 +0000 (00:17 +0000)
commit48abaa9c7409e58d1c4dd7b67cb3ac6e788bd314
treed9740adeafc3a7c86fa7d932849f90c130152f2e
parent5c61c703877df673b89cb98a74edeb956b94506c
[WebAssembly] Reorder load/store operands to match binary encoding.

The p2align operand of a load/store is encoded before the offset
operand; reorder the MachineInstr operands accordingly.

llvm-svn: 285044
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td