comparison llvm/test/CodeGen/AMDGPU/uniform-work-group-attribute-missing.ll @ 223:5f17cb93ff66 llvm-original

LLVM13 (2021/7/18)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:43:00 +0900
parents 0572611fdcc8
children c4bab56944e8
comparison
equal deleted inserted replaced
222:81f6424ef0e3 223:5f17cb93ff66
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals
1 ; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-annotate-kernel-features %s | FileCheck %s 2 ; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-annotate-kernel-features %s | FileCheck %s
2 3
3 ; If the kernel does not have the uniform-work-group-attribute, set both callee and caller as false 4 ; If the kernel does not have the uniform-work-group-attribute, set both callee and caller as false
4 5
5 ; CHECK: define void @foo() #[[FOO:[0-9]+]] {
6 define void @foo() #0 { 6 define void @foo() #0 {
7 ; CHECK-LABEL: define {{[^@]+}}@foo
8 ; CHECK-SAME: () #[[ATTR0:[0-9]+]] {
9 ; CHECK-NEXT: ret void
10 ;
7 ret void 11 ret void
8 } 12 }
9 13
10 ; CHECK: define amdgpu_kernel void @kernel1() #[[KERNEL1:[0-9]+]] {
11 define amdgpu_kernel void @kernel1() #1 { 14 define amdgpu_kernel void @kernel1() #1 {
15 ; CHECK-LABEL: define {{[^@]+}}@kernel1
16 ; CHECK-SAME: () #[[ATTR1:[0-9]+]] {
17 ; CHECK-NEXT: call void @foo()
18 ; CHECK-NEXT: ret void
19 ;
12 call void @foo() 20 call void @foo()
13 ret void 21 ret void
14 } 22 }
15 23
16 attributes #0 = { "uniform-work-group-size"="true" } 24 attributes #0 = { "uniform-work-group-size"="true" }
17 25
18 ; CHECK: attributes #[[FOO]] = { "uniform-work-group-size"="false" } 26 ;.
19 ; CHECK: attributes #[[KERNEL1]] = { "amdgpu-calls" "uniform-work-group-size"="false" } 27 ; CHECK: attributes #[[ATTR0]] = { "uniform-work-group-size"="false" }
28 ; CHECK: attributes #[[ATTR1]] = { "amdgpu-calls" "uniform-work-group-size"="false" }
29 ;.