mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
6bc0e0f4bc
A previous patch for "uniform-work-group-size" attribute was found to break some RADV and possibly radeon SI tests and had to be retracted. This patch fixes that. Differential Revision: http://reviews.llvm.org/D58993 llvm-svn: 355574
19 lines
528 B
LLVM
19 lines
528 B
LLVM
; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-annotate-kernel-features %s | FileCheck %s
|
|
|
|
; If the kernel does not have the uniform-work-group-attribute, set both callee and caller as false
|
|
|
|
; CHECK: define void @foo() #[[FOO:[0-9]+]] {
|
|
define void @foo() #0 {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define amdgpu_kernel void @kernel1() #[[FOO]] {
|
|
define amdgpu_kernel void @kernel1() #1 {
|
|
call void @foo()
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { "uniform-work-group-size"="true" }
|
|
|
|
; CHECK: attributes #[[FOO]] = { "uniform-work-group-size"="false" }
|