1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
3 ; CHECK: amdhsa.kernels:
5 ; CHECK-NEXT: - .actual_access: read_only
6 ; CHECK-LABEL: .name: test_noalias_ro_arg
7 define amdgpu_kernel void @test_noalias_ro_arg(ptr noalias readonly %in) {
12 ; CHECK-NOT: read_only
13 ; CHECK-LABEL: .name: test_only_ro_arg
14 define amdgpu_kernel void @test_only_ro_arg(ptr readonly %in) {
19 ; CHECK-NEXT: - .actual_access: write_only
20 ; CHECK-LABEL: .name: test_noalias_wo_arg
21 define amdgpu_kernel void @test_noalias_wo_arg(ptr noalias writeonly %out) {
26 ; CHECK-NOT: write_only
27 ; CHECK-LABEL: .name: test_only_wo_arg
28 define amdgpu_kernel void @test_only_wo_arg(ptr writeonly %out) {