//===-- WebAssemblyTypeUtilities.cpp - WebAssembly Type Utility Functions -===// // // 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 // //===----------------------------------------------------------------------===// /// /// \file /// This file implements several utility functions for WebAssembly type parsing. /// //===----------------------------------------------------------------------===// #include "WebAssemblyTypeUtilities.h" #include "llvm/ADT/StringSwitch.h" // Get register classes enum. #define GET_REGINFO_ENUM #include "WebAssemblyGenRegisterInfo.inc" usingnamespacellvm; MVT WebAssembly::parseMVT(StringRef Type) { … } wasm::ValType WebAssembly::toValType(MVT Type) { … } void WebAssembly::wasmSymbolSetType(MCSymbolWasm *Sym, const Type *GlobalVT, ArrayRef<MVT> VTs) { … }