2020-10-15 01:03:37 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa --amdhsa-code-object-version=2 -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
|
2017-04-15 03:11:40 +08:00
|
|
|
|
|
|
|
; CHECK: - Name: test_ro_arg
|
2017-10-15 03:03:51 +08:00
|
|
|
; CHECK-NEXT: SymbolName: 'test_ro_arg@kd'
|
|
|
|
; CHECK-NEXT: Args:
|
2017-12-09 03:22:12 +08:00
|
|
|
; CHECK-NEXT: - Name: in
|
|
|
|
; CHECK-NEXT: TypeName: 'float*'
|
2017-10-15 03:03:51 +08:00
|
|
|
; CHECK-NEXT: Size: 8
|
2017-04-15 03:11:40 +08:00
|
|
|
; CHECK-NEXT: Align: 8
|
|
|
|
; CHECK-NEXT: ValueKind: GlobalBuffer
|
|
|
|
; CHECK-NEXT: AddrSpaceQual: Global
|
2017-10-15 03:03:51 +08:00
|
|
|
; CHECK-NEXT: AccQual: ReadOnly
|
2017-04-15 03:11:40 +08:00
|
|
|
; CHECK-NEXT: IsConst: true
|
|
|
|
; CHECK-NEXT: IsRestrict: true
|
2017-12-09 03:22:12 +08:00
|
|
|
; CHECK-NEXT: - Name: out
|
|
|
|
; CHECK-NEXT: TypeName: 'float*'
|
2017-10-15 03:03:51 +08:00
|
|
|
; CHECK-NEXT: Size: 8
|
2017-04-15 03:11:40 +08:00
|
|
|
; CHECK-NEXT: Align: 8
|
|
|
|
; CHECK-NEXT: ValueKind: GlobalBuffer
|
|
|
|
; CHECK-NEXT: AddrSpaceQual: Global
|
2017-10-15 03:03:51 +08:00
|
|
|
; CHECK-NEXT: AccQual: Default
|
2017-04-15 03:11:40 +08:00
|
|
|
|
|
|
|
define amdgpu_kernel void @test_ro_arg(float addrspace(1)* noalias readonly %in, float addrspace(1)* %out)
|
|
|
|
!kernel_arg_addr_space !0 !kernel_arg_access_qual !1 !kernel_arg_type !2
|
|
|
|
!kernel_arg_base_type !2 !kernel_arg_type_qual !3 {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
!0 = !{i32 1, i32 1}
|
|
|
|
!1 = !{!"none", !"none"}
|
|
|
|
!2 = !{!"float*", !"float*"}
|
|
|
|
!3 = !{!"const restrict", !""}
|