1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s
3 ; CHECK: - Name: test_ro_arg
4 ; CHECK-NEXT: SymbolName: 'test_ro_arg@kd'
6 ; CHECK-NEXT: - Name: in
7 ; CHECK-NEXT: TypeName: 'float*'
10 ; CHECK-NEXT: ValueKind: GlobalBuffer
11 ; CHECK-NEXT: ValueType: F32
12 ; CHECK-NEXT: AddrSpaceQual: Global
13 ; CHECK-NEXT: AccQual: ReadOnly
14 ; CHECK-NEXT: IsConst: true
15 ; CHECK-NEXT: IsRestrict: true
16 ; CHECK-NEXT: - Name: out
17 ; CHECK-NEXT: TypeName: 'float*'
19 ; CHECK-NEXT: Align: 8
20 ; CHECK-NEXT: ValueKind: GlobalBuffer
21 ; CHECK-NEXT: ValueType: F32
22 ; CHECK-NEXT: AddrSpaceQual: Global
23 ; CHECK-NEXT: AccQual: Default
25 define amdgpu_kernel void @test_ro_arg(float addrspace(1)* noalias readonly %in, float addrspace(1)* %out)
26 !kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
27 !kernel_arg_base_type !2 !kernel_arg_type_qual !3 {
32 !1 = !{!"none", !"none"}
33 !2 = !{!"float*", !"float*"}
34 !3 = !{!"const restrict", !""}