Scott Michel | 564427e | 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 | // |
| 5 | // This file was developed by a team from the Computer Systems Research |
Scott Michel | 2466c37 | 2007-12-05 01:40:25 +0000 | [diff] [blame] | 6 | // Department at The Aerospace Corporation and is distributed under the |
| 7 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
Scott Michel | 564427e | 2007-12-05 01:24:05 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | // |
| 11 | // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef SPU_MACHINE_FUNCTION_INFO_H |
| 16 | #define SPU_MACHINE_FUNCTION_INFO_H |
| 17 | |
| 18 | #include "llvm/CodeGen/MachineFunction.h" |
| 19 | |
| 20 | namespace llvm { |
| 21 | |
| 22 | /// SPUFunctionInfo - Cell SPU target-specific information for each |
| 23 | /// MachineFunction |
| 24 | class SPUFunctionInfo : public MachineFunctionInfo { |
| 25 | private: |
| 26 | /// UsesLR - Indicates whether LR is used in the current function. |
| 27 | /// |
| 28 | bool UsesLR; |
| 29 | |
| 30 | public: |
| 31 | SPUFunctionInfo(MachineFunction& MF) |
| 32 | : UsesLR(false) |
| 33 | {} |
| 34 | |
| 35 | void setUsesLR(bool U) { UsesLR = U; } |
| 36 | bool usesLR() { return UsesLR; } |
| 37 | |
| 38 | }; |
| 39 | |
| 40 | } // end of namespace llvm |
| 41 | |
| 42 | |
| 43 | #endif |
| 44 | |