R600/SI: Add a MUBUF store pattern for Imm offsets
[oota-llvm.git] / lib / Target / R600 / AMDGPUMachineFunction.h
index 21c8c51dae4512765a4ca661442709c4369cc3f6..fea0b39e91e5ffca1d845cc5fef73cbb7f37a3ae 100644 (file)
 #define AMDGPUMACHINEFUNCTION_H
 
 #include "llvm/CodeGen/MachineFunction.h"
+#include <map>
 
 namespace llvm {
 
 class AMDGPUMachineFunction : public MachineFunctionInfo {
-private:
-  static const char *ShaderTypeAttribute;
+  virtual void anchor();
 public:
   AMDGPUMachineFunction(const MachineFunction &MF);
   unsigned ShaderType;
+  /// A map to keep track of local memory objects and their offsets within
+  /// the local memory space.
+  std::map<const GlobalValue *, unsigned> LocalMemoryObjects;
+  /// Number of bytes in the LDS that are being used.
+  unsigned LDSSize;
 };
 
 }