LLVM API Documentation
00001 //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef SPU_MACHINE_FUNCTION_INFO_H 00015 #define SPU_MACHINE_FUNCTION_INFO_H 00016 00017 #include "llvm/CodeGen/MachineFunction.h" 00018 00019 namespace llvm { 00020 00021 /// SPUFunctionInfo - Cell SPU target-specific information for each 00022 /// MachineFunction 00023 class SPUFunctionInfo : public MachineFunctionInfo { 00024 private: 00025 /// UsesLR - Indicates whether LR is used in the current function. 00026 /// 00027 bool UsesLR; 00028 00029 public: 00030 SPUFunctionInfo(MachineFunction& MF) 00031 : UsesLR(false) 00032 {} 00033 00034 void setUsesLR(bool U) { UsesLR = U; } 00035 bool usesLR() { return UsesLR; } 00036 00037 }; 00038 00039 } // end of namespace llvm 00040 00041 00042 #endif 00043