summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll
diff options
context:
space:
mode:
authorTim Renouf <tpr.llvm@botech.co.uk>2019-03-13 18:55:50 +0000
committerTim Renouf <tpr.llvm@botech.co.uk>2019-03-13 18:55:50 +0000
commited0b9af9973e9f714a6e35d858a55bca5c7529b6 (patch)
tree7c0f621a90047a48654f3311a2fcbbeda8214294 /llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll
parent4ced8de17c5f9f1ec3faab0ea5fbe240ae9da611 (diff)
downloadbcm5719-llvm-ed0b9af9973e9f714a6e35d858a55bca5c7529b6.tar.gz
bcm5719-llvm-ed0b9af9973e9f714a6e35d858a55bca5c7529b6.zip
[AMDGPU] Switched HSA metadata to use MsgPackDocument
Summary: MsgPackDocument is the lighter-weight replacement for MsgPackTypes. This commit switches AMDGPU HSA metadata processing to use MsgPackDocument instead of MsgPackTypes. Differential Revision: https://reviews.llvm.org/D57024 Change-Id: I0751668013abe8c87db01db1170831a76079b3a6 llvm-svn: 356081
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll140
1 files changed, 87 insertions, 53 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll b/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll
index 7a9c810541e..02937d51eb3 100644
--- a/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll
+++ b/llvm/test/CodeGen/AMDGPU/hsa-metadata-images-v3.ll
@@ -15,59 +15,93 @@
%opencl.image2d_msaa_depth_t = type opaque
%opencl.image3d_t = type opaque
-; CHECK: ---
-; CHECK: amdhsa.kernels:
-; CHECK: .symbol: test.kd
-; CHECK: .name: test
-; CHECK: .args:
-; CHECK: - .type_name: image1d_t
-; CHECK: .value_kind: image
-; CHECK: .name: a
-; CHECK: .size: 8
-; CHECK: - .type_name: image1d_array_t
-; CHECK: .value_kind: image
-; CHECK: .name: b
-; CHECK: .size: 8
-; CHECK: - .type_name: image1d_buffer_t
-; CHECK: .value_kind: image
-; CHECK: .name: c
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_t
-; CHECK: .value_kind: image
-; CHECK: .name: d
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_array_t
-; CHECK: .value_kind: image
-; CHECK: .name: e
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_array_depth_t
-; CHECK: .value_kind: image
-; CHECK: .name: f
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_array_msaa_t
-; CHECK: .value_kind: image
-; CHECK: .name: g
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_array_msaa_depth_t
-; CHECK: .value_kind: image
-; CHECK: .name: h
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_depth_t
-; CHECK: .value_kind: image
-; CHECK: .name: i
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_msaa_t
-; CHECK: .value_kind: image
-; CHECK: .name: j
-; CHECK: .size: 8
-; CHECK: - .type_name: image2d_msaa_depth_t
-; CHECK: .value_kind: image
-; CHECK: .name: k
-; CHECK: .size: 8
-; CHECK: - .type_name: image3d_t
-; CHECK: .value_kind: image
-; CHECK: .name: l
-; CHECK: .size: 8
+; CHECK: ---
+; CHECK: amdhsa.kernels:
+; CHECK: - .args:
+; CHECK: - .address_space: global
+; CHECK: .name: a
+; CHECK: .offset: 0
+; CHECK: .size: 8
+; CHECK: .type_name: image1d_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: b
+; CHECK: .offset: 8
+; CHECK: .size: 8
+; CHECK: .type_name: image1d_array_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: c
+; CHECK: .offset: 16
+; CHECK: .size: 8
+; CHECK: .type_name: image1d_buffer_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: d
+; CHECK: .offset: 24
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: e
+; CHECK: .offset: 32
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_array_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: f
+; CHECK: .offset: 40
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_array_depth_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: g
+; CHECK: .offset: 48
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_array_msaa_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: h
+; CHECK: .offset: 56
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_array_msaa_depth_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: i
+; CHECK: .offset: 64
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_depth_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: j
+; CHECK: .offset: 72
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_msaa_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: k
+; CHECK: .offset: 80
+; CHECK: .size: 8
+; CHECK: .type_name: image2d_msaa_depth_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
+; CHECK: - .address_space: global
+; CHECK: .name: l
+; CHECK: .offset: 88
+; CHECK: .size: 8
+; CHECK: .type_name: image3d_t
+; CHECK: .value_kind: image
+; CHECK: .value_type: struct
define amdgpu_kernel void @test(%opencl.image1d_t addrspace(1)* %a,
%opencl.image1d_array_t addrspace(1)* %b,
%opencl.image1d_buffer_t addrspace(1)* %c,
OpenPOWER on IntegriCloud