Dan Gohman | 10e730a | 2015-06-29 23:51:55 +0000 | [diff] [blame] | 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 | |
| 19 | WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() {} |
Dan Gohman | 058fce5 | 2015-11-13 00:21:05 +0000 | [diff] [blame] | 20 | |
| 21 | void WebAssemblyFunctionInfo::initWARegs() { |
| 22 | assert(WARegs.empty()); |
| 23 | unsigned Reg = UnusedReg; |
| 24 | WARegs.resize(MF.getRegInfo().getNumVirtRegs(), Reg); |
| 25 | } |