Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / hsa-metadata-deduced-arg-attr.ll
blobec6a6f66ada8499ffa9c2b70be90216feab694c9
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -filetype=obj -o - < %s | llvm-readelf --notes - | FileCheck %s
3 ; CHECK: amdhsa.kernels:
4 ; CHECK-NEXT:  - .args:
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) {
8   ret void
11 ; CHECK:       - .args:
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) {
15   ret void
18 ; CHECK:       - .args:
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) {
22   ret void
25 ; CHECK:       - .args:
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) {
29   ret void