• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-annotate-kernel-features %s | FileCheck %s
2
3; If the kernel does not have the uniform-work-group-attribute, set both callee and caller as false
4
5; CHECK: define void @foo() #[[FOO:[0-9]+]] {
6define void @foo() #0 {
7  ret void
8}
9
10; CHECK: define amdgpu_kernel void @kernel1() #[[KERNEL1:[0-9]+]] {
11define amdgpu_kernel void @kernel1() #1 {
12  call void @foo()
13  ret void
14}
15
16attributes #0 = { "uniform-work-group-size"="true" }
17
18; CHECK: attributes #[[FOO]] = { "uniform-work-group-size"="false" }
19; CHECK: attributes #[[KERNEL1]] = { "amdgpu-calls" "uniform-work-group-size"="false" }
20