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 15let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.". 16 17// Note that current_memory is not IntrNoMem because it must be sequenced with 18// respect to grow_memory calls. 19def int_wasm_current_memory : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>; 20def int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>; 21 22} 23