1 //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation.
8 // See README.txt for details.
10 //===----------------------------------------------------------------------===//
12 // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo.
14 //===----------------------------------------------------------------------===//
16 #ifndef SPU_MACHINE_FUNCTION_INFO_H
17 #define SPU_MACHINE_FUNCTION_INFO_H
19 #include "llvm/CodeGen/MachineFunction.h"
23 /// SPUFunctionInfo - Cell SPU target-specific information for each
25 class SPUFunctionInfo : public MachineFunctionInfo {
27 /// UsesLR - Indicates whether LR is used in the current function.
32 SPUFunctionInfo(MachineFunction& MF)
36 void setUsesLR(bool U) { UsesLR = U; }
37 bool usesLR() { return UsesLR; }
41 } // end of namespace llvm