1 //===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo.
12 //===----------------------------------------------------------------------===//
14 #ifndef SPU_MACHINE_FUNCTION_INFO_H
15 #define SPU_MACHINE_FUNCTION_INFO_H
17 #include "llvm/CodeGen/MachineFunction.h"
21 /// SPUFunctionInfo - Cell SPU target-specific information for each
23 class SPUFunctionInfo
: public MachineFunctionInfo
{
25 /// UsesLR - Indicates whether LR is used in the current function.
29 // VarArgsFrameIndex - FrameIndex for start of varargs area.
30 int VarArgsFrameIndex
;
33 SPUFunctionInfo(MachineFunction
& MF
)
38 void setUsesLR(bool U
) { UsesLR
= U
; }
39 bool usesLR() { return UsesLR
; }
41 int getVarArgsFrameIndex() const { return VarArgsFrameIndex
; }
42 void setVarArgsFrameIndex(int Index
) { VarArgsFrameIndex
= Index
; }
45 } // end of namespace llvm