2015-07-09 22:57:38 +02:00
|
|
|
//===- 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.".
|
2015-08-13 02:26:04 +02:00
|
|
|
|
2015-11-15 00:02:31 +01:00
|
|
|
// 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]>;
|
2015-11-05 21:16:59 +01:00
|
|
|
def int_wasm_grow_memory : Intrinsic<[], [llvm_anyint_ty], []>;
|
2015-08-13 02:26:04 +02:00
|
|
|
|
2015-07-09 22:57:38 +02:00
|
|
|
}
|