//===--- llvm/CodeGen/WasmAddressSpaces.h -----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Address Spaces for WebAssembly Type Handling // //===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WASMADDRESSSPACES_H #define LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WASMADDRESSSPACES_H namespace llvm { namespace WebAssembly { enum WasmAddressSpace : unsigned { … }; inline bool isDefaultAddressSpace(unsigned AS) { … } inline bool isWasmVarAddressSpace(unsigned AS) { … } inline bool isValidAddressSpace(unsigned AS) { … } } // namespace WebAssembly } // namespace llvm #endif // LLVM_LIB_TARGET_WEBASSEMBLY_UTILS_WASMADDRESSSPACES_H