1 ; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-annotate-kernel-features %s | FileCheck %s
3 ; Two kernels with different values of the uniform-work-group-attribute call the same function
5 ; CHECK: define void @func() #[[FUNC:[0-9]+]] {
6 define void @func() #0 {
10 ; CHECK: define amdgpu_kernel void @kernel1() #[[KERNEL1:[0-9]+]] {
11 define amdgpu_kernel void @kernel1() #1 {
16 ; CHECK: define amdgpu_kernel void @kernel2() #[[FUNC]] {
17 define amdgpu_kernel void @kernel2() #2 {
22 attributes #1 = { "uniform-work-group-size"="true" }
24 ; CHECK: attributes #[[FUNC]] = { "uniform-work-group-size"="false" }
25 ; CHECK: attributes #[[KERNEL1]] = { "uniform-work-group-size"="true" }