diff options
author | Scott Michel <scottm@aero.org> | 2007-12-05 01:24:05 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2007-12-05 01:24:05 +0000 |
commit | eff980208ae4985e2743a06fc641d33efb351d0a (patch) | |
tree | 54a3d6b2a58db25d3dbd4b0b1e9ed9ce95830ef5 /llvm/lib/Target/CellSPU/SPUMachineFunction.h | |
parent | 9d43e3d84137a86f9d176101cd97a45b35fbfd04 (diff) | |
download | bcm5719-llvm-eff980208ae4985e2743a06fc641d33efb351d0a.tar.gz bcm5719-llvm-eff980208ae4985e2743a06fc641d33efb351d0a.zip |
Main CellSPU backend files checked in. Intrinsics and autoconf files
remain.
llvm-svn: 44595
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUMachineFunction.h')
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUMachineFunction.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUMachineFunction.h b/llvm/lib/Target/CellSPU/SPUMachineFunction.h new file mode 100644 index 00000000000..8c98d5a3508 --- /dev/null +++ b/llvm/lib/Target/CellSPU/SPUMachineFunction.h @@ -0,0 +1,45 @@ +//===-- SPUMachineFunctionInfo.h - Private data used for CellSPU --*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by a team from the Computer Systems Research +// Department at The Aerospace Corporation. +// +// See README.txt for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the IBM Cell SPU specific subclass of MachineFunctionInfo. +// +//===----------------------------------------------------------------------===// + +#ifndef SPU_MACHINE_FUNCTION_INFO_H +#define SPU_MACHINE_FUNCTION_INFO_H + +#include "llvm/CodeGen/MachineFunction.h" + +namespace llvm { + +/// SPUFunctionInfo - Cell SPU target-specific information for each +/// MachineFunction +class SPUFunctionInfo : public MachineFunctionInfo { +private: + /// UsesLR - Indicates whether LR is used in the current function. + /// + bool UsesLR; + +public: + SPUFunctionInfo(MachineFunction& MF) + : UsesLR(false) + {} + + void setUsesLR(bool U) { UsesLR = U; } + bool usesLR() { return UsesLR; } + +}; + +} // end of namespace llvm + + +#endif + |