diff options
author | Dan Gohman <dan433584@gmail.com> | 2017-01-18 01:02:45 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2017-01-18 01:02:45 +0000 |
commit | 73e3aaa61e15cd496208e5f5fc228b7512fbbc4f (patch) | |
tree | c283a884bf94a2452872d4c8f720ac0d1d280f7e /llvm/lib/Target/WebAssembly | |
parent | de5fea2c30dc7ef2f8e0e30639064855260bfa0a (diff) | |
download | bcm5719-llvm-73e3aaa61e15cd496208e5f5fc228b7512fbbc4f.tar.gz bcm5719-llvm-73e3aaa61e15cd496208e5f5fc228b7512fbbc4f.zip |
[WebAssembly] Update grow_memory's return type.
The grow_memory instruction now returns the previous memory size. Add the
return type to the LLVM intrinsic.
llvm-svn: 292322
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td index b606ebb0a68..25d77bb1f23 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td @@ -673,9 +673,9 @@ def CURRENT_MEMORY_I32 : I<(outs I32:$dst), (ins i32imm:$flags), Requires<[HasAddr32]>; // Grow memory. -def GROW_MEMORY_I32 : I<(outs), (ins i32imm:$flags, I32:$delta), +def GROW_MEMORY_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta), [], - "grow_memory\t$delta", 0x40>, + "grow_memory\t$dst, $delta", 0x40>, Requires<[HasAddr32]>; } // Defs = [ARGUMENTS] |