llvm.org GIT mirror llvm / 6d9e0cc
[WebAssembly] Change int_wasm_memory_size from IntrNoMem to IntrReadMem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253147 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 4 years ago
3 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1313
1414 let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.".
1515
16 def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrNoMem]>;
16 // Note that memory_size is not IntrNoMem because it must be sequenced with
17 // respect to grow_memory calls.
18 def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
1719 def int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>;
1820
1921 }
44 target datalayout = "e-p:32:32-i64:64-n32:64-S128"
55 target triple = "wasm32-unknown-unknown"
66
7 declare i32 @llvm.wasm.memory.size.i32() nounwind readnone
7 declare i32 @llvm.wasm.memory.size.i32() nounwind readonly
88 declare void @llvm.wasm.grow.memory.i32(i32) nounwind
99
1010 ; CHECK-LABEL: memory_size:
44 target datalayout = "e-p:64:64-i64:64-n32:64-S128"
55 target triple = "wasm64-unknown-unknown"
66
7 declare i64 @llvm.wasm.memory.size.i64() nounwind readnone
7 declare i64 @llvm.wasm.memory.size.i64() nounwind readonly
88 declare void @llvm.wasm.grow.memory.i64(i64) nounwind
99
1010 ; CHECK-LABEL: memory_size: