1; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readobj -elf-output-style=GNU -notes | FileCheck %s 2 3; CHECK: - Name: test_ro_arg 4; CHECK-NEXT: SymbolName: 'test_ro_arg@kd' 5; CHECK-NEXT: Args: 6; CHECK-NEXT: - Name: in 7; CHECK-NEXT: TypeName: 'float*' 8; CHECK-NEXT: Size: 8 9; CHECK-NEXT: Align: 8 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*' 18; CHECK-NEXT: Size: 8 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 24 25define 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 { 28 ret void 29} 30 31!0 = !{i32 1, i32 1} 32!1 = !{!"none", !"none"} 33!2 = !{!"float*", !"float*"} 34!3 = !{!"const restrict", !""} 35