1 //===- SparcMachineFunctionInfo.h - Sparc Machine Function Info -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares Sparc specific per-machine-function information.
12 //===----------------------------------------------------------------------===//
13 #ifndef SPARCMACHINEFUNCTIONINFO_H
14 #define SPARCMACHINEFUNCTIONINFO_H
16 #include "llvm/CodeGen/MachineFunction.h"
20 class SparcMachineFunctionInfo : public MachineFunctionInfo {
22 unsigned GlobalBaseReg;
24 SparcMachineFunctionInfo() : GlobalBaseReg(0) {}
25 SparcMachineFunctionInfo(MachineFunction &MF) : GlobalBaseReg(0) {}
27 unsigned getGlobalBaseReg() const { return GlobalBaseReg; }
28 void setGlobalBaseReg(unsigned Reg) { GlobalBaseReg = Reg; }