diff options
author | Jan Sjodin <jan_sjodin@yahoo.com> | 2017-09-14 20:53:51 +0000 |
---|---|---|
committer | Jan Sjodin <jan_sjodin@yahoo.com> | 2017-09-14 20:53:51 +0000 |
commit | 312ccf761c034483f6bdcd659c44f56bc9818d96 (patch) | |
tree | ed9b9d8ec4c3adfa76dbed215779cc942c84dd5d /llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h | |
parent | f65177a41f6688a79c88aaddefcdc484258c2142 (diff) | |
download | bcm5719-llvm-312ccf761c034483f6bdcd659c44f56bc9818d96.tar.gz bcm5719-llvm-312ccf761c034483f6bdcd659c44f56bc9818d96.zip |
Add AddresSpace to PseudoSourceValue.
Differential Revision: https://reviews.llvm.org/D35089
llvm-svn: 313297
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h index 25139b2d373..242b41a5908 100644 --- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h +++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h @@ -22,6 +22,7 @@ #include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallVector.h" #include "llvm/CodeGen/PseudoSourceValue.h" +#include "llvm/Target/TargetInstrInfo.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/Support/ErrorHandling.h" #include <array> @@ -37,8 +38,8 @@ class TargetRegisterClass; class AMDGPUImagePseudoSourceValue : public PseudoSourceValue { public: - explicit AMDGPUImagePseudoSourceValue() : - PseudoSourceValue(PseudoSourceValue::TargetCustom) {} + explicit AMDGPUImagePseudoSourceValue(const TargetInstrInfo &TII) : + PseudoSourceValue(PseudoSourceValue::TargetCustom, TII) { } bool isConstant(const MachineFrameInfo *) const override { // This should probably be true for most images, but we will start by being @@ -61,8 +62,8 @@ public: class AMDGPUBufferPseudoSourceValue : public PseudoSourceValue { public: - explicit AMDGPUBufferPseudoSourceValue() : - PseudoSourceValue(PseudoSourceValue::TargetCustom) {} + explicit AMDGPUBufferPseudoSourceValue(const TargetInstrInfo &TII) : + PseudoSourceValue(PseudoSourceValue::TargetCustom, TII) { } bool isConstant(const MachineFrameInfo *) const override { // This should probably be true for most images, but we will start by being |