diff options
| author | Dan Gohman <dan433584@gmail.com> | 2019-01-14 18:23:45 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2019-01-14 18:23:45 +0000 |
| commit | bbb548d85f1dca9f517f79e435e6514c7f261412 (patch) | |
| tree | 44c04d5d1161b191c67f24eda0e226017903a327 /llvm/lib | |
| parent | 220dcdb99762d607fa9e07259c4d1d2ab9823c5f (diff) | |
| download | bcm5719-llvm-bbb548d85f1dca9f517f79e435e6514c7f261412.tar.gz bcm5719-llvm-bbb548d85f1dca9f517f79e435e6514c7f261412.zip | |
[WebAssembly] Remove old intrinsics
This removes the old grow_memory and mem.grow-style intrinsics, leaving just
the memory.grow-style intrinsics.
Differential Revision: https://reviews.llvm.org/D56645
llvm-svn: 351084
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td index 0f8b3392c0f..518f81c61dc 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td +++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td @@ -436,17 +436,6 @@ defm MEMORY_SIZE_I32 : I<(outs I32:$dst), (ins i32imm:$flags), "memory.size\t$dst, $flags", "memory.size\t$flags", 0x3f>, Requires<[HasAddr32]>; -defm MEM_SIZE_I32 : I<(outs I32:$dst), (ins i32imm:$flags), - (outs), (ins i32imm:$flags), - [(set I32:$dst, (int_wasm_mem_size (i32 imm:$flags)))], - "mem.size\t$dst, $flags", "mem.size\t$flags", 0x3f>, - Requires<[HasAddr32]>; -defm CURRENT_MEMORY_I32 : I<(outs I32:$dst), (ins i32imm:$flags), - (outs), (ins i32imm:$flags), - [], - "current_memory\t$dst", - "current_memory\t$flags", 0x3f>, - Requires<[HasAddr32]>; // Grow memory. defm MEMORY_GROW_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta), @@ -457,21 +446,3 @@ defm MEMORY_GROW_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta), "memory.grow\t$dst, $flags, $delta", "memory.grow\t$flags", 0x40>, Requires<[HasAddr32]>; -defm MEM_GROW_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta), - (outs), (ins i32imm:$flags), - [(set I32:$dst, - (int_wasm_mem_grow (i32 imm:$flags), I32:$delta))], - "mem.grow\t$dst, $flags, $delta", "mem.grow\t$flags", - 0x40>, - Requires<[HasAddr32]>; -defm GROW_MEMORY_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta), - (outs), (ins i32imm:$flags), - [], - "grow_memory\t$dst, $delta", "grow_memory\t$flags", - 0x40>, - Requires<[HasAddr32]>; - -def : Pat<(int_wasm_current_memory), - (CURRENT_MEMORY_I32 0)>; -def : Pat<(int_wasm_grow_memory I32:$delta), - (GROW_MEMORY_I32 0, $delta)>; |

