1*9880d681SAndroid Build Coastguard Worker //=- WebAssemblyMachineFunctionInfo.cpp - WebAssembly Machine Function Info -=// 2*9880d681SAndroid Build Coastguard Worker // 3*9880d681SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker // 5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker // 8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*9880d681SAndroid Build Coastguard Worker /// 10*9880d681SAndroid Build Coastguard Worker /// \file 11*9880d681SAndroid Build Coastguard Worker /// \brief This file implements WebAssembly-specific per-machine-function 12*9880d681SAndroid Build Coastguard Worker /// information. 13*9880d681SAndroid Build Coastguard Worker /// 14*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker #include "WebAssemblyMachineFunctionInfo.h" 17*9880d681SAndroid Build Coastguard Worker using namespace llvm; 18*9880d681SAndroid Build Coastguard Worker ~WebAssemblyFunctionInfo()19*9880d681SAndroid Build Coastguard WorkerWebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() {} 20*9880d681SAndroid Build Coastguard Worker initWARegs()21*9880d681SAndroid Build Coastguard Workervoid WebAssemblyFunctionInfo::initWARegs() { 22*9880d681SAndroid Build Coastguard Worker assert(WARegs.empty()); 23*9880d681SAndroid Build Coastguard Worker unsigned Reg = UnusedReg; 24*9880d681SAndroid Build Coastguard Worker WARegs.resize(MF.getRegInfo().getNumVirtRegs(), Reg); 25*9880d681SAndroid Build Coastguard Worker } 26