8c98d5a35085015ad135932b0d3ceee57b3bfe36
[oota-llvm.git] / lib / Target / CellSPU / SPUMachineFunction.h
1 //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation.
7 //
8 // See README.txt for details.
9 //
10 //===----------------------------------------------------------------------===//
11 //
12 // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo.
13 //
14 //===----------------------------------------------------------------------===//
15
16 #ifndef SPU_MACHINE_FUNCTION_INFO_H
17 #define SPU_MACHINE_FUNCTION_INFO_H
18
19 #include "llvm/CodeGen/MachineFunction.h"
20
21 namespace llvm {
22
23 /// SPUFunctionInfo - Cell SPU target-specific information for each
24 /// MachineFunction
25 class SPUFunctionInfo : public MachineFunctionInfo {
26 private:
27   /// UsesLR - Indicates whether LR is used in the current function.
28   ///
29   bool UsesLR;
30
31 public:
32   SPUFunctionInfo(MachineFunction& MF) 
33   : UsesLR(false)
34   {}
35
36   void setUsesLR(bool U) { UsesLR = U; }
37   bool usesLR()          { return UsesLR; }
38
39 };
40
41 } // end of namespace llvm
42
43
44 #endif
45