llvm.org GIT mirror llvm / 492acdd include / llvm / IR / IntrinsicsWebAssembly.td
492acdd

Tree @492acdd (Download .tar.gz)

IntrinsicsWebAssembly.td @492acddraw · history · blame

//===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief This file defines all of the WebAssembly-specific intrinsics.
///
//===----------------------------------------------------------------------===//

let TargetPrefix = "wasm" in {  // All intrinsics start with "llvm.wasm.".

// Note that memory_size is not IntrNoMem because it must be sequenced with
// respect to grow_memory calls.
def int_wasm_memory_size : Intrinsic<[llvm_anyint_ty], [], [IntrReadMem]>;
def int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>;

}