LLVM  4.0.0
LanaiMachineFunctionInfo.cpp
Go to the documentation of this file.
1 //===-- LanaiMachineFuctionInfo.cpp - Lanai 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 
11 
12 using namespace llvm;
13 
14 void LanaiMachineFunctionInfo::anchor() {}
15 
17  // Return if it has already been initialized.
18  if (GlobalBaseReg)
19  return GlobalBaseReg;
20 
21  return GlobalBaseReg =
22  MF.getRegInfo().createVirtualRegister(&Lanai::GPRRegClass);
23 }
unsigned createVirtualRegister(const TargetRegisterClass *RegClass)
createVirtualRegister - Create and return a new virtual register in the function with the specified r...
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.