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