diff options
| author | Dan Gohman <dan433584@gmail.com> | 2016-10-06 22:08:28 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2016-10-06 22:08:28 +0000 |
| commit | 7f1bdb2e02ca5e61703278d11809ffbcbea1fb29 (patch) | |
| tree | 37e23d2d5da406e1942bd89188e9ad5e8d64215d /llvm/lib/Target/WebAssembly/MCTargetDesc | |
| parent | e51bede1d8379311d836635eb2a0de49de850b9e (diff) | |
| download | bcm5719-llvm-7f1bdb2e02ca5e61703278d11809ffbcbea1fb29.tar.gz bcm5719-llvm-7f1bdb2e02ca5e61703278d11809ffbcbea1fb29.zip | |
[WebAssembly] Remove the output operand from stores.
Per spec changes, store instructions in WebAssembly no longer have a return
value. Update the instruction descriptions.
Differential Revision: https://reviews.llvm.org/D25122
llvm-svn: 283501
Diffstat (limited to 'llvm/lib/Target/WebAssembly/MCTargetDesc')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h index 0fc65e5a836..c7d6efb794f 100644 --- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h +++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h @@ -134,9 +134,12 @@ inline unsigned GetDefaultP2Align(unsigned Opcode) { } /// The operand number of the load or store address in load/store instructions. -static const unsigned MemOpAddressOperandNo = 2; -/// The operand number of the stored value in a store instruction. -static const unsigned StoreValueOperandNo = 4; +static const unsigned LoadAddressOperandNo = 2; +static const unsigned StoreAddressOperandNo = 1; + +/// The operand number of the load or store p2align in load/store instructions. +static const unsigned LoadP2AlignOperandNo = 3; +static const unsigned StoreP2AlignOperandNo = 2; } // end namespace WebAssembly } // end namespace llvm |

