[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / hsa-metadata-hostcall-present-v3-asan.ll
blobcb3ae289721bc170aa9619b4e364aa0b013fc2f3
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-dump-hsa-metadata -amdgpu-verify-hsa-metadata -filetype=obj -o - < %s 2>&1 | FileCheck  %s
3 ; CHECK:              ---
4 ; CHECK:      amdhsa.kernels:
5 ; CHECK:        - .args:
6 ; CHECK-NEXT:       - .name:           a
7 ; CHECK-NEXT:         .offset:         0
8 ; CHECK-NEXT:         .size:           1
9 ; CHECK-NEXT:         .type_name:      char
10 ; CHECK-NEXT:         .value_kind:     by_value
11 ; CHECK-NEXT:       - .offset:         8
12 ; CHECK-NEXT:         .size:           8
13 ; CHECK-NEXT:         .value_kind:     hidden_global_offset_x
14 ; CHECK-NEXT:       - .offset:         16
15 ; CHECK-NEXT:         .size:           8
16 ; CHECK-NEXT:         .value_kind:     hidden_global_offset_y
17 ; CHECK-NEXT:       - .offset:         24
18 ; CHECK-NEXT:         .size:           8
19 ; CHECK-NEXT:         .value_kind:     hidden_global_offset_z
20 ; CHECK-NEXT:       - .offset:         32
21 ; CHECK-NEXT:         .size:           8
22 ; CHECK-NEXT:         .value_kind:     hidden_hostcall_buffer
23 ; CHECK:          .language:       OpenCL C
24 ; CHECK-NEXT:     .language_version:
25 ; CHECK-NEXT:       - 2
26 ; CHECK-NEXT:       - 0
27 ; CHECK:          .name:           test_kernel
28 ; CHECK:          .symbol:         test_kernel.kd
30 define amdgpu_kernel void @test_kernel(i8 %a) #0
31     !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3
32     !kernel_arg_base_type !3 !kernel_arg_type_qual !4 {
33   ret void
36 ; CHECK:  amdhsa.version:
37 ; CHECK-NEXT: - 1
38 ; CHECK-NEXT: - 0
40 attributes #0 = { sanitize_address "amdgpu-implicitarg-num-bytes"="48" }
42 !llvm.module.flags = !{!0}
43 !0 = !{i32 1, !"amdgpu_code_object_version", i32 300}
44 !1 = !{i32 0}
45 !2 = !{!"none"}
46 !3 = !{!"char"}
47 !4 = !{!""}
49 !opencl.ocl.version = !{!90}
50 !90 = !{i32 2, i32 0}
52 ; CHECK: AMDGPU HSA Metadata Parser Test: PASS