summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUMachineFunction.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-09-05 18:37:57 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-09-05 18:37:57 +0000
commitde60e25278b2519dbe61e0fe71b9834813681193 (patch)
treeec5924a8cee1976b7958e81c6125cb28a9e0133f /llvm/lib/Target/R600/AMDGPUMachineFunction.h
parentd50bb3c8d4cad23d694e8fa96d0e22bf659894d3 (diff)
downloadbcm5719-llvm-de60e25278b2519dbe61e0fe71b9834813681193.tar.gz
bcm5719-llvm-de60e25278b2519dbe61e0fe71b9834813681193.zip
R600: Fix incorrect LDS size calculation
GlobalAdderss nodes that appeared in more than one basic block were being counted twice. llvm-svn: 190078
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUMachineFunction.h')
-rw-r--r--llvm/lib/Target/R600/AMDGPUMachineFunction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUMachineFunction.h b/llvm/lib/Target/R600/AMDGPUMachineFunction.h
index 789b96a8fa0..fe80ce3f015 100644
--- a/llvm/lib/Target/R600/AMDGPUMachineFunction.h
+++ b/llvm/lib/Target/R600/AMDGPUMachineFunction.h
@@ -14,6 +14,7 @@
#define AMDGPUMACHINEFUNCTION_H
#include "llvm/CodeGen/MachineFunction.h"
+#include <map>
namespace llvm {
@@ -21,6 +22,9 @@ class AMDGPUMachineFunction : public MachineFunctionInfo {
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;
};
OpenPOWER on IntegriCloud