1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK %s
2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK %s
3 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck --check-prefix=CHECK %s
5 %opencl.image1d_t = type opaque
6 %opencl.image1d_array_t = type opaque
7 %opencl.image1d_buffer_t = type opaque
8 %opencl.image2d_t = type opaque
9 %opencl.image2d_array_t = type opaque
10 %opencl.image2d_array_depth_t = type opaque
11 %opencl.image2d_array_msaa_t = type opaque
12 %opencl.image2d_array_msaa_depth_t = type opaque
13 %opencl.image2d_depth_t = type opaque
14 %opencl.image2d_msaa_t = type opaque
15 %opencl.image2d_msaa_depth_t = type opaque
16 %opencl.image3d_t = type opaque
19 ; CHECK: amdhsa.kernels:
24 ; CHECK: .type_name: image1d_t
25 ; CHECK: .value_kind: image
29 ; CHECK: .type_name: image1d_array_t
30 ; CHECK: .value_kind: image
34 ; CHECK: .type_name: image1d_buffer_t
35 ; CHECK: .value_kind: image
39 ; CHECK: .type_name: image2d_t
40 ; CHECK: .value_kind: image
44 ; CHECK: .type_name: image2d_array_t
45 ; CHECK: .value_kind: image
49 ; CHECK: .type_name: image2d_array_depth_t
50 ; CHECK: .value_kind: image
54 ; CHECK: .type_name: image2d_array_msaa_t
55 ; CHECK: .value_kind: image
59 ; CHECK: .type_name: image2d_array_msaa_depth_t
60 ; CHECK: .value_kind: image
64 ; CHECK: .type_name: image2d_depth_t
65 ; CHECK: .value_kind: image
69 ; CHECK: .type_name: image2d_msaa_t
70 ; CHECK: .value_kind: image
74 ; CHECK: .type_name: image2d_msaa_depth_t
75 ; CHECK: .value_kind: image
79 ; CHECK: .type_name: image3d_t
80 ; CHECK: .value_kind: image
81 define amdgpu_kernel void @test(ptr addrspace(1) %a,
93 !kernel_arg_type !1 !kernel_arg_base_type !1 {
97 ; CHECK: amdhsa.version:
101 !llvm.module.flags = !{!0}
102 !0 = !{i32 1, !"amdgpu_code_object_version", i32 300}
104 !1 = !{!"image1d_t", !"image1d_array_t", !"image1d_buffer_t",
105 !"image2d_t", !"image2d_array_t", !"image2d_array_depth_t",
106 !"image2d_array_msaa_t", !"image2d_array_msaa_depth_t",
107 !"image2d_depth_t", !"image2d_msaa_t", !"image2d_msaa_depth_t",