1 // BuiltinsWebAssembly.def - WebAssembly builtin function database -*- C++ -*-//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file defines the WebAssembly-specific builtin function database.
12 /// Users of this file must define the BUILTIN macro to make use of this
15 //===----------------------------------------------------------------------===//
17 // The format of this database matches clang/Basic/Builtins.def.
19 // Note that memory_size is not "c" (readnone) because it must be sequenced with
20 // respect to grow_memory calls.
21 BUILTIN(__builtin_wasm_memory_size, "z", "n")
22 BUILTIN(__builtin_wasm_grow_memory, "vz", "n")