Small simplification, p0 is the same as p.
[oota-llvm.git] / lib / Target / R600 / AMDGPUMachineFunction.h
index 789b96a8fa052ab8c1463df588847d4ee3dd60f5..fea0b39e91e5ffca1d845cc5fef73cbb7f37a3ae 100644 (file)
 #define AMDGPUMACHINEFUNCTION_H
 
 #include "llvm/CodeGen/MachineFunction.h"
+#include <map>
 
 namespace llvm {
 
 class AMDGPUMachineFunction : public MachineFunctionInfo {
+  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;
 };