blob: c72271b677900ee92422af9de94f7baa4cc045b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//===-- LanaiMachineFuctionInfo.cpp - Lanai machine function info ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "LanaiMachineFunctionInfo.h"
using namespace llvm;
void LanaiMachineFunctionInfo::anchor() {}
unsigned LanaiMachineFunctionInfo::getGlobalBaseReg() {
// Return if it has already been initialized.
if (GlobalBaseReg)
return GlobalBaseReg;
return GlobalBaseReg =
MF.getRegInfo().createVirtualRegister(&Lanai::GPRRegClass);
}
|