Files
archived-llvm/test/CodeGen/AMDGPU/uniform-work-group-attribute-missing.ll
Aakanksha Patil 67bb6a3b71 AMDGPU: Handle "uniform-work-group-size" attribute (fix for RADV)
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



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355574 91177308-0d34-0410-b5e6-96231b3b80d8
2019-03-07 00:54:04 +00:00

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" }