Warning, /include/clang/Basic/WebAssemblyReferenceTypes.def is written in an unsupported language. File is not indexed.
0001 //===-- WebAssemblyReferenceTypes.def - Wasm reference types ----*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file defines externref_t. The macros are:
0010 //
0011 // WASM_TYPE(Name, Id, SingletonId)
0012 // WASM_REF_TYPE(Name, MangledName, Id, SingletonId, AS)
0013 //
0014 // where:
0015 //
0016 // - Name is the name of the builtin type.
0017 //
0018 // - MangledNameBase is the base used for name mangling.
0019 //
0020 // - BuiltinType::Id is the enumerator defining the type.
0021 //
0022 // - Context.SingletonId is the global singleton of this type.
0023 //
0024 // - AS indicates the address space for values of this type.
0025 //
0026 // To include this file, define either WASM_REF_TYPE or WASM_TYPE, depending on
0027 // how much information you want. The macros will be undefined after inclusion.
0028 //
0029 //===----------------------------------------------------------------------===//
0030
0031
0032 #ifndef WASM_REF_TYPE
0033 #define WASM_REF_TYPE(Name, MangledNameBase, Id, SingletonId, AS) \
0034 WASM_TYPE(Name, Id, SingletonId)
0035 #endif
0036
0037 WASM_REF_TYPE("__externref_t", "externref_t", WasmExternRef, WasmExternRefTy, 10)
0038
0039 #undef WASM_TYPE
0040 #undef WASM_REF_TYPE