LLVM  8.0.1
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 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
unsigned createVirtualRegister(const TargetRegisterClass *RegClass, StringRef Name="")
createVirtualRegister - Create and return a new virtual register in the function with the specified r...