[WebAssembly] Add mem.* intrinsics.
authorDan Gohman <dan433584@gmail.com>
Tue, 23 Jan 2018 17:02:02 +0000 (17:02 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 23 Jan 2018 17:02:02 +0000 (17:02 +0000)
commit5464941a6a5ad85f8d041bf95181980b9eb45498
tree9bd9bf12919e32b39b06c060fc8776a273bda47a
parent8e2fc4f3f836a082b0599a6bd74ada26e6c44b7a
[WebAssembly] Add mem.* intrinsics.

The grow_memory and current_memory instructions are expected to be
officially renamed to mem.grow and mem.size. Introduce new intrinsics
with the new names. These new names aren't yet official, so for now,
use them at your own risk.

Also, take this opportunity to add arguments for the currently unused
immediate field in those instructions.

llvm-svn: 323222
llvm/include/llvm/IR/IntrinsicsWebAssembly.td
llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
llvm/test/CodeGen/WebAssembly/memory-addr32.ll