[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / hsa-metadata-hostcall-absent-v3.ll
bloba1cee23387a89f1e7d7a5ae0614ae853e0ea230b
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=3 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
2 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 --amdhsa-code-object-version=3 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck --check-prefix=PARSER %s
4 ; CHECK:              ---
5 ; CHECK:      amdhsa.kernels:
6 ; CHECK:        - .args:
7 ; CHECK-NEXT:       - .name:           a
8 ; CHECK-NEXT:         .offset:         0
9 ; CHECK-NEXT:         .size:           1
10 ; CHECK-NEXT:         .type_name:      char
11 ; CHECK-NEXT:         .value_kind:     by_value
12 ; CHECK-NEXT:       - .offset:         8
13 ; CHECK-NEXT:         .size:           8
14 ; CHECK-NEXT:         .value_kind:     hidden_global_offset_x
15 ; CHECK-NEXT:       - .offset:         16
16 ; CHECK-NEXT:         .size:           8
17 ; CHECK-NEXT:         .value_kind:     hidden_global_offset_y
18 ; CHECK-NEXT:       - .offset:         24
19 ; CHECK-NEXT:         .size:           8
20 ; CHECK-NEXT:         .value_kind:     hidden_global_offset_z
22 ; CHECK-NOT:          .value_kind:     hidden_hostcall_buffer
24 ; CHECK:          .language:       OpenCL C
25 ; CHECK-NEXT:     .language_version:
26 ; CHECK-NEXT:       - 2
27 ; CHECK-NEXT:       - 0
28 ; CHECK:          .name:           test_kernel
29 ; CHECK:          .symbol:         test_kernel.kd
31 define amdgpu_kernel void @test_kernel(i8 %a) #0
32     !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
33     !kernel_arg_base_type !3 !kernel_arg_type_qual !4 {
34   ret void
37 ; CHECK:  amdhsa.version:
38 ; CHECK-NEXT: - 1
39 ; CHECK-NEXT: - 0
41 attributes #0 = { "amdgpu-implicitarg-num-bytes"="48" }
43 !1 = !{i32 0}
44 !2 = !{!"none"}
45 !3 = !{!"char"}
46 !4 = !{!""}
48 !opencl.ocl.version = !{!90}
49 !90 = !{i32 2, i32 0}
51 ; PARSER: AMDGPU HSA Metadata Parser Test: PASS