Re-reapply "[IR] Move optional data in llvm::Function into a hungoff uselist"
[oota-llvm.git] / include / llvm / IR / IntrinsicsWebAssembly.td
1 //===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// \brief This file defines all of the WebAssembly-specific intrinsics.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 let TargetPrefix = "wasm" in {  // All intrinsics start with "llvm.wasm.".
16
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], []>;
21
22 }