summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-14 23:02:31 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-14 23:02:31 +0000
commitc17e140b39d7874feaf049b92539fb7b122c4af9 (patch)
tree4c8c3253af1cdca016dd62da528292849999c28f /llvm/include
parentce70b42bce7ede54e6f667f6dd25a4b5c3307349 (diff)
downloadbcm5719-llvm-c17e140b39d7874feaf049b92539fb7b122c4af9.tar.gz
bcm5719-llvm-c17e140b39d7874feaf049b92539fb7b122c4af9.zip
[WebAssembly] Change int_wasm_memory_size from IntrNoMem to IntrReadMem.
llvm-svn: 253147
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/IntrinsicsWebAssembly.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/IntrinsicsWebAssembly.td b/llvm/include/llvm/IR/IntrinsicsWebAssembly.td
index 2a9e406aa8b..3953aef43da 100644
--- a/llvm/include/llvm/IR/IntrinsicsWebAssembly.td
+++ b/llvm/include/llvm/IR/IntrinsicsWebAssembly.td
@@ -14,7 +14,9 @@
let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.".
-def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrNoMem]>;
+// Note that memory_size is not IntrNoMem because it must be sequenced with
+// respect to grow_memory calls.
+def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
def int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>;
}
OpenPOWER on IntegriCloud