annotate llvm/test/CodeGen/AMDGPU/hsa-metadata-deduce-ro-arg.ll @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ; CHECK: - Name: test_ro_arg
anatofuz
parents:
diff changeset
4 ; CHECK-NEXT: SymbolName: 'test_ro_arg@kd'
anatofuz
parents:
diff changeset
5 ; CHECK-NEXT: Args:
anatofuz
parents:
diff changeset
6 ; CHECK-NEXT: - Name: in
anatofuz
parents:
diff changeset
7 ; CHECK-NEXT: TypeName: 'float*'
anatofuz
parents:
diff changeset
8 ; CHECK-NEXT: Size: 8
anatofuz
parents:
diff changeset
9 ; CHECK-NEXT: Align: 8
anatofuz
parents:
diff changeset
10 ; CHECK-NEXT: ValueKind: GlobalBuffer
anatofuz
parents:
diff changeset
11 ; CHECK-NEXT: ValueType: F32
anatofuz
parents:
diff changeset
12 ; CHECK-NEXT: AddrSpaceQual: Global
anatofuz
parents:
diff changeset
13 ; CHECK-NEXT: AccQual: ReadOnly
anatofuz
parents:
diff changeset
14 ; CHECK-NEXT: IsConst: true
anatofuz
parents:
diff changeset
15 ; CHECK-NEXT: IsRestrict: true
anatofuz
parents:
diff changeset
16 ; CHECK-NEXT: - Name: out
anatofuz
parents:
diff changeset
17 ; CHECK-NEXT: TypeName: 'float*'
anatofuz
parents:
diff changeset
18 ; CHECK-NEXT: Size: 8
anatofuz
parents:
diff changeset
19 ; CHECK-NEXT: Align: 8
anatofuz
parents:
diff changeset
20 ; CHECK-NEXT: ValueKind: GlobalBuffer
anatofuz
parents:
diff changeset
21 ; CHECK-NEXT: ValueType: F32
anatofuz
parents:
diff changeset
22 ; CHECK-NEXT: AddrSpaceQual: Global
anatofuz
parents:
diff changeset
23 ; CHECK-NEXT: AccQual: Default
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 define amdgpu_kernel void @test_ro_arg(float addrspace(1)* noalias readonly %in, float addrspace(1)* %out)
anatofuz
parents:
diff changeset
26 !kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
anatofuz
parents:
diff changeset
27 !kernel_arg_base_type !2 !kernel_arg_type_qual !3 {
anatofuz
parents:
diff changeset
28 ret void
anatofuz
parents:
diff changeset
29 }
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 !0 = !{i32 1, i32 1}
anatofuz
parents:
diff changeset
32 !1 = !{!"none", !"none"}
anatofuz
parents:
diff changeset
33 !2 = !{!"float*", !"float*"}
anatofuz
parents:
diff changeset
34 !3 = !{!"const restrict", !""}