diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2012-05-14 15:45:17 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-05-14 15:45:17 -0400 |
commit | a40764c324532adb39479851f7eefe0c87dfdade (patch) | |
tree | c8c0aaea04f60c9642b75aad5393a67840789814 | |
parent | ed20ff6ecb416abe43c2e1f5b4c1858958349747 (diff) |
AMDIL: Add missing files R600MachineFunctionInfo.{cpp,h}r600-review-v3
-rw-r--r-- | lib/Target/AMDIL/R600MachineFunctionInfo.cpp | 16 | ||||
-rw-r--r-- | lib/Target/AMDIL/R600MachineFunctionInfo.h | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/lib/Target/AMDIL/R600MachineFunctionInfo.cpp b/lib/Target/AMDIL/R600MachineFunctionInfo.cpp new file mode 100644 index 00000000000..48443fb57d8 --- /dev/null +++ b/lib/Target/AMDIL/R600MachineFunctionInfo.cpp @@ -0,0 +1,16 @@ +//===-- R600MachineFunctionInfo.cpp - R600 Machine Function Info-*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "R600MachineFunctionInfo.h" + +using namespace llvm; + +R600MachineFunctionInfo::R600MachineFunctionInfo(const MachineFunction &MF) + : MachineFunctionInfo() + { } diff --git a/lib/Target/AMDIL/R600MachineFunctionInfo.h b/lib/Target/AMDIL/R600MachineFunctionInfo.h new file mode 100644 index 00000000000..948e1924272 --- /dev/null +++ b/lib/Target/AMDIL/R600MachineFunctionInfo.h @@ -0,0 +1,33 @@ +//===-- R600MachineFunctionInfo.h - R600 Machine Function Info ----*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// R600MachineFunctionInfo is used for keeping track of which registers have +// been reserved by the llvm.AMDGPU.reserve.reg intrinsic. +// +//===----------------------------------------------------------------------===// + +#ifndef R600MACHINEFUNCTIONINFO_H +#define R600MACHINEFUNCTIONINFO_H + +#include "llvm/CodeGen/MachineFunction.h" +#include <vector> + +namespace llvm { + +class R600MachineFunctionInfo : public MachineFunctionInfo { + +public: + R600MachineFunctionInfo(const MachineFunction &MF); + std::vector<unsigned> ReservedRegs; + +}; + +} // End llvm namespace + +#endif //R600MACHINEFUNCTIONINFO_H |