1 ; RUN: llvm-split -o %t %s -j 3 -mtriple amdgcn-amd-amdhsa
2 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
3 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
4 ; RUN: llvm-dis -o - %t2 | FileCheck --check-prefix=CHECK2 %s
6 ; 3 kernels with each their own dependencies should go into 3
10 ; CHECK0: define amdgpu_kernel void @C
11 ; CHECK0: define internal void @HelperC
15 ; CHECK1: define amdgpu_kernel void @B
16 ; CHECK1: define internal void @HelperB
20 ; CHECK2: define amdgpu_kernel void @A
21 ; CHECK2: define internal void @HelperA
25 define amdgpu_kernel void @A() {
30 define internal void @HelperA() {
34 define amdgpu_kernel void @B() {
39 define internal void @HelperB() {
43 define amdgpu_kernel void @C() {
48 define internal void @HelperC() {