]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/BuiltinsWebAssembly.def
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r306956, and update
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Basic / BuiltinsWebAssembly.def
1 // BuiltinsWebAssembly.def - WebAssembly builtin function database -*- C++ -*-//
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 the WebAssembly-specific builtin function database.
12 /// Users of this file must define the BUILTIN macro to make use of this
13 /// information.
14 ///
15 //===----------------------------------------------------------------------===//
16
17 // The format of this database matches clang/Basic/Builtins.def.
18
19 // Note that current_memory is not "c" (readnone) because it must be sequenced
20 // with respect to grow_memory calls.
21 BUILTIN(__builtin_wasm_current_memory, "z", "n")
22 BUILTIN(__builtin_wasm_grow_memory, "zz", "n")
23
24 // Exception handling builtins.
25 BUILTIN(__builtin_wasm_throw, "vUiv*", "r")
26 BUILTIN(__builtin_wasm_rethrow, "v", "r")
27
28 #undef BUILTIN