1 //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation and is distributed under the
7 // University of Illinois Open Source License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo.
13 //===----------------------------------------------------------------------===//
15 #ifndef SPU_MACHINE_FUNCTION_INFO_H
16 #define SPU_MACHINE_FUNCTION_INFO_H
18 #include "llvm/CodeGen/MachineFunction.h"
22 /// SPUFunctionInfo - Cell SPU target-specific information for each
24 class SPUFunctionInfo : public MachineFunctionInfo {
26 /// UsesLR - Indicates whether LR is used in the current function.
31 SPUFunctionInfo(MachineFunction& MF)
35 void setUsesLR(bool U) { UsesLR = U; }
36 bool usesLR() { return UsesLR; }
40 } // end of namespace llvm