1286425Sdim//===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===//
2286425Sdim//
3286425Sdim//                     The LLVM Compiler Infrastructure
4286425Sdim//
5286425Sdim// This file is distributed under the University of Illinois Open Source
6286425Sdim// License. See LICENSE.TXT for details.
7286425Sdim//
8286425Sdim//===----------------------------------------------------------------------===//
9286425Sdim///
10286425Sdim/// \file
11286425Sdim/// \brief This file defines all of the WebAssembly-specific intrinsics.
12286425Sdim///
13286425Sdim//===----------------------------------------------------------------------===//
14286425Sdim
15286425Sdimlet TargetPrefix = "wasm" in {  // All intrinsics start with "llvm.wasm.".
16296417Sdim
17296417Sdim// Note that memory_size is not IntrNoMem because it must be sequenced with
18296417Sdim// respect to grow_memory calls.
19296417Sdimdef int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
20296417Sdimdef int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>;
21296417Sdim
22286425Sdim}
23