1 //===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file defines all of the WebAssembly-specific intrinsics.
13 //===----------------------------------------------------------------------===//
15 let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.".
17 // Note that memory_size is not IntrNoMem because it must be sequenced with
18 // respect to grow_memory calls.
19 def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
20 def int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>;