//===-- llvm/CodeGen/LowLevelTypeUtils.cpp --------------------------------===// // // 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 the more header-heavy bits of the LLT class to /// avoid polluting users' namespaces. // //===----------------------------------------------------------------------===// #include "llvm/CodeGen/LowLevelTypeUtils.h" #include "llvm/ADT/APFloat.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/DerivedTypes.h" usingnamespacellvm; LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { … } MVT llvm::getMVTForLLT(LLT Ty) { … } EVT llvm::getApproximateEVTForLLT(LLT Ty, const DataLayout &DL, LLVMContext &Ctx) { … } LLT llvm::getLLTForMVT(MVT Ty) { … } const llvm::fltSemantics &llvm::getFltSemanticForLLT(LLT Ty) { … }