Vincent Lejeune | ace6f73 | 2013-04-01 21:47:53 +0000 | [diff] [blame] | 1 | //===-- R600MachineFunctionInfo.h - R600 Machine Function Info ----*- C++ -*-=// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | /// \file |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #ifndef AMDGPUMACHINEFUNCTION_H |
| 14 | #define AMDGPUMACHINEFUNCTION_H |
| 15 | |
| 16 | #include "llvm/CodeGen/MachineFunction.h" |
Tom Stellard | de60e25 | 2013-09-05 18:37:57 +0000 | [diff] [blame] | 17 | #include <map> |
Vincent Lejeune | ace6f73 | 2013-04-01 21:47:53 +0000 | [diff] [blame] | 18 | |
| 19 | namespace llvm { |
| 20 | |
| 21 | class AMDGPUMachineFunction : public MachineFunctionInfo { |
Juergen Ributzka | d12ccbd | 2013-11-19 00:57:56 +0000 | [diff] [blame] | 22 | virtual void anchor(); |
Vincent Lejeune | ace6f73 | 2013-04-01 21:47:53 +0000 | [diff] [blame] | 23 | public: |
| 24 | AMDGPUMachineFunction(const MachineFunction &MF); |
| 25 | unsigned ShaderType; |
Tom Stellard | de60e25 | 2013-09-05 18:37:57 +0000 | [diff] [blame] | 26 | /// A map to keep track of local memory objects and their offsets within |
| 27 | /// the local memory space. |
| 28 | std::map<const GlobalValue *, unsigned> LocalMemoryObjects; |
Tom Stellard | c026e8b | 2013-06-28 15:47:08 +0000 | [diff] [blame] | 29 | /// Number of bytes in the LDS that are being used. |
| 30 | unsigned LDSSize; |
Vincent Lejeune | ace6f73 | 2013-04-01 21:47:53 +0000 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | } |
| 34 | #endif // AMDGPUMACHINEFUNCTION_H |