summaryrefslogtreecommitdiffstats
path: root/libclc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-11-10 21:43:40 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-11-10 21:43:40 +0000
commit3889c36d3fcc9d1fc7b8426ab8dae05214bf9ba3 (patch)
treecf5afb10bb2b7b69cd42d25e9f422b8f1694a7d8 /libclc
parent4a12aa97910999e53c755d5fc4c90639094c2797 (diff)
downloadbcm5719-llvm-3889c36d3fcc9d1fc7b8426ab8dae05214bf9ba3.tar.gz
bcm5719-llvm-3889c36d3fcc9d1fc7b8426ab8dae05214bf9ba3.zip
r600: Add datalayout to image builtin implementation
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry llvm-svn: 346597
Diffstat (limited to 'libclc')
-rw-r--r--libclc/r600/lib/image/get_image_attributes_impl.ll2
-rw-r--r--libclc/r600/lib/image/read_image_impl.ll2
-rw-r--r--libclc/r600/lib/image/write_image_impl.ll2
3 files changed, 6 insertions, 0 deletions
diff --git a/libclc/r600/lib/image/get_image_attributes_impl.ll b/libclc/r600/lib/image/get_image_attributes_impl.ll
index 7f1965de760..f867ab66035 100644
--- a/libclc/r600/lib/image/get_image_attributes_impl.ll
+++ b/libclc/r600/lib/image/get_image_attributes_impl.ll
@@ -1,3 +1,5 @@
+target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
+
%opencl.image2d_t = type opaque
%opencl.image3d_t = type opaque
diff --git a/libclc/r600/lib/image/read_image_impl.ll b/libclc/r600/lib/image/read_image_impl.ll
index 229a2526c37..ca2e465b4b5 100644
--- a/libclc/r600/lib/image/read_image_impl.ll
+++ b/libclc/r600/lib/image/read_image_impl.ll
@@ -1,3 +1,5 @@
+target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
+
%opencl.image2d_t = type opaque
declare <4 x float> @llvm.R600.tex(<4 x float>, i32, i32, i32, i32, i32, i32,
diff --git a/libclc/r600/lib/image/write_image_impl.ll b/libclc/r600/lib/image/write_image_impl.ll
index 265f5d6045e..03595ba1db7 100644
--- a/libclc/r600/lib/image/write_image_impl.ll
+++ b/libclc/r600/lib/image/write_image_impl.ll
@@ -1,3 +1,5 @@
+target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
+
%opencl.image2d_t = type opaque
%opencl.image3d_t = type opaque
OpenPOWER on IntegriCloud