view lib/Target/Lanai/LanaiMachineFunctionInfo.cpp @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents
children c2174574ed3a
line wrap: on
line source

//===-- 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);
}