blob: 8c98d5a35085015ad135932b0d3ceee57b3bfe36 [file] [log] [blame]
Scott Michel5c93da42007-12-05 01:24:05 +00001//===-- 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
21namespace llvm {
22
23/// SPUFunctionInfo - Cell SPU target-specific information for each
24/// MachineFunction
25class SPUFunctionInfo : public MachineFunctionInfo {
26private:
27 /// UsesLR - Indicates whether LR is used in the current function.
28 ///
29 bool UsesLR;
30
31public:
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