Add function for testing string attributes to InvokeInst and CallSite. NFC.
[oota-llvm.git] / include / llvm / IR / IntrinsicsWebAssembly.td
index 04edae5294fa9e2dac7177129beaee35506b7a0b..3953aef43dad8d19ed94e77e44f5a9147ddd9afe 100644 (file)
@@ -14,8 +14,9 @@
 
 let TargetPrefix = "wasm" in {  // All intrinsics start with "llvm.wasm.".
 
-def int_wasm_page_size : Intrinsic<[llvm_anyint_ty], [], [IntrNoMem]>;
-def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrNoMem]>;
-def int_wasm_resize_memory : Intrinsic<[], [llvm_anyint_ty], []>;
+// 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], []>;
 
 }