aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/R600/AMDGPUMachineFunction.h
diff options
context:
space:
mode:
authorVincent Lejeune <vljn@ovi.com>2013-04-01 21:47:53 +0000
committerVincent Lejeune <vljn@ovi.com>2013-04-01 21:47:53 +0000
commitace6f7351eb89f160623aa45af83af5db939d97b (patch)
tree21a623ccde5d55fce12246991343ea80df16444f /llvm/lib/Target/R600/AMDGPUMachineFunction.h
parentf43bc57b665f33759b78eeca5607d331f4429942 (diff)
downloadllvm-ace6f7351eb89f160623aa45af83af5db939d97b.zip
llvm-ace6f7351eb89f160623aa45af83af5db939d97b.tar.gz
llvm-ace6f7351eb89f160623aa45af83af5db939d97b.tar.bz2
R600/SI: Share code recording ShaderTypeAttribute between generations
llvm-svn: 178504
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUMachineFunction.h')
-rw-r--r--llvm/lib/Target/R600/AMDGPUMachineFunction.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUMachineFunction.h b/llvm/lib/Target/R600/AMDGPUMachineFunction.h
new file mode 100644
index 0000000..21c8c51
--- /dev/null
+++ b/llvm/lib/Target/R600/AMDGPUMachineFunction.h
@@ -0,0 +1,29 @@
+//===-- 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.
+//
+//===----------------------------------------------------------------------===//
+//
+/// \file
+//===----------------------------------------------------------------------===//
+
+#ifndef AMDGPUMACHINEFUNCTION_H
+#define AMDGPUMACHINEFUNCTION_H
+
+#include "llvm/CodeGen/MachineFunction.h"
+
+namespace llvm {
+
+class AMDGPUMachineFunction : public MachineFunctionInfo {
+private:
+ static const char *ShaderTypeAttribute;
+public:
+ AMDGPUMachineFunction(const MachineFunction &MF);
+ unsigned ShaderType;
+};
+
+}
+#endif // AMDGPUMACHINEFUNCTION_H