[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / uniform-work-group-attribute-missing.ll
blobbe7171cbb359ff6aab19b31102eac460e6b9644b
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals
2 ; RUN: opt -S -mtriple=amdgcn-amd- -amdgpu-attributor %s | FileCheck %s
4 ; If the kernel does not have the uniform-work-group-attribute, set both callee and caller as false
5 ; We write to a global so that the attributor don't deletes the function.
7 @x = global i32 0
9 ;.
10 ; CHECK: @[[X:[a-zA-Z0-9_$"\\.-]+]] = global i32 0
12 define void @foo() #0 {
13 ; CHECK-LABEL: define {{[^@]+}}@foo
14 ; CHECK-SAME: () #[[ATTR0:[0-9]+]] {
15 ; CHECK-NEXT:    store i32 0, ptr @x, align 4
16 ; CHECK-NEXT:    ret void
18   store i32 0, ptr @x
19   ret void
22 define amdgpu_kernel void @kernel1() #1 {
23 ; CHECK-LABEL: define {{[^@]+}}@kernel1
24 ; CHECK-SAME: () #[[ATTR1:[0-9]+]] {
25 ; CHECK-NEXT:    call void @foo()
26 ; CHECK-NEXT:    ret void
28   call void @foo()
29   ret void
32 attributes #0 = { "uniform-work-group-size"="true" }
34 ; CHECK: attributes #[[ATTR0]] = { "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-waves-per-eu"="4,10" "uniform-work-group-size"="false" }
35 ; CHECK: attributes #[[ATTR1]] = { "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "uniform-work-group-size"="false" }