You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
812 B
26 lines
812 B
7 months ago
|
//=- WebAssemblyMachineFunctionInfo.cpp - WebAssembly Machine Function Info -=//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
///
|
||
|
/// \file
|
||
|
/// \brief This file implements WebAssembly-specific per-machine-function
|
||
|
/// information.
|
||
|
///
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "WebAssemblyMachineFunctionInfo.h"
|
||
|
using namespace llvm;
|
||
|
|
||
|
WebAssemblyFunctionInfo::~WebAssemblyFunctionInfo() {}
|
||
|
|
||
|
void WebAssemblyFunctionInfo::initWARegs() {
|
||
|
assert(WARegs.empty());
|
||
|
unsigned Reg = UnusedReg;
|
||
|
WARegs.resize(MF.getRegInfo().getNumVirtRegs(), Reg);
|
||
|
}
|