| Scott Michel | eff9802 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 1 | //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=// | 
|  | 2 | // | 
|  | 3 | //                     The LLVM Compiler Infrastructure | 
|  | 4 | // | 
| Chris Lattner | f3ebc3f | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source | 
|  | 6 | // License. See LICENSE.TXT for details. | 
| Scott Michel | eff9802 | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 7 | // | 
|  | 8 | //===----------------------------------------------------------------------===// | 
|  | 9 | // | 
|  | 10 | // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo. | 
|  | 11 | // | 
|  | 12 | //===----------------------------------------------------------------------===// | 
|  | 13 |  | 
|  | 14 | #ifndef SPU_MACHINE_FUNCTION_INFO_H | 
|  | 15 | #define SPU_MACHINE_FUNCTION_INFO_H | 
|  | 16 |  | 
|  | 17 | #include "llvm/CodeGen/MachineFunction.h" | 
|  | 18 |  | 
|  | 19 | namespace llvm { | 
|  | 20 |  | 
|  | 21 | /// SPUFunctionInfo - Cell SPU target-specific information for each | 
|  | 22 | /// MachineFunction | 
|  | 23 | class SPUFunctionInfo : public MachineFunctionInfo { | 
|  | 24 | private: | 
|  | 25 | /// UsesLR - Indicates whether LR is used in the current function. | 
|  | 26 | /// | 
|  | 27 | bool UsesLR; | 
|  | 28 |  | 
|  | 29 | public: | 
|  | 30 | SPUFunctionInfo(MachineFunction& MF) | 
|  | 31 | : UsesLR(false) | 
|  | 32 | {} | 
|  | 33 |  | 
|  | 34 | void setUsesLR(bool U) { UsesLR = U; } | 
|  | 35 | bool usesLR()          { return UsesLR; } | 
|  | 36 |  | 
|  | 37 | }; | 
|  | 38 |  | 
|  | 39 | } // end of namespace llvm | 
|  | 40 |  | 
|  | 41 |  | 
|  | 42 | #endif | 
|  | 43 |  |