summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-10-02 20:10:26 +0000
committerDan Gohman <dan433584@gmail.com>2015-10-02 20:10:26 +0000
commitbaba8c648b5b57e16a8e8f1b3c7142b8725c3bb6 (patch)
tree277062b826f220ed9747aacaa407e04ad7c393d7 /llvm/lib
parentd0671346ae317e76c3715c301bf3241462ee8ac2 (diff)
downloadbcm5719-llvm-baba8c648b5b57e16a8e8f1b3c7142b8725c3bb6.tar.gz
bcm5719-llvm-baba8c648b5b57e16a8e8f1b3c7142b8725c3bb6.zip
[WebAssembly] Add a resize_memory intrinsic.
llvm-svn: 249178
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
index 410fd47d370..ec9a121b3a7 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
@@ -106,3 +106,11 @@ def memory_size_I32 : I<(outs I32:$dst), (ins),
def memory_size_I64 : I<(outs I64:$dst), (ins),
[(set I64:$dst, (int_wasm_memory_size))]>,
Requires<[HasAddr64]>;
+
+// Resize memory.
+def resize_memory_I32 : I<(outs), (ins I32:$delta),
+ [(int_wasm_resize_memory I32:$delta)]>,
+ Requires<[HasAddr32]>;
+def resize_memory_I64 : I<(outs), (ins I64:$delta),
+ [(int_wasm_resize_memory I64:$delta)]>,
+ Requires<[HasAddr64]>;
OpenPOWER on IntegriCloud