31 lines · plain
1; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s2 3; CHECK: amdhsa.kernels:4; CHECK-NEXT: - .args:5; CHECK-NEXT: - .actual_access: read_only6; CHECK-LABEL: .name: test_noalias_ro_arg7define amdgpu_kernel void @test_noalias_ro_arg(ptr noalias readonly %in) {8 ret void9}10 11; CHECK: - .args:12; CHECK-NOT: read_only13; CHECK-LABEL: .name: test_only_ro_arg14define amdgpu_kernel void @test_only_ro_arg(ptr readonly %in) {15 ret void16}17 18; CHECK: - .args:19; CHECK-NEXT: - .actual_access: write_only20; CHECK-LABEL: .name: test_noalias_wo_arg21define amdgpu_kernel void @test_noalias_wo_arg(ptr noalias writeonly %out) {22 ret void23}24 25; CHECK: - .args:26; CHECK-NOT: write_only27; CHECK-LABEL: .name: test_only_wo_arg28define amdgpu_kernel void @test_only_wo_arg(ptr writeonly %out) {29 ret void30}31