summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-09-09 19:28:00 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-09-09 19:28:00 +0000
commitb2869eb6e98cb6b1730bca86b48c007970c861d7 (patch)
tree08553438e6b1aee929867b64e3052814ed5a509a /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
parent88f6407542c55ae3723831baf6e549e045db8138 (diff)
downloadbcm5719-llvm-b2869eb6e98cb6b1730bca86b48c007970c861d7.tar.gz
bcm5719-llvm-b2869eb6e98cb6b1730bca86b48c007970c861d7.zip
AMDGPU/SI: Make sure llvm.amdgcn.implicitarg.ptr() is 8-byte aligned for HSA
Reviewers: arsenm Subscribers: arsenm, wdng, nhaehnle, llvm-commits Differential Revision: https://reviews.llvm.org/D24405 llvm-svn: 281080
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index b94548a5f5c..b1cadeb0459 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -276,6 +276,10 @@ public:
return isAmdHsaOS() ? 0 : 36;
}
+ unsigned getAlignmentForImplicitArgPtr() const {
+ return isAmdHsaOS() ? 8 : 4;
+ }
+
unsigned getStackAlignment() const {
// Scratch is allocated in 256 dword per wave blocks.
return 4 * 256 / getWavefrontSize();
OpenPOWER on IntegriCloud