r600: Add datalayout to image builtin implementation

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewer: Aaron Watry

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@346597 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/r600/lib/image/get_image_attributes_impl.ll b/r600/lib/image/get_image_attributes_impl.ll
index 7f1965d..f867ab6 100644
--- a/r600/lib/image/get_image_attributes_impl.ll
+++ b/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/r600/lib/image/read_image_impl.ll b/r600/lib/image/read_image_impl.ll
index 229a252..ca2e465 100644
--- a/r600/lib/image/read_image_impl.ll
+++ b/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/r600/lib/image/write_image_impl.ll b/r600/lib/image/write_image_impl.ll
index 265f5d6..03595ba 100644
--- a/r600/lib/image/write_image_impl.ll
+++ b/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