#include "WebAssemblyMachineFunctionInfo.h"
#include "MCTargetDesc/WebAssemblyInstPrinter.h"
#include "Utils/WebAssemblyTypeUtilities.h"
#include "WebAssemblyISelLowering.h"
#include "WebAssemblySubtarget.h"
#include "WebAssemblyUtilities.h"
#include "llvm/CodeGen/Analysis.h"
#include "llvm/CodeGen/WasmEHFuncInfo.h"
#include "llvm/Target/TargetMachine.h"
usingnamespacellvm;
WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() = default;
MachineFunctionInfo *WebAssemblyFunctionInfo::clone(
BumpPtrAllocator &Allocator, MachineFunction &DestMF,
const DenseMap<MachineBasicBlock *, MachineBasicBlock *> &Src2DstMBB)
const { … }
void WebAssemblyFunctionInfo::initWARegs(MachineRegisterInfo &MRI) { … }
void llvm::computeLegalValueVTs(const WebAssemblyTargetLowering &TLI,
LLVMContext &Ctx, const DataLayout &DL,
Type *Ty, SmallVectorImpl<MVT> &ValueVTs) { … }
void llvm::computeLegalValueVTs(const Function &F, const TargetMachine &TM,
Type *Ty, SmallVectorImpl<MVT> &ValueVTs) { … }
void llvm::computeSignatureVTs(const FunctionType *Ty,
const Function *TargetFunc,
const Function &ContextFunc,
const TargetMachine &TM,
SmallVectorImpl<MVT> &Params,
SmallVectorImpl<MVT> &Results) { … }
void llvm::valTypesFromMVTs(ArrayRef<MVT> In,
SmallVectorImpl<wasm::ValType> &Out) { … }
wasm::WasmSignature *
llvm::signatureFromMVTs(MCContext &Ctx, const SmallVectorImpl<MVT> &Results,
const SmallVectorImpl<MVT> &Params) { … }
yaml::WebAssemblyFunctionInfo::WebAssemblyFunctionInfo(
const llvm::MachineFunction &MF, const llvm::WebAssemblyFunctionInfo &MFI)
: … { … }
void yaml::WebAssemblyFunctionInfo::mappingImpl(yaml::IO &YamlIO) { … }
void WebAssemblyFunctionInfo::initializeBaseYamlFields(
MachineFunction &MF, const yaml::WebAssemblyFunctionInfo &YamlMFI) { … }