blob: 1f28badd7e51966ad1452486342f2f2321ebb98c [file] [log] [blame]
Scott Michel564427e2007-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
Scott Michel2466c372007-12-05 01:40:25 +00006// Department at The Aerospace Corporation and is distributed under the
7// University of Illinois Open Source License. See LICENSE.TXT for details.
Scott Michel564427e2007-12-05 01:24:05 +00008//
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
20namespace llvm {
21
22/// SPUFunctionInfo - Cell SPU target-specific information for each
23/// MachineFunction
24class SPUFunctionInfo : public MachineFunctionInfo {
25private:
26 /// UsesLR - Indicates whether LR is used in the current function.
27 ///
28 bool UsesLR;
29
30public:
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